Help needed with Spamassassin Rule Syntax

Alex Broens ms-list at alexb.ch
Mon Aug 10 06:48:35 IST 2009


On 8/10/2009 2:12 AM, hden at kci.net.nz wrote:
> The following spamassassin rule ..
> 
> header MY_DOMAIN_IN_FROM From =~ /\@mydomain.com$/i
> 
> works fine when mail comes in 'From: user at mydomain.com', but
> what/how/where do I need to change the rule to also works when the email
> uses the following format ..
> 
> From: AUSER <user at mydomain.com>
> 
> Cheers!
> Dave

  header MY_DOMAIN_IN_FROM From =~ /\@example\.com\>?$/i

or

  header MY_DOMAIN_IN_FROM From =~ /\@example\.com/i


More information about the MailScanner mailing list