can we block mails with perticular subject line

Scott Silva ssilva at sgvwater.com
Fri Jun 23 16:14:41 IST 2006


Raj spake the following on 6/23/2006 12:00 AM:
> Hi everyone.
> really thx for your replays,
> 
> I think i found the solution to block or redirect the mails with
> particular words in the subject line.
> 
> STICK TO THE BASICS GUYS.............!
> 
> YES ......It is possible on sendmail.
> i used scripts on MDA( message deliver agent) which is procmail on my
> sendmail.
> 
> I will explain how, May some one can benefit out this.
> 
> I made a simple script inside ~/.procmailrc on each user.
> 
> :0
> * ^Subject:.*\fuck
> $MAILDIR/mail/SPAM
> 
> :0
> * ^Subject:.*\sex
> $MAILDIR/mail/SPAM
> 
> 
> This will move mails with fuck & sex on the subject line from inbox to
> SPAM folder for each user in the sendmail.There are many thing possible
> on procmail you can even send these mails to any other user as if
> mailscanner is sending a warning to a superuser.
> 
> for that u have to give
> 
> :0
>  * ^Subject:.*fuck
>  {
>                   :0 c
>                   !trackspam@ pun.softspins.com <http://pun.softspins.com>
>  
>  }
>  
> where fuck is the bad word & trackspam is the user to monitor the mails.
> 
> by carefully inspecting procmail many things are possible , u can even
> manipulate mails with words in the message body or perticular attachment
> and so on.
> 
> so try your own scripts which suites your company & infrastructure.
> 
> 
> But still i am facing some problem, what happened is i got nearly 80
> users & if i want to implement this i have to copy these files to all
> home directory on each & every user.
> The same scripts didn't worked when i put inside /etc/procmailrc.
> 
> I am trying to find a solution, if any one got please help me out.
> 
> 
> 
> On 6/21/06, Raj <rajlinux at gmail.com <mailto:rajlinux at gmail.com>> wrote:
>> Can we block any particular subject line in MailScanner
>> i mean if subject have words like Viagra, sex, fuck etc.. can we block
> them ?
>> MailScanner is working very well blocking with extension like *.exe.
>>
>> I am facing too many problem with spams these days. Some time
>> spamassassin fails to recognise the spams. So can we block them with
>> its subject line.
>>
>> it is possible on qmail by QTRAP. it blockes mails with customised words.
>>
>> i gone through docs of MS, But fails to find such function out of it.
>> If this is possible on MS that will be great.
This doesn't block them in sendmail, it moves them after they are received. It
isn't any different than having MailScanner take care of it.

-- 

MailScanner is like deodorant...
You hope everybody uses it, and
you notice quickly if they don't!!!!



More information about the MailScanner mailing list