lmtpd and virtual hosting question using Kenneth Murchison'scyrusv2.mc !

Ken Murchison ken at oceana.com
Tue Feb 25 09:48:28 EST 2003



Franz Skale wrote:
> 
> I took the yesterday's cyrus 2.2 cvs branch to test virtual hosting
> ability with sendmail.
> I configure imapd.conf with virtdomains: yes and defaultdomain.
> I defined one defaultdomain which is the local domain of the machine and
> 2 test domains using the host as mx.
> 
> domain: test.testdomain.com
> domain: test1.testdomain.com
> every virtual domain has it's own mx privided by dns and pointed to the
> same ip address. (fqdn of mx mail.<vdomain>.testdomain.com).
> So i am using one IP for different domains.
> For authentication purposes, i use sasldb with users defined in the
> specified domain.like:
> user1 at test1.testdomain.com
> user1 at test2.testdomain.com
> 
> The authentication works properly and even though the mailock is ready.
> That means for me that the setup should be right to go on.
> I use sendmail 8.12.7 with the cyrusv2.m4 provided by Kenneth Murchison.
> My sendmail.mc is provided on the end of the mail.
> Delivering to the defaultdomain works properly.
> But deliviering to the virtual domains fails.
> Lmtp says: (sendmail -v user1 at test1.testdomain.com)
> 
> Feb 25 13:52:35 testserver sm-mta[7229]: h1PCqZuj007227:
> to=<user1 at test1.testdomain.com>, delay=00:00:00, xdelay=00:00:00,
> mailer=cyrusv2, pri=120325, relay=localhost, dsn=5.1.1, stat=User
> unknown
> Feb 25 13:52:35 testserver sm-mta[7229]: h1PCqZuj007227: h1PCqZuj007229:
> DSN: User unknown
> Feb 25 13:52:35 testserver master[7230]: about to exec
> /usr/cyrus/bin/lmtpd
> 
> Imapd.log show that:
> Feb 25 13:52:35 testserver lmtpunix[6680]: append_check() of
> 'user.test1' failed
> 
> Why the lmtpunix doesn't show the fqdn of the user ?
> (user.test1 at test1.testdomain.com)
> 
> My question now is: How can i tell ltmp to use the fqdn provided by
> sendmail ?


The cyrusv2 mailer won't work as-is because of the way Sendmail rewrites
addresses for local mailers.  I'm told by the Sendmail folks that 8.13
_might_ have a way of tweaking this.  Until then, try the following
(this documentation below was submitted to me a while ago, but I haven't
added it to CVS yet):

+ <h4>Configuring <a href="http://www.sendmail.org/">Sendmail</a></h4>
+ 
+ <p>In general, follow the instructions in the 
+       <a href="install-configure.html">configuration
documentation</a>.
+ Here are the only caveots we have found:</p>
+ 
+ <ul>
+ <li> It is easiest to use the mailertable to route mail to Cyrus,
rather than 
+ adding the domain to the local-host-names file ($w).  This prevents
Sendmail 
+ from changing the domain name to the local host name.
+ <pre><kbd>
+ example.com              cyrusv2:/var/imap/socket/lmtp
+ </kbd></pre></li>
+ 
+ <li> You'll have to use the Cyrus mailer in LMTP mode, and you'll have
to 
+ change the mailer flags so that it provides the full domain while 
+ communicating LMTP.  Specifically these changes:
+ 
+ <pre><kbd>
+                 S=EnvFromSMTP/HdrFromSMTP, R=EnvToSMTP
+ </kbd></pre></li>
+ </ul>
+  

-- 
Kenneth Murchison     Oceana Matrix Ltd.
Software Engineer     21 Princeton Place
716-662-8973 x26      Orchard Park, NY 14127
--PGP Public Key--    http://www.oceana.com/~ken/ksm.pgp




More information about the Info-cyrus mailing list