cyrus-2.2-cvs: virtualdomains and sendmail virtusertable (cyrusv2 as local mailer)

Jonathan Marsden jonathan at bach.xc.org
Mon Dec 16 04:20:53 EST 2002


On 16 Dec 2002, Christian Schulte writes:

> If I specify a final recipient (cyrus-account) in virtusertable as:

> @virtualdomain.it	account at virtualdomain.it

> where an account like user/account at virtualdomain.it exists, sendmail
> recognizes virtualdomain.it in /etc/mail/local-host-names as a local
> domain and will strip the original virtualdomain.it from the
> recipient replacing it with the localhost hostname. All domains
> defined in /etc/mail/local-host-names will be recognized in
> virtusertable but the local delivery will only go to the
> user at localhostname!

> Where can I change sendmail to not do that ? How do I tell sendmail
> to never change the local-domain to the local hostname on
> succesfully recognized /etc/mail/local-host-names domains ?

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
--
Jonathan Marsden       	| Internet: jonathan at xc.org	| Making electronic 
1252 Judson Street  	| Phone: +1 (909) 795-3877	| communications work 
Redlands, CA 92374     	| Fax:   +1 (909) 795-0327	| reliably for Christian 
USA            		| http://www.xc.org/jonathan	| missions worldwide 




More information about the Info-cyrus mailing list