Sendmail Virtual Domains address rewriting [SOLVED...sorta]

Chris Harms chris at cmiware.com
Thu Apr 22 12:30:29 EDT 2004


After some tinkering, removing the IP address from /etc/hosts was the 
magic bullet.  However, this raises a larger question:
If S=EnvFromSMTP/HdrFromSMTP, R=EnvToSMTP tells sendmail not to rewrite 
the address (allegedly), why was it still doing it?

Probably a better question for another list, however I imagine more 
people will encounter this with cyrus than with other configurations.  
If someone knows how to correct that issue, please advise.

Chris

Chris Harms wrote:

> 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



---
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

---
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