On Wed, 3 Dec 2003, Fred I-IS.COM wrote: > Just a minor correction, > > try this: > > header __BLOCKTOFFICEOUT To =~ /[EMAIL PROTECTED]/i > header __BLOCKFOFFICEOUT From =~ /[EMAIL PROTECTED]/i > meta BLOCK_MY_OFFICE (__BLOCKTOFFICEOUT && !__BLOCKFOFFICEOUT) > describe BLOCK_MY_OFFICE No E-mail to alias from outside > score BLOCK_MY_OFFICE 100.0 > > The syntax is slightly different in my rule and I used a meta rule to > accomplish what you want. > > Frederic Tarasevicius > > Nayana Hettiarachchi wrote: > > hi i am trying to setup a rule so that we wont get mail to our local > > alias from an outside address, this is what i wrote but it doesnt seem > > to work as i thought it would, can u give any advice > > > > header BLOCKTTOFFICEOUT To = [EMAIL PROTECTED] > > header BLOCKTTOFFICEOUT From != [EMAIL PROTECTED] > > score BLOCKTTOFFICEOUT 100.0 > > describe BLOCKTTOFFICEOUT No Email To alias from outside > > > > thanks > > > > Nayana
Of course, you should realize that the message header values can be forged to be -anything- that a spammer wants them to be, and they have no relation to where the mail actually gets routed. The thing that acually controls delivery is something called the envelope recipient and can be completely different from the 'To:' header. Depending upon how your mail system is configured Spamassassin probably has no way to "see" the value of the envelope recipient. This sort of thing is far better handled by your MTA, which has to deal completely with the envelope recipient address. Dave -- Dave Funk University of Iowa <dbfunk (at) engineering.uiowa.edu> College of Engineering 319/335-5751 FAX: 319/384-0549 1256 Seamans Center Sys_admin/Postmaster/cell_admin Iowa City, IA 52242-1527 #include <std_disclaimer.h> Better is not better, 'standard' is better. B{ ------------------------------------------------------- This SF.net email is sponsored by OSDN's Audience Survey. Help shape OSDN's sites and tell us what you think. Take this five minute survey and you could win a $250 Gift Certificate. http://www.wrgsurveys.com/2003/osdntech03.php?site=8 _______________________________________________ Spamassassin-talk mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/spamassassin-talk