According to the knowledgebase article, the following changes are required for sendmail.cf
Code: Select all
Change OperatorChars from:
O OperatorChars=.:%@!^/[]+= To
O OperatorChars=.:%@!^/[]+
Uncomment the line:
#O InputMailFilters and change it to:
O InputMailFilters=Spamassassin
Immediately below that line, add the following
# Milter options
#O Milter.LogLevel O Milter.macros.connect=b, j, _, {daemon_name}, {if_name}, {if_addr} O Milter.macros.helo={tls_version}, {cipher}, {cipher_bits}, {cert_subject}, {cert_issuer}
O Milter.macros.envfrom=i, {auth_type}, {auth_authen}, {auth_ssf}, {auth_author}, {mail_mailer}, {mail_host}, {mail_addr}
O Milter.macros.envrcpt={rcpt_mailer}, {rcpt_host}, {rcpt_addr}
In the section MAIL FILTER DEFINITIONS, add the following line:
Xspamassassin, S=local:/var/run/spamass.sock, F=, T=C:15m;S:4m;R:4m;E:10m
When you edit sendmail.mc, add the line you mention and then run
make -C /etc/mail
it seems to take care of all these changes for you. On my Centos 4.4 install it
-- uncommented my OperatorChars line (although it was already without the = sign).
-- enabled Input mail Filters=spamassassin
-- Added some milter options, although not quite exactly the same ones as above.
[/list]
Maybe a mention should be made of the sendmail.mc approach in the knowledgebase article, in case people start incorrectly hacking their sendmail.cf