• shortening dsn text in logs

    From None@21:1/5 to All on Sun Apr 3 14:39:54 2022
    I was wondering if I can shortening the error messages, but keep the
    error codes in the logs eg.

    sendmail[19814]: ruleset=check_relay, arg1=[46.165.253.92],
    arg2=46.165.253.92, relay=mail.gryazovets.com [46.165.253.92] (may be
    forged), reject=451 4.1.8 Possibly forged hostname for 46.165.253.92

    to

    sendmail[19814]: ruleset=check_relay, arg1=[46.165.253.92],
    arg2=46.165.253.92, relay=mail.gryazovets.com [46.165.253.92] (may be
    forged), reject=451 4.1.8

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Claus =?iso-8859-1?Q?A=DFmann?= @21:1/5 to None on Sun Apr 3 12:27:35 2022
    None wrote:

    I was wondering if I can shortening the error messages, but keep the
    error codes in the logs eg.

    Why?

    forged), reject=451 4.1.8 Possibly forged hostname for 46.165.253.92

    sendmail[19814]: ruleset=check_relay, arg1=[46.165.253.92], arg2=46.165.253.92, relay=mail.gryazovets.com [46.165.253.92] (may be forged), reject=451 4.1.8

    You have to change the source code to do that. If you want to save
    a few bytes, wouldn't it make sense not to log other things (e.g.,
    argx=...)?

    --
    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)
  • From None@21:1/5 to All on Wed Apr 6 17:05:22 2022

    I was wondering if I can shortening the error messages, but keep the
    error codes in the logs eg.

    Why?

    I am going to start using more informative dsn replies with quite some
    text, no need to have this constantly logged. Just a waste of energy.


    forged), reject=451 4.1.8 Possibly forged hostname for 46.165.253.92

    sendmail[19814]: ruleset=check_relay, arg1=[46.165.253.92],
    arg2=46.165.253.92, relay=mail.gryazovets.com [46.165.253.92] (may be
    forged), reject=451 4.1.8

    You have to change the source code to do that. If you want to save
    a few bytes, wouldn't it make sense not to log other things (e.g.,
    argx=...)?


    I have no idea what argx= is doing. However I would like to know/log
    what error codes are being reported back.

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