• How to log text of a rejection message?

    From Gushi@21:1/5 to All on Sun Jul 11 19:18:52 2021
    Hey there.

    (This isn't about mailing to outlook.com, I'm already working with them on their blocklist).

    One of my users recently tried to send mail to an outlook.com domain and got a bounce back like:

    Final-Recipient: RFC822; NNNNNN@hotmail.com
    Action: failed
    Status: 5.7.1
    Diagnostic-Code: SMTP; 550 5.7.1 Unfortunately, messages from [123.45.67.89] weren't sent. Please contact your Internet service provider since part of their network is on our block list (S3150). You can also refer your provider to http://mail.live.com/
    mail/troubleshooting.aspx#errors. [VI1EUR06FT043.eop-eur06.prod.protection.outlook.com]
    Last-Attempt-Date: Thu, 8 Jul 2021 15:21:10 GMT

    And in my logs, I see:

    /var/log/maillog.1.bz2:Jul 10 19:10:58 quark sm-mta[39534]: 16AJAsX9039531: to=<NNNNNN@hotmail.com>, delay=00:00:02, xdelay=00:00:01, mailer=esmtp, pri=32461, relay=hotmail-com.olc.protection.outlook.com. [104.47.56.161], dsn=5.0.0, stat=Service
    unavailable

    /var/log/maillog.1.bz2:Jul 10 19:10:58 quark sm-mta[39534]: 16AJAsX9039531: 16AJAwX8039534: DSN: Service unavailable

    So the question:

    Is there any way I can get the rest of that text in my logfiles? By grepping logs alone i have no idea about the blocklist.

    -Dan

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Claus =?iso-8859-1?Q?A=DFmann?= @21:1/5 to All on Mon Jul 12 05:48:27 2021
    Upgrade.
    8.16.1/8.16.1 2020/07/05
    Log the actual reply of a server when an SMTP delivery problem
    occurs in a "reply=" field if possible.

    --
    Note: please read the netiquette before posting. I will almost never
    reply to top-postings which include a full copy of the previous
    article(s) at the end because it's annoying, shows that the poster
    is too lazy to trim his article, and it's wasting the time of all readers.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)