Hi everyone.<br>really thx for your replays, <br><br>I think i found the solution to block or redirect the mails with particular words in the subject line.<br><br><span style="color: rgb(51, 51, 255);">STICK TO THE BASICS GUYS.............!
</span><br><br>YES ......It is possible on sendmail.<br>i used scripts on MDA( message deliver agent) which is procmail on my sendmail. <br><br>I will explain how, May some one can benefit out this.<br><br>I made a simple script inside ~/.procmailrc on each user.
<br><br><span style="background-color: rgb(255, 255, 255); color: rgb(51, 51, 255);">:0</span><br style="background-color: rgb(255, 255, 255); color: rgb(51, 51, 255);"><span style="background-color: rgb(255, 255, 255); color: rgb(51, 51, 255);">
* ^Subject:.*\fuck</span><br style="background-color: rgb(255, 255, 255); color: rgb(51, 51, 255);"><span style="background-color: rgb(255, 255, 255); color: rgb(51, 51, 255);">$MAILDIR/mail/SPAM</span><br style="background-color: rgb(255, 255, 255); color: rgb(51, 51, 255);">
<br style="background-color: rgb(255, 255, 255); color: rgb(51, 51, 255);"><span style="background-color: rgb(255, 255, 255); color: rgb(51, 51, 255);">:0</span><br style="background-color: rgb(255, 255, 255); color: rgb(51, 51, 255);">
<span style="background-color: rgb(255, 255, 255); color: rgb(51, 51, 255);">* ^Subject:.*\sex</span><br style="background-color: rgb(255, 255, 255); color: rgb(51, 51, 255);"><span style="background-color: rgb(204, 0, 0);">
<span style="background-color: rgb(255, 255, 255); color: rgb(51, 51, 255);">$MAILDIR/mail/SPAM</span><br style="color: rgb(51, 51, 255);"><br><br style="background-color: rgb(204, 0, 0);"></span>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.<br><br>for that u have to give <br><br style="color: rgb(51, 51, 255);">
<span style="color: rgb(51, 51, 255);">:0</span><br style="color: rgb(51, 51, 255);"><span style="color: rgb(51, 51, 255);"> * ^Subject:.*fuck</span><br style="color: rgb(51, 51, 255);"><span style="color: rgb(51, 51, 255);">
{</span><br style="color: rgb(51, 51, 255);"><span style="color: rgb(51, 51, 255);"> :0 c</span><br style="color: rgb(51, 51, 255);"><span style="color: rgb(51, 51, 255);"> !trackspam@<a href="http://pun.softspins.com">
pun.softspins.com</a></span><br style="color: rgb(51, 51, 255);"><span style="color: rgb(51, 51, 255);"> </span><br style="color: rgb(51, 51, 255);"><span style="color: rgb(51, 51, 255);"> }</span><br> <br>where fuck is the bad word & trackspam is the user to monitor the mails.
<br><br>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.<br><br>so try your own scripts which suites your company & infrastructure.
<br><br><br>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. <br>The same scripts didn't worked when i put inside
<span style="color: rgb(51, 51, 255);">/etc/procmailrc.</span><br><br>I am trying to find a solution, if any one got please help me out. <br><br><br><br>On 6/21/06, Raj <<a href="mailto:rajlinux@gmail.com">rajlinux@gmail.com
</a>> wrote:<br>> Can we block any particular subject line in MailScanner<br>> i mean if subject have words like Viagra, sex, fuck etc.. can we block them ?<br>> MailScanner is working very well blocking with extension like *.exe.
<br>> <br>> I am facing too many problem with spams these days. Some time<br>> spamassassin fails to recognise the spams. So can we block them with<br>> its subject line.<br>> <br>> it is possible on qmail by QTRAP. it blockes mails with customised words.
<br>> <br>> i gone through docs of MS, But fails to find such function out of it.<br>> If this is possible on MS that will be great.<br>> <br>> <br>> <br>> --<br>> Regards<br>> Rajeev Sekhar<br>
> ph 9822751120<br>> <br><br><br>-- <br>Regards<br>Rajeev Sekhar<br>ph 9822751120<br>