[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [cobalt-users] [RaQ4] Sendmail anti-spam configuration
- Subject: Re: [cobalt-users] [RaQ4] Sendmail anti-spam configuration
- From: "Ian Gibbons" <cobalt-users1@xxxxxxxxxxxxx>
- Date: Fri Feb 6 05:45:04 2004
- Organization: Fish.Net Ltd
- List-id: Mailing list for users to share thoughts on Sun Cobalt products. <cobalt-users.list.cobalt.com>
On 6 Feb 2004 at 13:10, oxfordmusic.net wrote:
> ok, so i finally managed to add some DNSBL checks to my sendmail and get it
> started again (with a little help from Jeff Lasman, cheers!). but scanning
> my logs and checking my email, it doesn't look like its blocking any spam.
> any ideas where i've gone wrong?
>
> the lines i added to sendmail.cf:
> # DNS based IP address spam list sbl.spamhaus.org
> R$* $: $&{client_addr}
> R::ffff:$-.$-.$-.$- $: <?> $(host $4.$3.$2.$1.sbl.spamhaus.org. $: OK $)
> R$-.$-.$-.$- $: <?> $(host $4.$3.$2.$1.sbl.spamhaus.org. $: OK $)
> R<?>OK $: OKSOFAR
> R<?>$+ $#error $@ 5.7.1 $: Rejected as possible spam
> (spamhaus) - please contact $
<snip>
Hi,
This is what we have on Redhat/ Sendmail 8.12...
# DNS based IP address spam list sbl.spamhaus.org
R$* $: $&{client_addr}
R$-.$-.$-.$- $: <?> $(ednsbl $4.$3.$2.$1.sbl.spamhaus.org. $: OK $)
R<?>OK $: OKSOFAR
R<?>$+<TMP> $: TMPOK
R<?>127.0.0.2. $#error $@ 5.7.1 $: "550 Rejected: " $&{client_addr} " listed at
sbl.spamhaus.org"
Which works well. (the last 2 lines are actually 1 wrapped. )
To check your maillog use the command:
tail -n 1000 /var/log/maillog | grep Rejected
which checks the last 1000 line of the maillog
or
tail -f /var/log/maillog | grep Rejected
To check in real time ( CTRL-C to quit)
Regards
Ian
--