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.

Re-routing errors to mailbox using Exim Advanced Editor, or preventing exim.conf overwrite

Discussion in 'E-mail Discussions' started by maxnugget, Mar 29, 2013.

  1. maxnugget

    maxnugget Registered

    Mar 29, 2013
    Likes Received:
    Trophy Points:
    cPanel Access Level:
    Root Administrator
    I need all email errors to be delivered to a mailbox I set up rather than be delivered to the sender. I've been doing this by adding an "errors_to:" to each router in exim.conf, problem is there seems to be no way to prevent WHM from periodically overwriting exim.conf changes (I've tried adding /etc/exim.conf to cpanelsync.exclude, making the file immutable, etc -- CPanel still overwrites the file whenever it updates).

    So, I guess my question is, I either need some way to prevent the exim.conf file from being overwritten, or I need some way to routing errors to a special mailbox that I can enter in the Exim Advanced Configuration Editor. It seems like the Advanced Editor lets you add new routers but not add lines to existing routers. Is it conceivable to add some kind of intermediary router that re-routes all errors perhaps?

    Any help is much appreciated, I've been banging my head on the desk for several months.

Share This Page