Spam rule wildcards...

Julian Field mailscanner at
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 can get mail at johndoe+spamtag at without any additional
>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
Professional Support Services at
MailScanner thanks transtec Computers for their support

More information about the MailScanner mailing list