mail_host patch

Vernon Schryver vjs@calcite.rhyolite.com
Fri Jun 6 00:24:31 UTC 2003


> From: Spike Ilacqua <spike@indra.com>

> ...
> dccm currently uses the macro "{mail_host}" to get the value of
> mail_host.  This works a lot of the time, but "{mail_host}" is actually
> the host sendmail should send any bounces to.  If a smart relay is
> defined ("DS" in the cf), then "{mail_host}" is always that host.
>
> This patch instead extracts mail_host from env_From.  It simply grabs
> everything to the right of the '@' and strips any trailing '>'.  If
> there is no '@', mail_host is left unset.
> ...

What happens if the envelope Mail_From value is not in the form
user@example.com or <user@example.com> ?
I think the patch covers the <> possibility, but what about source
routes, the % kludge, ! paths, and who knows what else?

Is there some other sendmail.cf macro that contains the parsed
sender host name?  Maybe $s ?  
Or is that how ${mail_host} gets changed from what the ops document
says it should be?


Vernon Schryver    vjs@rhyolite.com



More information about the DCC mailing list

Contact vjs@rhyolite.com by mail or use the form.