Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Sendmail (very urgent )

Status
Not open for further replies.

sheel

Technical User
Mar 9, 2001
74
Hello:

Our mail server infected with New virus. We using Sendmail on Linux .. How do i delete mail of particual subject mail from all the users Inbox on server side...

Is this possible ? ...

Thankyou in advance
 
One way is to define a custom macro rule for the virus; for instance with the melissa virus you could write a macro that would check each message with the common text
embedded in the message.

HSubject: $>Chek_it
D{MPAT} "Suspected text"(or an F line for zip
files or some other attachment )
D{MMsg}This is probably a virus

The first line forwards all new messages to a rule called Chek_it. The other two line create a return and virus message for
the ruleset and sending to users.

The rule set starts with an Sline..

SChek_it
(rules are Rlines.)
R${MPAT} $* $#error: 553 ${MMsg}

This nonsense just says if the MPAT matches
with any number of consecutive lines then the
default action is to get rid of it and send the previously defined error message to the
intended victim. You could also write a
return rule here., which would be really useless since the poor sod who sent it has enough trouble already.

Now all you have to do is either find some
patterns(attachment files, subject lines, etc..) in this new virus to write a ruleset around or go out to one of the sendmail
groups or security sites and get a patch ruleset to add to your sendmail.cf.

This stops it before it gets to the mailbox.

If the mail is in place then searching through the mail with something like grep, or
mailgrep my work, or may be a really bad idea
depending on the virus.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top