Re: How to know local IP on which mail was received on

Liste des GroupesRevenir à cm sendmail 
Sujet : Re: How to know local IP on which mail was received on
De : anon.amish (at) *nospam* gmail.com (AMM)
Groupes : comp.mail.sendmail
Date : 11. Dec 2024, 14:55:21
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <vjc5l8$1ik53$1@dont-email.me>
References : 1 2
User-Agent : Mozilla Thunderbird
On 11/12/24 12:01 pm, Claus Aßmann wrote:
AMM  wrote:
 What do you currently use for DaemonPortOptions?
you could use multiple DaemonPortOptions and specify
    Name      User-definable name for the daemon (defaults to "Daemon#")
    Addr      Address mask (defaults INADDR_ANY)
 see doc/op/op.*
O DaemonPortOptions=Name=MTA-v4, Family=inet
I do not want to change INADDR_ANY because I use standard sendmail.mc for many mail servers and do not want to customize it for each server.

Or you could add some custom log entry via a ruleset
using the syslog map and log
   ${daemon_addr}
     The IP address the daemon is listening on for connections.
together with the queue id.
Can you provide more help with this? I could not find much help in doc/op/op.*
I would like change log entry at two places in syslog (systemd journal)
I want to change log entry:
Dec 11 08:26:43 foo1 sm-mta[1707322]: NOQUEUE: connect from mail-ed1-f41.google.com [209.85.208.41]
to:
Dec 11 08:26:43 foo1 sm-mta[1707322]: NOQUEUE: connect from mail-ed1-f41.google.com [209.85.208.41] on [1.2.3.4]
And another log entry:
Dec 11 08:26:51 foo1 sm-mta[1707322]: 4AA2uhPr123456: from=<foo@gmail.com>, size=27668, class=0, nrcpts=1, msgid=<...>, proto=ESMTPS, daemon=MTA-v4, relay=mail-ed1-f41.google.com [209.85.208.41]
to:
Dec 11 08:26:51 foo1 sm-mta[1707322]: 4AA2uhPr123456: from=<foo@gmail.com>, size=27668, class=0, nrcpts=1, msgid=<...>, proto=ESMTPS, daemon=MTA-v4, relay=mail-ed1-f41.google.com [209.85.208.41], daemonaddr=[1.2.3.4]
Can this be made the default in future versions of sendmail, as in my opinion it is an important piece of information to detect connection issues.
OR can the logging be made easier without touching / modifying ruleset?
Thank you and regards
AMM

Date Sujet#  Auteur
11 Dec 24 * How to know local IP on which mail was received on5AMM
11 Dec 24 `* Re: How to know local IP on which mail was received on4Claus Aßmann
11 Dec 24  `* Re: How to know local IP on which mail was received on3AMM
11 Dec 24   `* Re: How to know local IP on which mail was received on2Claus Aßmann
12 Dec 24    `- Re: How to know local IP on which mail was received on1Grant Taylor

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal