Dear Postfix users,

I am trying to bounce all messages to a specific domain with a multi-line message. To do so, I added the error mailer to my /etc/postfix/transport and specified a bounce reason like this:

domainname.tld error: first line of message \n
 second line of message \n
 third line of message

Unfortunately, the \n characters do not get replaced by line breaks when the bounce gets delivered. Instead, the error message the original sender receives contains one long line of text, with the \n included. It looks like this:


This is the mail system at host domainname.tld.

I'm sorry to have to inform you that your message could not
be delivered to one or more recipients. It's attached below.

For further assistance, please send mail to postmaster.

If you do so, please include this problem report. You can
delete your own text from the attached returned message.

                   The mail system

<em...@domainname.tld>: first line of message \n second line of message \n
third line of message


Now I am wondering if there is any way to specify multi-line messages for the reason a message got bounced. And would be very happy for any hints you could provide.

Thanks!
Hannes

Reply via email to