1830214 Members
1534 Online
109999 Solutions
New Discussion

Re: Mail filters

 
SOLVED
Go to solution
Samuel Martinez
Advisor

Mail filters

I have a Sendmail 8.11.6/8.11.6 server under linux 7.2
I have a spam contron with the /etc/mail/access file
is there any way to filter e-mails on the subject, attachements, or sise?

Help plz!

rgds:
Samuel M&M
win to win
4 REPLIES 4
benoit Bruckert
Honored Contributor
Solution

Re: Mail filters

Hi Samuel,
For size limitation, you have some features in sendmail to control it.
About subjects, you have some tools which can control such things (spamassasin for example which control also content and allow destruction of mail with specific words (How to win $10000 for example).
About attachment, the milter interface with sendmail can do something.
On my side, I'm using AMavis : A MAil VIrus Scanner, which consist of scanning attachment with antivirus software in order detect virus, and then stop propagation.
www.amavis.org,
But you have also other easiest tools to use which can only reject files with vbs extension or anaything else....
hth
Benoit
Une application mal pansée aboutit à une usine à gaze (GHG)
Steven Mertens
Trusted Contributor

Re: Mail filters

Hi,

You could also try to work with procmail.
Procmail can be used as a general purpose
mailfilter and can be combined with sendmail.

see man procmail & man procmailex for some
usefull examples.

If you do a search on google you will find
a lot of examples related to procmail.

Steven
Anu Mathew
Valued Contributor

Re: Mail filters

Hi Samuel,

Hit for detailed info on procmail. (The Man pages appeared a bit cryptic to me. )

Procmail is the best way to attain your mail-control objectives.

http://www.ling.helsinki.fi/users/reriksso/procmail/mini-faq.html

http://www.uwasa.fi/~ts/info/proctips.html

http://www.procmail.org

These three links helped me a lot for reaching a solution.

Notes:

Since you use sendmail, following tips may be helpfull.

1) Create a link to procmail executable in /etc/smrsh.

2) You won't need any IFS in your .procmail as Sendmail hates it.

Hope this helps,

Thanks

Anu Mathew
Anu Mathew
Valued Contributor

Re: Mail filters

Hi Samuel,

Correction:

IFS is not required in .forward file, as it will err.

For instance, my .forward file looks like:

"| /etc/smrsh/procmail -f- || exit 75 #mattha"

Where mattha is my user-name.

hope this helps,


See http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x50bc3a7b3682d611abdb0090277a778c,00.html

for a similar posting.


Thanks

Anu Mathew