Skip to main content

Email Rule to filter (delete or move) all domains except from .com?

Comments

5 comments

  • USA_Webmaster
    gentle bump
    0
  • asmithjr
    Can you just do this in you cPanel account by creating a filter? I tested making one and it created this in my filter file. #move not com if $header_from: does not contain ".com" then deliver "##@######.com" endif
    0
  • USA_Webmaster
    Can you just do this in you cPanel account by creating a filter? I tested making one and it created this in my filter file. #move not com if $header_from: does not contain ".com" then deliver "##@######.com" endif

    Thanks for the reply but when I use the cPanel > Email Filters > Create Filter area I do not see where I can paste raw code. I've not made a "Any Header" rule before but I reckon this should do!! Thanks buddy for teaching me about headers. Quick question, if using the website, does it matter if the rule uses "com" or com ... the quotes? p.s. - i think if i would have logged into FTP, etc/domain.com/user/filter i would have been able to manually add rule.
    0
  • asmithjr
    I should have left it with just use the cPanel create method. Forget I posted the code. No need to put the .com in quotes. Now in you screen example change the Deliver to Folder to Forward to email if you want it to go to an email account you can monitor. You will need one for each extension you are trying to do this with.
    0
  • cPRex Jurassic Moderator
    Thanks @asmithjr - let us know if you need anything else @USA_Webmaster
    0

Please sign in to leave a comment.