Gossamer Forum
Home : General : Internet Technologies :

Sendmail Anti-spam Filters?

Quote Reply
Sendmail Anti-spam Filters?
Hi

Could anyone tell me if the entries i have below are right for sendmail to block spam mail from those addresses?

I have entered them into the "Setting Rejected senders" as follows...

*merchantcentral.com
*azoogle.com
*postlite.com
*mb00.net
*pm0.net
*mailmediapro.com
*inyouremail.com
*currentmail.com
*pcyy.com

Does sendmail recognise the "*" before the domain name?

thanks,

regan.

Last edited by:

ryel01: May 10, 2002, 11:11 PM
Quote Reply
Re: [ryel01] Sendmail Anti-spam Filters? In reply to
What is "Setting Rejected Senders"? Smile

You need to add them into /etc/mail/access eg
Code:
merchantcentral.com 550 You are a spammer
azoogle.com 550 You are a spammer
postlite.com 550 You are a spammer
mb00.net 550 You are a spammer
pm0.net 550 You are a spammer
mailmediapro.com 550 You are a spammer
inyouremail.com 550 You are a spammer
currentmail.com 550 You are a spammer
pcyy.com 550 You are a spammer

Last edited by:

Paul: May 11, 2002, 2:31 AM
Quote Reply
Re: [ryel01] Sendmail Anti-spam Filters? In reply to
I should point out you'll need to execute:

makemap hash /etc/mail/access < /etc/mail/access

Last edited by:

Paul: May 11, 2002, 1:42 AM
Quote Reply
Re: [Paul] Sendmail Anti-spam Filters? In reply to
In Reply To:
What is "Setting Rejected Senders"? Smile

You need to add them into /etm/mail/access eg
Code:
merchantcentral.com 550 You are a spammer
azoogle.com 550 You are a spammer
postlite.com 550 You are a spammer
mb00.net 550 You are a spammer
pm0.net 550 You are a spammer
mailmediapro.com 550 You are a spammer
inyouremail.com 550 You are a spammer
currentmail.com 550 You are a spammer
pcyy.com 550 You are a spammer



sorry, that should have read "Spammers". Crazy

that option is available in linuxconf - I'm running linux (mandrake).

are the instructions you've put here for linux or windows?

thanks paul,

regan.
Quote Reply
Re: [ryel01] Sendmail Anti-spam Filters? In reply to
>>are the instructions you've put here for linux or windows? <<

They are instructions for sendmail.
Quote Reply
Re: [Paul] Sendmail Anti-spam Filters? In reply to
In Reply To:
>>are the instructions you've put here for linux or windows? <<

They are instructions for sendmail.



thanks paul. i've done that, will see how it goes.

regan.
Quote Reply
Re: [Paul] Sendmail Anti-spam Filters? In reply to
In Reply To:
What is "Setting Rejected Senders"? Smile

You need to add them into /etc/mail/access eg
Code:
merchantcentral.com 550 You are a spammer
azoogle.com 550 You are a spammer
postlite.com 550 You are a spammer
mb00.net 550 You are a spammer
pm0.net 550 You are a spammer
mailmediapro.com 550 You are a spammer
inyouremail.com 550 You are a spammer
currentmail.com 550 You are a spammer
pcyy.com 550 You are a spammer



hi paul,

just on this one again - was wondering if it should go in the "access" file or the "deny" file? just saw deny there and wondered...

also, if i wanted to add a subdomain instead of the whole domain, would you simply just list it as you have with the others - for exmaple...

reply.pm0.net

thanks,
regan.
Quote Reply
Re: [ryel01] Sendmail Anti-spam Filters? In reply to
>>just on this one again - was wondering if it should go in the "access" file or the "deny" file? <<

Do you mean hosts.deny? ....if so, yes you can put domains if there but I think it will block them from all services, not just email.

>>
also, if i wanted to add a subdomain instead of the whole domain, would you simply just list it as you have with the others
<<

Yep thats correct.
Quote Reply
Re: [Paul] Sendmail Anti-spam Filters? In reply to
In Reply To:
>>just on this one again - was wondering if it should go in the "access" file or the "deny" file? <<

Do you mean hosts.deny? ....if so, yes you can put domains if there but I think it will block them from all services, not just email.


hi paul,

nope, not hosts.deny - i've got a file in my /etc/mail/ directory called deny that has the list of spam domains in it that I've entered through linuxconf - that's where it seems to put them instead of in the access file.

regan.
Quote Reply
Re: [Paul] Sendmail Anti-spam Filters? In reply to
In Reply To:
also, if i wanted to add a subdomain instead of the whole domain, would you simply just list it as you have with the others

Yep thats correct.



hi again,

will straight ip addresses work as well, or can I only specify the name of the domain?

thanks,

regan.
Quote Reply
Re: [ryel01] Sendmail Anti-spam Filters? In reply to
I believe you can only specify the domain.

http://www.linuxdoc.org/....3/chap22sec178.html
========================================
Buh Bye!

Cheers,
Me
Quote Reply
Re: [Stealth] Sendmail Anti-spam Filters? In reply to
In Reply To:
I believe you can only specify the domain.

http://www.linuxdoc.org/....3/chap22sec178.html



thanks for the link! I'll have a read through it.

regan.
Quote Reply
Re: [ryel01] Sendmail Anti-spam Filters? In reply to
Yes you can enter IP's into the access database.

You can block a network like so:

213.106.15

That would be the same as:

213.106.15.*

Last edited by:

Paul: May 13, 2002, 1:48 AM
Quote Reply
Re: [ryel01] Sendmail Anti-spam Filters? In reply to
By the way, you don't want them in your hosts.deny / hosts.allow files as sendmail does not use these by default. Typically it's only programs launched through inetd (telnet, ftp sometimes, ssh sometimes) that use it.

Cheers,

Alex
--
Gossamer Threads Inc.