Sujet : Re: How to know local IP on which mail was received on
De : INVALID_NO_CC_REMOVE_IF_YOU_DO_NOT_POST_ml+sendmail(-no-copies-please) (at) *nospam* esmtp.org (Claus Aßmann)
Groupes : comp.mail.sendmailDate : 11. Dec 2024, 20:45:05
Autres entêtes
Organisation : MGT Consulting
Message-ID : <vjcq41$hkp$1@news.misty.com>
References : 1 2 3
User-Agent : trn 4.0-test77 (Sep 1, 2010)
AMM wrote:
Or you could add some custom log entry via a ruleset
Can you provide more help with this? I could not find much help in
doc/op/op.*
"It's complicated" - you could do some online search for this.
Here's something completely untested:
Klog syslog
SLocal_check_relay
R$+ $| $+ $: $(log daemon_addr=$&{daemon_addr} $)
I would like change log entry at two places in syslog (systemd journal)
Logging from the binary would need code changes.
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.
The simplest approach is to use multiple DaemonPortOptions,
anything else is (significantly) more complicated.
It shouldn't be hard to write a script which takes the local
network configuration and creates the proper mc entries.
OR can the logging be made easier without touching / modifying ruleset?
No - see above: code or ruleset.
-- Note: please read the netiquette before posting. I will almost neverreply to top-postings which include a full copy of the previousarticle(s) at the end because it's annoying, shows that the posteris too lazy to trim his article, and it's wasting the time of all readers.