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 Internet Information Services, Inc. http://www.i-is.com/ | 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 > > > > > ------------------------------------------------------- > 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 ------------------------------------------------------- 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