우분투 sendmail 삭제

우분투 sendmail 삭제

1 확인[ | ]

root@zetawiki:~# dpkg --get-selections | grep ^sendmail
sendmail					install
sendmail-base					install
sendmail-bin					install
sendmail-cf					install

2 sendmail 중지[ | ]

root@zetawiki:~# netstat -tnlp | grep sendmail
tcp        0      0 127.0.0.1:25            0.0.0.0:*               LISTEN      20411/sendmail: MTA
tcp        0      0 127.0.0.1:587           0.0.0.0:*               LISTEN      20411/sendmail: MTA
root@zetawiki:~# service sendmail stop
 * Stopping Mail Transport Agent (MTA) sendmail                      [ OK ] 
root@zetawiki:~# netstat -tnlp | grep sendmail
root@zetawiki:~#

3 삭제[ | ]

root@zetawiki:~# apt-get autoremove --purge sendmail sendmail-base sendmail-bin sendmail-cf
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages will be REMOVED:
  procmail* sendmail* sendmail-base* sendmail-bin* sendmail-cf* sensible-mda*
0 upgraded, 0 newly installed, 6 to remove and 41 not upgraded.
After this operation, 4,365 kB disk space will be freed.
Do you want to continue? [Y/n]
(Reading database ... 99753 files and directories currently installed.)
Removing sendmail (8.14.4-4.1ubuntu1) ...
Removing sensible-mda (8.14.4-4.1ubuntu1) ...
Removing procmail (3.22-21ubuntu0.1) ...
Removing sendmail-bin (8.14.4-4.1ubuntu1) ...
Purging configuration files for sendmail-bin (8.14.4-4.1ubuntu1) ...
Removing sendmail-base (8.14.4-4.1ubuntu1) ...
Purging configuration files for sendmail-base (8.14.4-4.1ubuntu1) ...
rm: cannot remove ‘/usr/share/bug/sendmail-cf’: Is a directory
dpkg: error processing package sendmail-base (--purge):
 subprocess installed post-removal script returned error exit status 1
Removing sendmail-cf (8.14.4-4.1ubuntu1) ...
Purging configuration files for sendmail-cf (8.14.4-4.1ubuntu1) ...
Processing triggers for man-db (2.6.7.1-1ubuntu1) ...
Errors were encountered while processing:
 sendmail-base
E: Sub-process /usr/bin/dpkg returned an error code (1)
root@zetawiki:~# dpkg --get-selections | grep ^sendmail
sendmail-base					purge

4 삭제 2[ | ]

root@zetawiki:~# apt-get autoremove --purge sendmail-base
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages will be REMOVED:
  sendmail-base*
0 upgraded, 0 newly installed, 1 to remove and 41 not upgraded.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n]
(Reading database ... 99298 files and directories currently installed.)
Removing sendmail-base (8.14.4-4.1ubuntu1) ...
Purging configuration files for sendmail-base (8.14.4-4.1ubuntu1) ...
/usr/sbin/deluser: The user `smmta' does not exist.
/usr/sbin/deluser: The user `smmsp' does not exist.

5 확인 2[ | ]

root@zetawiki:~# dpkg --get-selections | grep ^sendmail
root@zetawiki:~#

6 같이 보기[ | ]

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}