Operating System - Linux
1826499 Members
1768 Online
109692 Solutions
New Discussion

filtering messgae based on subject /body

 
kcpant
Trusted Contributor

filtering messgae based on subject /body

Hi Friends,

I'm using sendmail+MailScanner in a Mail server setup. Now a days, we are getting so many junk mails which are not gettng filtered automatically by mailscanner, and I found that these mails have a metching pattern in their subject or body. please let me know how I could make a filtering rule in mailscanner to delete/ quarantine such mails by metching subject or body text.

thanks in advance
PreSales Specialist
6 REPLIES 6
morganelan
Trusted Contributor

Re: filtering messgae based on subject /body

VEL_1
Valued Contributor

Re: filtering messgae based on subject /body

Hi,

You can use Procmail. Its easy to manage for create rules with subject & body

http://userpages.umbc.edu/~ian/procmail.html
http://www.sfu.ca/acs/email/spam/procmail.htm

Steven E. Protter
Exalted Contributor

Re: filtering messgae based on subject /body

This should not be done on the server. spamassasin, if kept up to date will work better.

ITs a client issue.

The spammers alter the spelling of the key words you scan for to get their mail through.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Gopi Sekar
Honored Contributor

Re: filtering messgae based on subject /body


Either replace spamassassin with Mailscanner at the server side. or simply add .procmailrc file for each user mbox which simply discards mails matching a particular 'pattern'.

check 'man procmail' for more information.

Hope this helps,
Gopi
Never Never Never Giveup
kcpant
Trusted Contributor

Re: filtering messgae based on subject /body

Thanks Friends,

Actualy I was too busy to check forum replies, was working on MCP configuration of spamassassin. the problem has been worked out through MCP.

Thanks all of you again..
PreSales Specialist
kcpant
Trusted Contributor

Re: filtering messgae based on subject /body

Closing threads open from a long time....
PreSales Specialist