[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [cobalt-users] /etc/mail/access
- Subject: RE: [cobalt-users] /etc/mail/access
- From: "William J.A. Brillinger" <billy@xxxxxxxxxx>
- Date: Tue Dec 23 12:56:01 2003
- List-id: Mailing list for users to share thoughts on Sun Cobalt products. <cobalt-users.list.cobalt.com>
At 02:50 PM 23/12/2003 -0500, you wrote:
Do you have a detailed how to
> on how to accomplish this?
There are a few in the archives involving editing the
/etc/mail/sendmail.cf file so you don't mess up the POP before SMTP.
cp /etc/mail/sendmail.cf /etc/mail/sendmail.cf.old
To make a backup.
Just above the section:
### check_mail -- check SMTP `MAIL FROM:' command argument
######################################################################
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 $: "Mail from " $&{client_addr}
" Email blocked using spamhaus - see <http://your.example.com/>"
The above is 5 lines each beginning with "R" in case the lines wrap.
I have it point to a site on my server that explains my blocking instead
of at some page on Spamhaus the recipient of the rejection might not
understand.
You can add multiples of the above substituting:
dnsbl.njabl.org
cbl.abuseat.org
and others for sbl.spamhaus.org
After you edit /etc/mail/sendmail.cf
/etc/rc.d/init.d/sendmail stop
killall -9 sendmail
/etc/rc.d/init.d/sendmail start
ps waux | grep sendmail
And you should see accepting connections.
How will this affect mailscanner if it is also running on the system?
- Bill
---------------------------------
William J.A. Brillinger
Precision Design Co.
E-Mail: mailto:billy@xxxxxxxxxx
Web site: http://www.pdcweb.net