Klaus,

> I need to exclude specific accounts from the spam & virus checks.
> Those account have addresses like [EMAIL PROTECTED] -
> always starting with the same character followed by a certain number
> of digits and other characters of variable length. And with a specific
> domain.
>
> I tried
> $bypass_spam_checks_re  = new_RE( qr'[EMAIL PROTECTED]' );
> but it seems that this does not work. Mails to those adresses
> are still marked as spam.

Appears ok, besides the fact that it matches plenty of other addresses.
This should be tighter:  qr'[EMAIL PROTECTED]'i
(added anchoring, need a dot not 'any character').
Notice also an added 'i' flag, which makes a match be case-insensitive.

At log level 5 you should see exact strings matched. Could be
that your virtual mapping already converted domain name
or transformed recipient address to a mailbox name.

  Mark


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
AMaViS-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/amavis-user
AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3
AMaViS-HowTos:http://www.amavis.org/howto/

Reply via email to