Sendmail Virtual Domains address rewriting

Chris Harms chris at cmiware.com
Wed Apr 21 17:19:27 EDT 2004


Hello,

I'm trying to setup cyrus-imapd 2.2.3 to handle several virtual 
domains.  Everything seems to be ok except for sendmail rewriting the 
recipient domains to a domain for which I have not even told it to 
answer mail.  After following the instructions from the docs in the 
source dir and seeing some posts on this list, my mailer defs in 
sendmail.mc are as follows:
#sendmail.mc
MAILER_DEFINITIONS
Mcyrusv2,       P=[IPC], F=lsDFMnqA5@/:|SmXz, E=\r\n,
               S=EnvFromSMTP/HdrFromSMTP, R=EnvToSMTP,
               A=FILE /var/imap/socket/lmtp
#mailertable
domain.tld      cyrusv2:/var/imap/socket/lmtp

#for thoroughness, my imapd.conf
configdirectory: /var/imap
partition-default: /var/spool/imap
admins: cyrus
sasl_pwcheck_method: auxprop
virtdomains: userid
unixhierarchysep: on
# tls_cert_file: /var/imap/server.pem
# tls_key_file: /var/imap/server.pem
allownanonymouslogin: no
allowplaintext: yes
loginrealms: domain.tld tdc
sieveusehomedir: false
sievedir: /usr/sieve

I've setup a bogus domain in Bind while getting this to work 
(domain.tld) but have the future valid primary domain for the machine 
set in /etc/hosts.  Naturally mail sent to user at domain.tld is rewritten 
to user at tdc.realdomain.com.  I'll attach entries in the maillog (user 
and realdomain substituted for actual entries:

Apr 21 10:36:53 tdc sendmail[17813]: i3LFarBR017813: from=<root at tdc>, 
size=212, class=0, nrcpts=1, msgid=<Pine.LNX.4.58.04042
11036450.17776 at tdc>, proto=ESMTP, relay=root at localhost
Apr 21 10:36:53 tdc sendmail[17816]: i3LFarA5017816: 
from=<root at tdc.realdomain.com>, size=451, class=0, nrcpts=1
, msgid=<Pine.LNX.4.58.0404211036450.17776 at tdc>, proto=ESMTP, 
daemon=MTA, relay=localhost [127.0.0.1]
Apr 21 10:36:54 tdc sendmail[17815]: i3LFarBR017813: 
to=<user at domain.tld>, ctladdr=<root at tdc> (0/0), delay=00:00:01, xdelay
=00:00:01, mailer=relay, pri=30212, relay=[127.0.0.1] [127.0.0.1], 
dsn=2.0.0, stat=Sent (i3LFarA5017816 Message accepted for
delivery)
Apr 21 10:36:54 tdc sendmail[17822]: i3LFarA5017816: 
to=<user at tdc.realdomain.com>, delay=00:00:01, xdelay=00:0
0:00, mailer=cyrusv2, pri=30451, relay=localhost, dsn=5.1.1, stat=User 
unknown
Apr 21 10:36:54 tdc sendmail[17822]: i3LFarA5017816: i3LFasA5017822: 
DSN: User unknown
Apr 21 10:36:54 tdc sendmail[17822]: i3LFasA5017822: 
to=<root at tdc.realdomain.com>, delay=00:00:00, xdelay=00:00:
00, mailer=cyrusv2, pri=31469, relay=localhost [[UNIX: 
/var/imap/socket/lmtp]], dsn=5.1.1, stat=User unknown
Apr 21 10:36:54 tdc sendmail[17822]: i3LFasA5017822: i3LFasA6017822: 
return to sender: User unknown

Any help in this would be much appreciated.
Sincerely,
Chris Harms

---
Cyrus Home Page: http://asg.web.cmu.edu/cyrus
Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html




More information about the Info-cyrus mailing list