The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

User Email Filters - Add Custom Header?

Discussion in 'E-mail Discussions' started by doni49, Feb 4, 2008.

  1. doni49

    doni49 Well-Known Member

    Joined:
    Oct 4, 2006
    Messages:
    74
    Likes Received:
    0
    Trophy Points:
    6
    Using "User Email Filters", is it possible to add a custom header to the message and then forward it on to a different email address?

    Thanks.
     
  2. doni49

    doni49 Well-Known Member

    Joined:
    Oct 4, 2006
    Messages:
    74
    Likes Received:
    0
    Trophy Points:
    6
    I'd still like to be able to do this.

    I use several different email addresses and want them forwarded to ONE IMAP account. I need messages intended for address1@mydomain to be placed in Folder1. Messages intended for address2@mydomain should be placed in Folder1. And so on.....

    My goal is to create a user filter for the IMAP account to move messages to Folder1 if they were sent to address1@mydomain. If a user filter could be created for the address1 account that added a custom header to the message before forwarding it to the IMAP account, that would work out well.

    Anyone out there have any suggestions?

    Thanks.
     
  3. cPanelDavidG

    cPanelDavidG Technical Product Specialist

    Joined:
    Nov 29, 2006
    Messages:
    11,279
    Likes Received:
    8
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    I'd try creating a email filter where "To" contains a string "address1@mydomain", move it to a folder called Folder 1.

    The equals operator is very exact, hence I prefer to use the more vague "contains" operator in case someone emails "bunchofpeople, address1@mydomain.com" or "my name <address1@mydomain.com>" or something like that.
     
  4. doni49

    doni49 Well-Known Member

    Joined:
    Oct 4, 2006
    Messages:
    74
    Likes Received:
    0
    Trophy Points:
    6
    Thanks. But I considered that. But it wouldn't work if I was included via a BCC as BCC addresses don't show up in the headers.

    My hosting provider (I'm a reseller on a shared hosting service) tells me that their mail server is configured to add the "Envelope-To" header to every incoming message.

    So I tried setting the filter to look for "Any Header" with a regex of "Envelope-To:*address1@mydomain.com" and move it to the folder.

    When I sent a test message to address1@mydomain.com, the message just went to the inbox instead of the correct folder.
     
Loading...

Share This Page