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.

Exim bounce setup

Discussion in 'E-mail Discussions' started by Bdzzld, Dec 27, 2017.

  1. Bdzzld

    Bdzzld Well-Known Member

    Joined:
    Apr 3, 2004
    Messages:
    380
    Likes Received:
    4
    Trophy Points:
    168
    Hi,

    We've setup Exim (for security reasons) to only bounce e-mail headers (and not the full e-mail) in case of an incorrect recipient's e-mail address, by adding the following to the Exim configuration:

    Code:
    bounce_return_message = false
    bounce_return_body = false
    
    This works without problems.

    We'd also like to setup a message to let the receiver know about this and have found the following in another server's setup bounce :

    The question: How can the latter be added to our bounces?

    Thanks.
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    42,734
    Likes Received:
    1,706
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
  3. Bdzzld

    Bdzzld Well-Known Member

    Joined:
    Apr 3, 2004
    Messages:
    380
    Likes Received:
    4
    Trophy Points:
    168
    @cPanelMichael:

    That thread is focussed on autoresponders, while mine is focussed on a bounce message someone receives when an e-mail address is not valid.

    Hereby a sample of such an e-mail:

    I'd like to have the last line added to our bounces as well. How do I do this?

    Thanks.
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    42,734
    Likes Received:
    1,706
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    The thread originates with a question about autoresponders, but then goes into information about Delivery Status Notifications with Exim (DSN), which is what you need to enable to include that information in the bounce message.

    Thank you.
     
  5. Bdzzld

    Bdzzld Well-Known Member

    Joined:
    Apr 3, 2004
    Messages:
    380
    Likes Received:
    4
    Trophy Points:
    168
    @cPanelMichael

    So, if I understand correctly, I've to add the following line :

    Code:
    dsn_advertise_hosts = * 
    
    to the file /etc/exim.conf.local under the @config@ section in order to have the header :

    added to our bounces?
     
  6. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    42,734
    Likes Received:
    1,706
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    You'd need to enable DSN first before you could include DSN information in the message headers, so the instructions in that thread are the the first step to take. Additionally, I suggest reviewing the Exim documentation for more information about "dsn_advertise_hosts" at:

    14. Main configuration

    That said, as far as including that information in the message header, I don't believe that happens automatically. Note that this is a custom Exim configuration, so it's not something we offer support for. You may want to consult with the Exim user's mailing list or a system administrator for help customizing Exim to include that in the header:

    Exim-users Info Page
    System Administration Services | cPanel Forums

    Thank you.
     
Loading...

Share This Page