On 15/11/2020 09:52, Nick Tait wrote: > On 14/11/20 7:30 am, Phil Stracchino wrote: >> I think what the OP is asking here is, can Yahoo/Oath be compelled to >> provide a more useful failure message relaying the informative response >> provided by OP's Postfix instance. >> >> And the answer to that, unfortunately, is no. > > But by the look of things the bounce notification generated by Yahoo > contains the first part of the original reject message - i.e. the bold > part of the red text below: > > Nov 13 02:07:52 myserver postfix/smtpd[27706]: NOQUEUE: reject: RCPT > from sonic302-23.consmr.mail.gq1.yahoo.com[98.137.68.149]: *554 5.7.1 Service > unavailable*; Client host [98.137.68.149] blocked > using cbl.abuseat.org; Blocked - see > http://www.abuseat.org/lookup.cgi?ip=98.137.68.149; > from=<per...@sbcglobal.net> to=<m...@myserver.com> proto=ESMTP > helo=<sbcglobal.net> > > So presumably if you can somehow change the reject message and perhaps > remove the semicolons, then maybe Yahoo will provide the entire > message in the bounce notification? Which comes back to the original > question about whether this message can be customised? But I suspect > the answer to that question is still no? > > Nick. > The reject message used by smtpd when rejecting due to an rbl based restriction can be customized:
http://www.postfix.org/postconf.5.html#default_rbl_reply That changes the default, so applies to any rbl based restriction. The message can be customized for only specific rbls with rbl_reply_maps. John