On 26.08.21 10:16, [email protected] wrote:
At the end of the message body in bounce.cf postfix appends the error received from the mail server. It is not using line breaks \n like i expect it would.

  POSTFIX:
  --------
  <[email protected]>: host smtp.example.com[IP] said: 550-5.5.1 Address
      [email protected] does not exist 550 5.5.1 This is the text
returned from main.cf:smtpd_reject_footer (in reply to RCPT TO command)

  OTHER SERVERS:
  --------------
  <[email protected]>:
  550: 5.5.1 Address [email protected] does not exist
  5.5.1 This is the text returned from main.cf:smtpd_reject_footer

How can i get postfix to use line breaks and format closer to how other servers do it?

are you searching for something like http://www.postfix.org/postconf.5.html#bounce_template_file

or possibly client-side version of

http://www.postfix.org/postconf.5.html#smtpd_reject_footer_maps
(e.g. for smtp client)?

I was able to add localized error message to the smtpd errors:

smtpd_reject_footer_maps=regexp:/etc/postfix/reject_footer_maps
/User unknown in local recipient table/ Zadana mailova adresa neexistuje.
/Domain not found/      Zadana domena nebola najdena.

and getting different error:

rcpt to:<[email protected]>
550-5.1.1 <[email protected]>: Recipient address rejected: User unknown in 
local recipient table
550 5.1.1 Zadana mailova adresa neexistuje.
rcpt to:<[email protected]>
550-5.1.2 <[email protected]>: Recipient address rejected: Domain not 
found
550 5.1.2 Zadana domena nebola najdena.

but remote servers send reply with of different error messages and it's
quite impossible to catch them all



--
Matus UHLAR - fantomas, [email protected] ; http://www.fantomas.sk/
Warning: I wish NOT to receive e-mail advertising to this address.
Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu.
The early bird may get the worm, but the second mouse gets the cheese.

Reply via email to