How can I write regex for postfix header check to reject all the mails with X-Source-Dir
having abc/def
?
Is this OK?
/^X-Source-Dir:\s(.*abc\/def.*)/ REJECT due to spam:
Thanks a lot Ladadadada:)
But with,
/^X-Source-Dir:\s(abc|def)/ REJECT due to spam:
all the mails from dir /abc/def would be rejected right.. My requirement is like, reject the mails originating from "/home/user/public_html/templates/beez". I tried the below given header check:
/^X-Source-Dir:\s(.\*templates.*|.\*wp-content.\*)/ REJECT The message was rejected due to classification as spam from CMS
But the problem is this would also reject mails with source dir as /home/user/public_html/templatesabc.com/
Please assist.