Removing sendmail from an installed system

Lowell Gilbert freebsd-questions-local at be-well.ilk.org
Tue Jul 24 14:16:28 UTC 2012


Darren Pilgrim <list_freebsd at bluerosetech.com> writes:

> I'm removing sendmail entirely from an installed system.  I had
> WITHOUT_SENDMAIL in /etc/src.conf when I updated to RELENG_8_3, but
> that left an old version of sendmail rotting away on disk.  This is
> the list I have so far:
>
> /etc/mail/* (excluding mailer.conf)
> /etc/rc.d/sendmail
> /usr/bin/vacation
> /usr/libexec/mail.local
> /usr/libexec/sendmail
> /usr/libexec/smrsh
> /usr/sbin/editmap
> /usr/sbin/mailstats
> /usr/sbin/makemap
> /usr/sbin/praliases
> /usr/share/sendmail
> /var/spool/clientmqueue
> /var/spool/mqueue
>
> Is this list complete?  I'm intentionally leaving the stuff for
> mailwrapper.  I'm ok with leaving /etc/rc.d/sendmail behind as well,
> but it looks like it's not needed by anything (i.e., nothing requires
> "mail").

"make delete-old"; see the section "Deleting obsolete files, directories
and libraries" in the handbook.

> Even though I have WITHOUT_SENDMAIL specified and the world was built
> with that, mergemaster still installs /etc/mail/aliases and
> /etc/rc.d/sendmail.  Is there a way to prevent this other than adding
> them to IGNORE_FILES in mergemasterrc?

There are other ways, but that's the first one I would think of. Note
that neither of these files can be harmful, and might (especially
aliases) be used by other MTA.


More information about the freebsd-questions mailing list