If you want to block any FAKE MAIL the REGEX should be:
Then this will block any From with two emails in following pattern: "xxx@xxx" <xxx@xxx>
This will be blocked:
And this will be allowed:
But there are valid mails with malformed "USER NAME" that users on Outlook use their mail as username, then this kind of mails will be blocked.
I recommend to do a NOTIFY ONLY to ADMIN and WATCH all notifications, in this case you can do a preemptive action, or send them to QUARANTINE and answer to thoses users to fix their mail client configuration.
There is another situation. A mail answering with a header
a mail that has a forward or answer using
will be match too, so before getting something nasty firs i recommend to only notify those match rules.
Something sane like this for example:
If after a while you get that is what you decire, add the action to "QUARANTINE" to retain all activity mal formed or fake mails.
Code:
"[\w-\.]+@([\w-]+\.)+[\w-]{2,4}" <[\w-\.]+@([\w-]+\.)+[\w-]{2,4}>
Then this will block any From with two emails in following pattern: "xxx@xxx" <xxx@xxx>
This will be blocked:
Code:
"secretaria@clientdomain.com" <doaa.shaban@ten.tv>
And this will be allowed:
Code:
"USER NAME" <username@domain>
But there are valid mails with malformed "USER NAME" that users on Outlook use their mail as username, then this kind of mails will be blocked.
I recommend to do a NOTIFY ONLY to ADMIN and WATCH all notifications, in this case you can do a preemptive action, or send them to QUARANTINE and answer to thoses users to fix their mail client configuration.
There is another situation. A mail answering with a header
Code:
FROM: "user1" <user1@domain>
Code:
FROM: "user@domain" <user@domain>
Something sane like this for example:
If after a while you get that is what you decire, add the action to "QUARANTINE" to retain all activity mal formed or fake mails.