[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [cobalt-users] sendmail



> How do I set up a filter to block Spam or mass mailings from 
> outside sources. We run an ISP and are getting flooded with 
> Spam mail that somehow manages to go to everyone.

There are a couple of things to check for first, to make sure its not
something you use that allows them to mail everyone:

1) Do you have a customer mailing list? If so, when you send out
mailings, make sure you aren't just using CC'd addresses.
Also this applies to aliases that are in /etc/aliases if this has an
entry for your mailing group with all their addy's this could be how the
spammers are mailing.

2) Depending on the source of the spam you can put a block in for the
individual domain/server sending it.
Simply open up your /etc/mail/access file and at the VERY bottom (below
the comment line saying put custom... Blah blah)
nasty.server.spam		550 Unable to comply
(Change nasty.server.spam to the spammers IP or server name, the space
between that and the 550 is a TAB. THIS IS V IMPORTANT!)
Then rehash your access database using:
makemap hash /etc/mail/access.db < /etc/mail/access
And finally restart sendmail
/etc/rc.d/init.d/sendmail stop
/etc/rc.d/init.d/sendmail start


Hope that helps,

Andy
andy@xxxxxxxxxxxxxxxxxxxxx
http://ineedlinux.info/