From: Seth Randall on
I am trying to use LUSER_RELAY with preserve_luser_host on Sendmail
8.14.4 my mc file has the following:

define(LUSER_RELAY, `relay:exchange.example.com')dnl
FEATURE(`preserve_luser_host')dnl

mail sent to testemail(a)example.com should forward to
exchange.example.com without changing the host, but it keeps failing
with the Exchange server returning the message that
testemail(a)exchange.example.com could not be reached. Isn't the
preserve_luser_host supposed to keep it from rewriting the host name?
From: Seth Randall on
On Feb 21, 2:10 pm, Andrzej Adam Filip <a...(a)onet.eu> wrote:
> Seth Randall <seth.rand...(a)gmail.com> wrote:
> > I am trying to use LUSER_RELAY with preserve_luser_host on Sendmail
> > 8.14.4 my mc file has the following:
>
> > define(LUSER_RELAY, `relay:exchange.example.com')dnl
> > FEATURE(`preserve_luser_host')dnl
>
> > mail sent to testem...(a)example.com should forward to
> > exchange.example.com without changing the host, but it keeps failing
> > with the Exchange server returning the message that
> > testem...(a)exchange.example.com could not be reached. Isn't the
> > preserve_luser_host supposed to keep it from rewriting the host name?
>
> 0) Have you "noticed" last paragraph of the description below and its
> consequences described before it?
>
> http://www.sendmail.org/m4/features.html#preserve_luser_host
>   preserve_luser_host    Preserve the name of the recipient host if
>   LUSER_RELAY is used. Without this option, the domain part of the
>   recipient address will be replaced by the host specified as
>   LUSER_RELAY. This feature only works if the hostname is passed to the
>   mailer (see mailer triple in op.me).
>   Note that in the default configuration the local mailer does not receive
>   the hostname, i.e., the mailer triple has an empty hostname.
>
> 1) Are you interested in simple "a few line" patch of cf/m4/proto.m4
> allowing LUSER_RELAY to use one domain for relay and another for
> "appending" to relayed email address?
> [ FEATURE(`anfi/mrs_relay_cd') ]

I saw that last paragraph, but I thought it only referred to delivery
to local programs or users. Out of curiosity, in what situations does
preserve_luser_host actually work? It would seem to me that the use
case I have would be the obvious use for it and would therefore work
by default.

Regardless, I would certainly take a patch for it.

Thanks,
Seth
From: Seth Randall on
On Feb 22, 1:23 pm, Andrzej Adam Filip <a...(a)onet.eu> wrote:
> Seth Randall <seth.rand...(a)gmail.com> wrote:
> > On Feb 21, 2:10 pm, Andrzej Adam Filip <a...(a)onet.eu> wrote:
> >> Seth Randall <seth.rand...(a)gmail.com> wrote:
> >> > I am trying to use LUSER_RELAY with preserve_luser_host on Sendmail
> >> > 8.14.4 my mc file has the following:
>
> >> > define(LUSER_RELAY, `relay:exchange.example.com')dnl
> >> > FEATURE(`preserve_luser_host')dnl
>
> >> > mail sent to testem...(a)example.com should forward to
> >> > exchange.example.com without changing the host, but it keeps failing
> >> > with the Exchange server returning the message that
> >> > testem...(a)exchange.example.com could not be reached. Isn't the
> >> > preserve_luser_host supposed to keep it from rewriting the host name?
>
> >> 0) Have you "noticed" last paragraph of the description below and its
> >> consequences described before it?
>
> >>http://www.sendmail.org/m4/features.html#preserve_luser_host
> >>   preserve_luser_host    Preserve the name of the recipient host if
> >>   LUSER_RELAY is used. Without this option, the domain part of the
> >>   recipient address will be replaced by the host specified as
> >>   LUSER_RELAY. This feature only works if the hostname is passed to the
> >>   mailer (see mailer triple in op.me).
> >>   Note that in the default configuration the local mailer does not receive
> >>   the hostname, i.e., the mailer triple has an empty hostname.
>
> >> 1) Are you interested in simple "a few line" patch of cf/m4/proto.m4
> >> allowing LUSER_RELAY to use one domain for relay and another for
> >> "appending" to relayed email address?
> >> [ FEATURE(`anfi/mrs_relay_cd') ]
>
> > I saw that last paragraph, but I thought it only referred to delivery
> > to local programs or users. Out of curiosity, in what situations does
> > preserve_luser_host actually work? It would seem to me that the use
> > case I have would be the obvious use for it and would therefore work
> > by default.
>
> I would spare you my wild guesses :-)
>
> > Regardless, I would certainly take a patch for it.
>
> Do you want "direct patch"?
> [making possible to request that local mailer selection sets $h *too*]

That would be great.

Thanks,
Seth