Re: Feature request: More variables in smtpd_reject_footer

2018-08-10 Thread Wietse Venema
Tom Sommer: > On 2018-08-09 19:52, Wietse Venema wrote: > > Tom Sommer: > >> On 2018-08-09 19:31, Wietse Venema wrote: > >> > I suggested using a lookup table (smtpd_reply_footer_maps) which > >> > is queried with the original Postfix response, and which can > >> > dynamically return a filled-in te

Re: Feature request: More variables in smtpd_reject_footer

2018-08-10 Thread Tom Sommer
On 2018-08-09 19:52, Wietse Venema wrote: Tom Sommer: On 2018-08-09 19:31, Wietse Venema wrote: > I suggested using a lookup table (smtpd_reply_footer_maps) which > is queried with the original Postfix response, and which can > dynamically return a filled-in template based on the content of the

Re: Feature request: More variables in smtpd_reject_footer

2018-08-09 Thread Wietse Venema
Tom Sommer: > On 2018-08-09 19:31, Wietse Venema wrote: > > Viktor Dukhovni: > >> On Thu, Aug 09, 2018 at 06:52:48PM +0200, Tom Sommer wrote: > >> > >> > So I can do a "Please look at > >> > http://example.com/smtp.php?code=$smtp_code"; and do some magic on that > >> > page with the error code and

Re: Feature request: More variables in smtpd_reject_footer

2018-08-09 Thread Tom Sommer
On 2018-08-09 19:31, Wietse Venema wrote: Viktor Dukhovni: On Thu, Aug 09, 2018 at 06:52:48PM +0200, Tom Sommer wrote: > So I can do a "Please look at > http://example.com/smtp.php?code=$smtp_code"; and do some magic on that > page with the error code and/or error description to help the custom

Re: Feature request: More variables in smtpd_reject_footer

2018-08-09 Thread Wietse Venema
Viktor Dukhovni: > On Thu, Aug 09, 2018 at 06:52:48PM +0200, Tom Sommer wrote: > > > So I can do a "Please look at > > http://example.com/smtp.php?code=$smtp_code"; and do some magic on that > > page with the error code and/or error description to help the customer. > > Seems like overkill. Wi

Re: Feature request: More variables in smtpd_reject_footer

2018-08-09 Thread Tom Sommer
On 2018-08-09 19:07, Viktor Dukhovni wrote: On Thu, Aug 09, 2018 at 06:52:48PM +0200, Tom Sommer wrote: So I can do a "Please look at http://example.com/smtp.php?code=$smtp_code"; and do some magic on that page with the error code and/or error description to help the customer. Seems like ove

Re: Feature request: More variables in smtpd_reject_footer

2018-08-09 Thread Viktor Dukhovni
On Thu, Aug 09, 2018 at 06:52:48PM +0200, Tom Sommer wrote: > So I can do a "Please look at > http://example.com/smtp.php?code=$smtp_code"; and do some magic on that > page with the error code and/or error description to help the customer. Seems like overkill. Will you be documenting all the P

Re: Feature request: More variables in smtpd_reject_footer

2018-08-09 Thread Tom Sommer
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

Re: Feature request: More variables in smtpd_reject_footer

2018-08-09 Thread Tom Sommer
On 2018-08-09 18:24, Viktor Dukhovni wrote: On Thu, Aug 09, 2018 at 11:07:33AM +0200, Tom Sommer wrote: 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 mess

Re: Feature request: More variables in smtpd_reject_footer

2018-08-09 Thread Viktor Dukhovni
On Thu, Aug 09, 2018 at 11:07:33AM +0200, Tom Sommer wrote: > 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. Why wo

Re: Feature request: More variables in smtpd_reject_footer

2018-08-09 Thread Wietse Venema
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

Re: Feature request: More variables in smtpd_reject_footer

2018-08-09 Thread 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

Re: Feature request: More variables in smtpd_reject_footer

2018-08-09 Thread Wietse Venema
Tom Sommer: > On 2018-08-09 14:10, Wietse Venema wrote: > > Tom Sommer: > >> 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 mess

Re: Feature request: More variables in smtpd_reject_footer

2018-08-09 Thread Tom Sommer
On 2018-08-09 14:10, Wietse Venema wrote: Tom Sommer: 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 hel

Re: Feature request: More variables in smtpd_reject_footer

2018-08-09 Thread Wietse Venema
Tom Sommer: > 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 h

Re: Feature request: More variables in smtpd_reject_footer

2018-08-09 Thread Tom Sommer
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_rejec

Re: Feature request: More variables in smtpd_reject_footer

2018-08-09 Thread Wietse Venema
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 lo

Feature request: More variables in smtpd_reject_footer

2018-08-09 Thread 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. Thanks -- Tom