For some reason, I cannot filter messages that have uppercase or possibly mixed casing in them. I have tried several tests by connecting to port 25 and sending messages. The ones that fail are from MAILER-DAEMON@mydomain.net. Here are the rules I have tried:
require ["fileinto", "reject", "vacation"];
if header :contains ["To", "Cc", "Bcc", "Reply-To", "In-Reply-To"] " mailer-daemon@mydomain.net" { fileinto "mailer-daemon"; stop; }
if header :contains ["To", "Cc", "Bcc", "Reply-To", "In-Reply-To"] " MAILER-DAEMON@mydomain.net" { fileinto "mailer-daemon"; stop; }
if header :contains ["To", "Cc", "Bcc", "Reply-To", "In-Reply-To"] " MAILER-DAEMON@mail.mydomain.net" { fileinto "mailer-daemon"; stop; }
if header :contains ["To", "Cc", "Bcc", "Reply-To", "In-Reply-To"] " mailer-daemon@mail.mydomain.net" { fileinto "mailer-daemon"; stop; }
They all fail to deliver to my mail folder "mailer-daemon" and go to my inbox instead.
Anybody have any ideas what I am doing wrong? Also, how can I add a wildcard so that I do not have to
specify subdomains?
Thank you!