Modifying Sendmail's Configuration the Correct way.
Alejandro Imass
ait at p2ee.org
Wed Apr 20 20:15:26 UTC 2011
On Wed, Apr 20, 2011 at 2:47 PM, Martin McCormick
<martin at dc.cis.okstate.edu> wrote:
> The /etc/mail/sendmail.cf file very clearly tells one
> not to edit it directly so I edited the
Hey Martin, this might not be the exact answer you're looking for but
I despise sendmail but *love* FreeBSD so here are my $0.02:
1) edit your /etc/rc.conf
sendmail_enable="NO"
sendmail_submit_enable="NO"
sendmail_outbound_enable="NO"
sendmail_msp_queue_enable="NO"
postfix_enable="YES"
2) cd /usr/ports/mail/postfix
make install clean
Play close attention to all messages, remember to regenerate the
aliases with newalias and let the script modify your mailer.conf to
enable postfix and say yes.
In case you forget here is my /etc/mail/mailer.conf
# Execute the Postfix sendmail program, named /usr/local/sbin/sendmail
#
sendmail /usr/local/sbin/sendmail
send-mail /usr/local/sbin/sendmail
mailq /usr/local/sbin/sendmail
newaliases /usr/local/sbin/sendmail
then /usr/local/etc/rc.d/postfix start
Enjoy! http://www.postfix.org
There have been many requests to let us choose our favorite MTA for
the base system. It seems things are moving in that direction since
you will notice an option in the make config of the newer postfix
versions it says to install postfix in the base. Right now I would
avoid this, (other maybe other can comment more on this option) but
hopefully in the future those of use that don't like sendmail can
avoid it's use.
best,
Alejandro Imass
More information about the freebsd-questions
mailing list