On 2018-08-09 18:17, Wietse Venema wrote:
Tom Sommer:
On 2018-08-09 14:57, Wietse Venema wrote:
> Tom Sommer:
>> I still fail to see how to inject the $smtp_code for the stream into
>> the
>> string at a precise position, but I gather it's possible somehow so I
>> will keep digging.
>
> One more time:
> YOU don't insert status codes into the footer.
> POSTFIX inserts those for you.
Okay, so then we are back to my original feature request and me not
understanding how a smtpd_reject_footer_maps would enable me to do so
:)
Sorry for the noise, I guess.
For those who find this thread via a search engine.
You specify "\n" in the reply footer text.
Postfix replaces that with:
1 - One line break plus
2 - One SMTP reply code plus
3 - One optional enhanced status code.
That won't do what I am describing
This:
smtpd_reject_footer = Please visit http://example.com/error.php?code=\n
for more information
Will produce:
500-5.5.5 Please visit http://example.com/error.php?code=
500 5.5.5 for more information
---
Tom