Spam rule wildcards...

Julian Field mailscanner at ecs.soton.ac.uk
Mon May 12 18:09:25 IST 2003


At 17:43 12/05/2003, you wrote:
>Sendmail allows the use of the "+" character to indicate additional data for a
>user -- without having an explicit alias set up to handle it.  So, user
>johndoe at dcg.com can get mail at johndoe+spamtag at dcg.com without any additional
>configuration.
>
>However, I just noticed that this doesn't hit the intended rule in my
>spam.action.rules file.  johndoe actually gets mail at multiple domains, so my
>rule for him looks like this:
>
>To:     johndoe@*       deliver
>
>What is the best way to handle this?  Should I just add an additional rule for
>johndoe like this:
>
>To:     johndoe+*@*     deliver
>
>...will that work as intended?

That should do it. However, you could give the explicit regular expression
in there if you want to:
To:     /^johndoe\+.*\@/        deliver
(nothing is needed after the "\@" except for the closing "/" character.
--
Julian Field
www.MailScanner.info
Professional Support Services at www.MailScanner.biz
MailScanner thanks transtec Computers for their support



More information about the MailScanner mailing list