cyrus-2.2-cvs: virtualdomains and sendmail virtusertable (cyrusv2
as local mailer)
Christian Schulte
cs at schulte.it
Mon Dec 16 06:52:00 EST 2002
Jonathan Marsden schrieb:
>There are almost certainly neater ways, but I just patched
>sendmail.cf/m4/proto.m4 to do that.
>
>--- proto.m4.20020613 Thu Jun 13 11:53:24 2002
>+++ proto.m4 Thu Dec 12 01:54:08 2002
>@@ -1092,8 +1092,8 @@
> dnl $H empty (but @$=w.)
> R< > $+ + $* < $+ > $#_LOCAL_ $: $1 + $2 plussed name?
> R< > $+ < $+ > $#_LOCAL_ $: @ $1 nope, local address',
>-`R$=L < @ $=w . > $#_LOCAL_ $: @ $1 special local names
>-R$+ < @ $=w . > $#_LOCAL_ $: $1 regular local name')
>+`R$=L < @ $=w . > $#_LOCAL_ $: @ $1`@'$2 special local names
>+R$+ < @ $=w . > $#_LOCAL_ $: $1`@'$2 regular local name')
>
> ifdef(`_MAILER_TABLE_', `dnl
> # not local -- try mailer table lookup
>
>Jonathan
>
Thanks for your answer! If I see it right, the only things which are
changed in proto.m4 are the two lines
`R$=L < @ $=w . > $#_LOCAL_ $: @ $1`@'$2 special local names
R$+ < @ $=w . > $#_LOCAL_ $: $1`@'$2 regular local name')
replacing the existing two ones, right ?
If I do these two changes, I get the following error when delivering to a local domain:
553 5.1.3 <test at grupi.org>... Invalid route address<U:error5.1.3553 Invalid route address@><E:>
500 5.0.0 Command line usage error
and at the bottom of the error-message there is:
Final-Recipient: RFC822; test at grupi.org@mail.schulte.it
So what sendmail now does is, it rewrites the address nearly correctly but adds the localhostname at the end of the address!
Any idea what I can do to prevent sendmail from ever apending the locahostname on an address ?
--Christian--
More information about the Info-cyrus
mailing list