bug-mailfromd
Re: [Bug-mailfromd] srs (sender rewrite)
> > Is there information (macro?) available that can inform the milter of
> > the destination of a message?
>
> Yes, the rcpt_addr macro. Besides, it is passed as $1 to the envrcpt
> handler:
>
> https://www.gnu.org.ua/software/mailfromd/manual/Handlers.html#index-envrcpt
>
That is only having the email address not? With sendmail ldap routing I can override to what host this needs to be delivered.
But I searched a bit on this[1], maybe the marcros ${rcpt_mailer}, ${rcpt_host} hold the correct destination? If rcpt_host has an ip address not matching local net, you could decide to apply sender rewriting.
[1]
https://docs.oracle.com/cd/E19683-01/806-4076/sendmail-68/index.html
https://etutorials.org/Server+Administration/Sendmail/Part+III+The+Configuration+File/Chapter+21.+The+D+Define+a+Macro+Configuration+Command/rcpt_host/