Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

EXIM outgoing filter , change an string for an account

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

  1. magj

    magj Active Member

    Joined:
    Dec 20, 2013
    Messages:
    32
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Germany
    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:
    44,277
    Likes Received:
    1,846
    Trophy Points:
    363
    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. magj

    magj Active Member

    Joined:
    Dec 20, 2013
    Messages:
    32
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Germany
    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:
    44,277
    Likes Received:
    1,846
    Trophy Points:
    363
    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. magj

    magj Active Member

    Joined:
    Dec 20, 2013
    Messages:
    32
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Germany
    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

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice