sendmail/cyrus deliver not to subdomain
Martin Schweizer
schweizer.martin at gmail.com
Thu Nov 5 14:41:57 EST 2009
Hello Andrzej
>>>> My setup is FreeBSD 7.2 amd64 and the newest Cyrus Imapd (.15).
>>>>
>>>> My cyrus server as the defaultdomain set to abc.ch and I set virtdomains: userid
>>>> . All users works a expected. Now I want to receive additionaly mails
>>>> for sub.abc.ch. In sendmail set all the necessary entries in access. I
>>>> also set in mailtable
>>>>
>>>> sub.abc.ch cyrusv2:/usr/imap/var/imap/socket/lmtp
>>>>
>>>> In maillog I get:
>>>>
>>>> Oct 30 17:42:56 acsvfbsd06 sm-mta[11922]: n9UGguri011920: --- 050
>>>> <abc at sub.abc.ch>... Connecting to /usr/imap/var/imap/socket/lmtp via
>>>> cyrusv2...
>>>> Oct 30 17:42:56 acsvfbsd06 sm-mta[11920]: n9UGguri011920: --- 250
>>>> 2.0.0 n9UGguri011920 Message accepted for delivery
>>>> Oct 30 17:42:56 acsvfbsd06 sm-mta[11920]: STARTTLS=read, info: fds=8/4, err=2
>>>> Oct 30 17:42:56 acsvfbsd06 sm-mta[11920]: n9UGgurj011920: <-- QUIT
>>>> Oct 30 17:42:56 acsvfbsd06 sm-mta[11920]: n9UGgurj011920: --- 221
>>>> 2.0.0 acsvfbsd06.abc.ch closing connection
>>>> Oct 30 17:42:56 acsvfbsd06 sm-mta[11920]: STARTTLS=server, SSL_shutdown not done
>>>> Oct 30 17:42:56 acsvfbsd06 sm-mta[11922]: STARTTLS: CRLFile missing
>>>> Oct 30 17:42:56 acsvfbsd06 sm-mta[11922]: STARTTLS=client, init=1
>>>> Oct 30 17:42:56 acsvfbsd06 sm-mta[11922]: AUTH=client,
>>>> relay=localhost, mech=, bits=0
>>>> Oct 30 17:42:56 acsvfbsd06 sm-mta[11922]: n9UGguri011920: --- 550
>>>> 5.1.1 <abc at sub.abc.ch>... User unknown (hold)
>>>> Oct 30 17:42:56 acsvfbsd06 sm-mta[11922]: n9UGguri011920:
>>>> to=<abc at sub.abc.ch>, delay=00:00:00, xdelay=00:00:00, mailer=cyrusv2,
>>>> pri=30344, relay=localhost, dsn=5.1.1, stat=User unknown
>>>> Oct 30 17:42:56 acsvfbsd06 sm-mta[11922]: n9UGguri011920: --- 050
>>>> <mschweizer at abc.ch>... aliased to martin at abc.ch
>>>> Oct 30 17:42:56 acsvfbsd06 sm-mta[11922]: n9UGguri011920: alias
>>>> <mschweizer at abc.ch> => martin at abc.ch
>>>> Oct 30 17:42:56 acsvfbsd06 sm-mta[11922]: n9UGguri011920:
>>>> n9UGgurh011922: DSN: User unknown
>>>> Oct 30 17:42:56 acsvfbsd06 sm-mta[11922]: n9UGgurh011922: --- 050
>>>> martin at abc.ch... Using cached LMTP connection to localhost via
>>>> cyrusv2...
>>>>
>>>> Is seems that abc at sub.abc.ch is unknown but if I lm *@sub.abc.ch I
>>>> get user.abc at sub.abc.ch (\HasNoChildren).
>>>>
>>>> What Do I wrong? Or did I missunderstood something?
>>>
>>> *IF* you use unmodified cyrusv2 mailer provided by sendmail.org
>>> *THEN* be warned that it "strips" domain part of the recipient address.
>>>
>>> You may test it by sending test mail in verbose mode as root - it should
>>> show you trace of LMTP session:
>>>
>>> (echo subject: test; echo)|sendmail -Am -v -- abc at sub.abc.ch
>>>
>>>
>>> BTW you can not set "lmtp socket path" via mailertable in the above
>>> mentioned mailer.
>>>
>>> URL(s):
>>> http://anfi.homeunix.org/sendmail/cyrusv2.html
>>> http://open-sendmail.sourceforge.net/rtcyrus3/
>>
>> Thank you for the hint. I did what you suggested (install the new
>> mailer, clean the mailertable) but I get the same result as before. If
>> I created a user.abc (without any domain part) the mail was received.
>> Any ideas?
>
> How have you integrated cyrus mailer and sendmail?
>
> Do you you use cyruvv2 as "local mailer"?
> define(confLOCAL_MAILER,...)
> YES => sendmail.cf strips recipients domain anyway before selecting
> local mailer or its substitute.
Here is the relevant part of my sendmail.mc:
[snip]
define(`CYRUSV2_MAILER_ARGS',`FILE /usr/imap/var/imap/socket/lmtp')
define(`confLOCAL_MAILER', `cyrusv2')
MAILER(`local')
MAILER(`smtp')
MAILER(`cyrusv2')
/end of file
It seems that it is set as "local mailer" as you expected. What is the
"correct way"?
Regards,
--
Martin Schweizer
schweizer.martin at gmail.com
Tel.: +41 32 512 48 54 (VoIP)
Fax: +1 619 3300587
More information about the Info-cyrus
mailing list