Technical article 111522

I can't get the antispam features of Sendmail to work.

OpenServer 5.0.0OpenServer 5.0.2OpenServer 5.0.4OpenServer 5.0.5OpenServer 5.0.6

Written · Last revised

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 < spammers

For 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?"

From the Xinuos technical article database, record 111522. Reproduced with permission. The original is at www.sco.com/ta/111522, which is reachable but blocked from search engines. Xinuos marks this article against a retired product line. That refers to the product’s lifecycle, not to whether the advice still works — plenty of it still applies to running systems.

Next step

Need this fixed rather than explained?

Tell us the release, what the system runs and what it is doing. We will reply by email with what we would do next.

  • You deal with the people who do the work
  • No obligation, and no upgrade required before we will help
  • We tell you plainly if something is not worth doing

Send an enquiry

We reply by email. If a server is down, say so in the first line. You can also write to help@scoexpert.com.