Hi all,

I have a question about bounce template.

My problem is that when the bounce is sent Charset, From, Subject and Postmaster (as indicated in http://www.postfix.org/bounce.5.html) are inserted in the body of mail and not used for the respective funciont on the sent mail.

I only configured this in my /etc/postfix/main.cf

bounce_template_file = /etc/postfix/bounce.cf

which contains

failure_template = <<EOF
        Charset: utf-8
        From: mail-robot (Mail Delivery System)
        Subject: Error in mail delivery
        Postmaster-Subject: Postmaster Copy: Undelivered Mail
        This is the mail system at host $myhostname.

        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
EOF

The subject of the bounce is set to "Undelivered Mail Returned to Sender" and the sender is "Mail Delivery System MAILER-DAEMON@$myhostname"

Surely I'm missing something but I can't figure what?

Anyone has a similar issue?

--
Andrea Cappelli
Asidev s.r.l.

Reply via email to