![]() | ![]() | ![]() | ![]() |
|
faq search add article cool-stuff how-to main tips |
Posted by Jason on Friday August 22, @05:24PMfrom the W32.Sobig.F@mm sucks dept. Due to the recent flood of emails on the net caused by the Sobig virus/worm, I though I should share with everyone how to use Sendmail rules to block these and other messages at the server. The first thing you have to know is that sendmail consists mostly of one very large text file which contains most of the configuration information in the form of rules. The name of the text file is sendmail.cf. The rules can be modified and other rules can be added by simply editing this text file and thats exactly what has to be done to add a rule for blocking messages. The second thing you need to know is that the sendmail.cf file is a huge beast, therefore step one is very important. The process consists of four steps: 1. Make a backup copy of sendmail.cf [Make a backup copy sendmail.cf] This is important! You don't want to mess up your sendmail config file and not have a backup copy. [Add rules to sendmail.cf] I have provided a basic rule that will filter email based on the subject line text of the email. Here is what that rule looks like: [Modify the rule in sendmail.cf] In this step you will need to modify the rules to match a particular subject line text that you would like to have sendmail block. In the case of our pain in the butt W32.Sobig.f@mm worm we could use Re: Wicked screensaver. Here's how... [Restart the sendmail server] There are two ways to do this; restart your server or send a restart signal to sendmail.Thats all there is to it! To test you system, try sending it an email with the blocked subject line and remember it's case senstive. You will have to repeat this process for each possible subject that you might like to block. Its crude but effective. NOTE: To learn more about commands used in this article, refer to the man pages: man ps man kill man killall man ee man vi < | >
|
|
||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||
| "You never know how many friends you have until you own a Condo on the beach." -- Jason's Postulate |
|
| All trademarks and copyrights on this page are owned by their respective companies. Comments are owned by the Poster. The Rest ©2001 Jason Neumann. |