sendmail + spamassassin

Jonathan Horne freebsd at dfwlp.com
Sun Oct 8 15:49:15 PDT 2006


On Sunday 08 October 2006 15:52, dick hoogendijk wrote:
> What is the best way to integrate spamassasin with sendmail?
> MIMEDefang?

i do this:

add this to /etc/make.conf:
SENDMAIL_CFLAGS=-I/usr/local/include -DSASL=2
SENDMAIL_LDFLAGS=-L/usr/local/lib
SENDMAIL_LDADD=-lsasl2

cd /usr/ports/security/cyrus-sasl2-saslauthd; make install clean

cd /usr/src/lib/libsm; make clean; make obj; make depend; make
cd /usr/src/lib/libsmutil; make clean; make obj; make depend; make
cd /usr/src/usr.sbin/sendmail; make clean; make obj; make depend; make; make 
install

cd /usr/ports/mail/dovecot; make install clean

cd /usr/ports/mail/spamass-milter; make install clean


the last part there, will install spamassassin as well as spamass-milter.  
along with settings things to be able to start in /etc/rc.conf (and 
configuring other .conf files as necessary), this will get you everything you 
need for a mail service (of course, if you already have a favorite pop3/imap 
solution in place, omit the dovecot sugesstion).

if you do end up interested in seeing how i set my server up, line by line, i 
have a document here that you might like:

http://dfwlpiki.dfwlp.org/index.php/Deploying_a_FreeBSD_Server#Configuring_Mail_Services

cheers,
jonathan


More information about the freebsd-questions mailing list