Postfix Bounces messages Translation

  • Hi,


    I'm thinking to translate the bounces messages received when there is an error when you send an email.
    As far I read... it looks like since postfix-2.3 we are available to translate this using /etc/postfix/bounce.cf.default template...
    But actually, I can't find this file on the i-MSCP distro.


    Do you know how can I set this?


    Regards

  • @lestatminiyo,


    By default, the builtin templates are used ;) The file that you're searching is stored in a dedicated package. In order you must:


    1. Install the postfix-doc distribution package: # apt-get install postfix-doc
    2. Create the custom bounce template as stated in BOUNCE(5):

    Shell-Script
    1. # cd /etc/postfix# cp /usr/share/doc/postfix-doc/examples/bounce.cf.default custom_bounce_tpl.cf

    3. Translate the template that is now located at /etc/postfix/custom_bounce_tpl.cf
    4. Make postfix aware of that custom bounce template by adding the following parameter in the /etc/postfix/main.cf file:

    Code
    1. bounce_template_file = /etc/postfix/custom_bounce_tpl.cf

    5. Restart postfix: service postfix restart


    See also: http://www.postfix.org/bounce.5.html (BOUNCE(5))

    badge.php?id=1239063037&bid=2518&key=1747635596&format=png&z=547451206

    account_detailed.gif

  • I think it must be /etc/imscp/postfix/custom_bounce_tpl.cf

    You must create it in the /etc/postfix directory. I made a mistake in my previous post which is now fixed.


    For the parameter to add in the /etc/postfix/main.cf file, you can make it persistent using a i-MSCP listener file.

    badge.php?id=1239063037&bid=2518&key=1747635596&format=png&z=547451206

    account_detailed.gif