Prev: Does anyone have an example of how to make LUSER_RELAY and preserve_luser_host work?
Next: require_rdns bug
From: Andrzej Adam Filip on 21 Feb 2010 16:10 Seth Randall <seth.randall(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 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? 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') ] -- [pl>en Andrew] Andrzej Adam Filip : anfi(a)onet.eu : Andrzej.Filip(a)gmail.com Open-Sendmail: http://open-sendmail.sourceforge.net/ The church saves sinners, but science seeks to stop their manufacture. -- Elbert Hubbard
From: Andrzej Adam Filip on 22 Feb 2010 15:23 Seth Randall <seth.randall(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*] -- [pl>en Andrew] Andrzej Adam Filip : anfi(a)onet.eu : Andrzej.Filip(a)gmail.com How comes it to pass, then, that we appear such cowards in reasoning, and are so afraid to stand the test of ridicule? -- A. Cooper
From: Andrzej Adam Filip on 25 Feb 2010 13:49
Seth Randall <seth.randall(a)gmail.com> wrote: > 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 Based on "off usenet" discussion mrs_relay_cd has been sufficient (if I understood correctly). -- [pl>en Andrew] Andrzej Adam Filip : anfi(a)onet.eu : Andrzej.Filip(a)gmail.com Open-Sendmail: http://open-sendmail.sourceforge.net/ Three hours a day will produce as much as a man ought to write. -- Trollope |