SUMMARY: Rejecting spam / unsolicited mail on Solaris

From: SysAdm <>
Date: Tue Nov 06 2001 - 08:20:41 EST
Date: Tue, 6 Nov 2001 11:48:00 +0100 (MET)
From: "Nils K. Schoyen" <>
Subject: SUMMARY: Rejecting spam / unsolicited mail on Solaris

Original posting:

>    Any ideas on how to filter out spam when using Sendmail (and DtMail) on
>    Solaris?
>    We have implemented access_db in sendmail, but it is (almost) impossible
>    to keep this list updated... We have also included DNS checks to reject mail
>    from unresolvable domains, etc.
>    Does anyone have experience with the Blackhole list (sendmail macro)?


   - never use sendmail - use qmail it's rcpthosts can be set just to accept or 
     reject mail

   - Create /etc/mail/Spammers file listing spammer's email addresses and code to 
     /etc/mail/ file:  
        F{Spammer} /etc/mail/Spammers
        R<$={Spammer}>  $#error $@ 5.7.1 $: "550 We don't accept mail from you"
        R<$={Spammer}.> $#error $@ 5.7.1 $: "550 We don't accept mail from you"
     Note the first whitespace character in each line must be a tab

   - try procmail ( and

   - Check out PerlMX from

   - Kaccess hash /etc/mail/access


What we have implemented so far (sendmail):

In /etc/mail/

   Kaccess dbm -o /etc/mail/access

Example lines from /etc/mail/access              OK                       DISCARD           DISCARD              DISCARD

After changes to this file:

   makemap dbm /etc/mail/access < /etc/mail/access

We will probably implement the Blackhole list as well. In addition, we recently bought
Trend Viruswall (content check) and Trend eManager (anti-spam features and more) for Solaris

Thanks to all that replied!

Best regards,

Nils K. Sch°yen

sunmanagers mailing list
Received on Tue Nov 6 07:22:14 2001

This archive was generated by hypermail 2.1.8 : Thu Mar 03 2016 - 06:42:27 EST