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!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Override exim messages

Discussion in 'E-mail Discussions' started by rahnev, Apr 28, 2017.

Tags:
  1. rahnev

    rahnev Active Member

    Joined:
    Jul 6, 2016
    Messages:
    33
    Likes Received:
    2
    Trophy Points:
    8
    Location:
    Bulgaria
    cPanel Access Level:
    Root Administrator
    Hello,
    I need to change the language for exim error messages. For example this one:
    Code:
    fail_remote_domains:
      driver = redirect
      domains = ! +local_domains : ! localhost : ! localhost.localdomain
      allow_fail
      data = ":fail: The mail server could not deliver mail to $local_part@$domain.  The account or doma
    in may not exist, they may be blacklisted, or missing the proper dns entries."
    I need to change the data text in different language.

    I edit the /etc/exim.conf.local file and added the configuration under @ROUTERMIDDLE@ section:
    Code:
    @ROUTERMIDDLE@
    fail_remote_domains:
      driver = redirect
      domains = ! +local_domains : ! localhost : ! localhost.localdomain
      allow_fail
      data = ":fail: Custom message. The mail server could not deliver mail to $local_part@$domain."
    Rebuilding the file exits with this error message:
    Code:
    /scripts/buildeximconf
    ....
    ....
    Exim configuration error:
      there are two routers called "fail_remote_domains"
    What am I doing wrong or is there another way to change those kind of text in different language?

    Thanks.
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    38,658
    Likes Received:
    1,425
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    There's discussion of a workaround for making this type of change on the following thread:

    /scripts/posteximup help

    Thank you.
     
  3. rahnev

    rahnev Active Member

    Joined:
    Jul 6, 2016
    Messages:
    33
    Likes Received:
    2
    Trophy Points:
    8
    Location:
    Bulgaria
    cPanel Access Level:
    Root Administrator
    Thank for your answer.
    Is there some "native" solution? The described method is not very useful because if you make changes to current exim configarion, you will need to regenerate this custom file.
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    38,658
    Likes Received:
    1,425
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    There's no functionality to support customization of those values in the Advanced Editor, but I encourage you to open a feature request if you'd like to see that in the future:

    Submit A Feature Request

    Thank you.
     
Loading...

Share This Page