How do i send mail to certain domain users over external smtp using sendmail?

Brian Candler B.Candler at pobox.com
Thu May 11 19:12:26 UTC 2006


On Thu, May 11, 2006 at 06:19:59AM -0700, Nash Nipples wrote:
>      Upgrade to exim - *any* mail routing policy you can think of can be
>      implemented in exim.
> 
>    lol thanks! i've read about it and i think its awesome but yet i dont
>    know how do i uninstall sendmail?

It's part of the base system, so you just ignore it.

1. Install exim from ports or packages

2. Edit /etc/mail/mailer.conf so that it reads

sendmail        /usr/local/sbin/exim
send-mail       /usr/local/sbin/exim
mailq           /usr/local/sbin/exim
# optional extras
newaliases      /usr/bin/true
hoststat        /usr/local/sbin/exim_dumpdb /var/spool/exim wait-remote_smtp
purgestat       /usr/local/sbin/exim_tidydb -t 1d /var/spool/exim wait-remote_smtp

(I'm not sure if the port does that for you automatically)

3. Edit /etc/rc.conf

sendmail_enable="NONE"
exim_enable="YES"

So whilst this doesn't actually purge your system of the devil-spawn, it
does neutralise it :-)

The default install works as a basic out-of-the-box sendmail: i.e. it
delivers to mbox files /var/mail/foo, honours /etc/aliases and .forward
files. You then read the config samples and start tweaking to add whatever
features and policies you like. The entire flow-of-control, from accepting
mail to delivering it, is soft-coded in the configure file (but it doesn't
look like Snoopy swearing)

Regards,

Brian.


More information about the freebsd-net mailing list