2 conditions in the rule and empty Sender

Mark Sapiro mark at msapiro.net
Thu Nov 1 17:26:41 UTC 2018


On 11/1/18 6:58 AM, Nerijus Baliunas wrote:
> 
> Yes, I get mail from mailer daemon and it gets flagged as a virus, so
> I want the rule which would not scan such emails.
> I can use "From:   127.0.0.1    no" and it works, but I cannot use such
> rule as we have fetchmail running.


You might try

From: 127.0.0.1 and From: /^$/ no

or

From: 127.0.0.1 and To: postmaster at mail.example.com no

The former should match a null sender and allow all local DSNs.

-- 
Mark Sapiro <mark at msapiro.net>        The highway is for gamblers,
San Francisco Bay Area, California    better use your sense - B. Dylan


More information about the MailScanner mailing list