On 2018-08-09 14:01, Wietse Venema wrote:
Tom Sommer:
It would be nice if smtpd_reject_footer could include variables such as
the 4.x.x/5.x.x response code or even the full postfix error message,
this way one could make more helpful errors messages with more helpful
links.

Better: smtpd_reject_footer_maps. Then you can use a lookup
table (pcre or regexp etc.) to choose the footer dynamically.

How that would enable me to dynamically add the relevant 4XX/5XX or error for that mail into the text?

Example:
smtpd_reject_footer = \c See example.com/errors?code=$responsecode&text=$errormsg

--
Tom

Reply via email to