Problem
After following the instructions in /usr/lib/mail/antispam/README.spam for configuring the antispam features in Sendmail, I get errors when trying to restart Sendmail, or the new features are non-functional.
Specifically, I have uncommented the required rulesets in
/usr/lib/sendmail.cf and have made corresponding configuration
changes in /usr/lib/mail/antispam/*. However, after restarting
Sendmail, I get "unknown control line" errors. Cause
It is possible that the uncommenting of the desired lines in
/usr/lib/sendmail.cf was left incomplete. For the purposes of
readability, the "#" symbols in the commented-out
sections are followed by a space character. After removing the "#"
symbol, any line beginning with a space character will either
cause an error or be ignored by Sendmail. Solution
Make sure that none of the uncommented lines in sendmail.cf
begin with a space character. Also, remember to run the
appropriate "makemap" command after editing a file under
/usr/lib/mail/antispam. For example, when configuring the
check_relay ruleset, entries would be added/deleted from the file
/usr/lib/mail/antispam/spammers, in accordance with the instructions
in /usr/lib/mail/antispam/README.spam. The appropriate "makemap"
command would then be:cd /usr/lib/mail/antispam
makemap hash spammers < spammersFor detailed information about antispam ruleset and map configuration, see /usr/lib/mail/antispam/README.spam.
See also
ta105884, "How can I make sendmail filter unsolicited mail (spam) and prevent others sites from using my site as a mail relay under SCO OpenServer 5?"