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.

EXIM outgoing filter , change an string for an account

Discussion in 'E-mail Discussions' started by magj, May 24, 2014.

  1. magj

    magj Member

    Joined:
    Dec 20, 2013
    Messages:
    18
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Hi

    I searched the forum but couldn't find a clear answer to this, so I opened this thread,

    I want to add an outgoing filter which replaces a text with another text in all outgoing emails of an account. (actualy the url of the text with a certain pattern , i.e:
    Code:
    http://sub.domain.com/subfolder
    to
    Code:
    http://sub.domain.com/someother/folder
    )

    Any help would be greatly appreciated.

    Regards
     
    #1 magj, May 24, 2014
    Last edited: May 24, 2014
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    676
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello :)

    Have you considered setting up a custom Mod_Rewrite redirection rule so the domain name is automatically redirected to the preferred location?

    Thank you.
     
  3. magj

    magj Member

    Joined:
    Dec 20, 2013
    Messages:
    18
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Hi

    Thank you very much for your help, but the scenario is a bit complex (and funny ;) ), using whmcs & whmcs-wordpress integration ,the author of the integration believes it's not possible in software level, if I redirect all those links on apache/webserver, it will make an infinite loop due to the software design, so the only solution I could imagine , is to do it on mail server level, if possible.

    any help would be greatly appreciated
    Regards
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    676
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    You might receive input from other users here regarding the email filter, but you will likely get more feedback about whichever Apache redirect rules you implemented that resulted in an infinite loop. My guess is the redirect rules for the web server will be easier to configure than a custom Exim filter.

    Thank you.
     
  5. magj

    magj Member

    Joined:
    Dec 20, 2013
    Messages:
    18
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Hi again

    Thanks for your relpy, then it seems it's impossible ;) because this integration loads a page from another page, when the second page is redirected to the first one, it makes an infinite loop, this is how the integration is made (I know it would be better that way), but unfortunately it is.

    Regards
     
Loading...

Share This Page