filtering email with regex for emails with period in user name ie first.last@ourdomain.com
We have a similar domain name to a government health service (we are .com.au they are .gov.au) and we continually get emails, most likely private and urgent to doctors etc sent to ur .com.au domain. All of the incoming erroneous emails have firstname.lastname@domain.com.au email address and we do not use periods in our emails, i.e. we use name@domain.com.au.
I've tried a few times to Globally filter using both 'To' and 'Any Recipient' that matches regex to try a filter our first.last@ but have been unable to make it work. Any suggestions on what the regex expression would be in cpanel?
We just plan to 'fail with message' advising them they sent it to the wrong email address and it's been deleted.
Thanks in advance.
-
Hey there! I'm not personally sure of the regex on that, but could you just filter the entire .gov.au domain instead? If you are .com.au you could filter the entire domain and not have to worry about the part of the address before the @ 0 -
Hey there! I'm not personally sure of the regex on that, but could you just filter the entire .gov.au domain instead? If you are .com.au you could filter the entire domain and not have to worry about the part of the address before the @
unfortunately they are sending to .com.au rather than .gov.au0
Please sign in to leave a comment.
Comments
3 comments