sendmail/cyrus deliver not to subdomain
Andrzej Adam Filip
anfi at onet.eu
Thu Nov 5 12:57:48 EST 2009
Martin Schweizer <schweizer.martin at gmail.com> wrote:
> 2009/10/30 Andrzej Adam Filip <anfi at onet.eu>:
>> Martin Schweizer <schweizer.martin at gmail.com> wrote:
>>> Hello
>>>
>>> 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.
--
[pl>en: Andrew] Andrzej Adam Filip : anfi at onet.eu
When there are two conflicting versions of the story, the wise course
is to believe the one in which people appear at their worst.
-- H. Allen Smith, "Let the Crabgrass Grow"
More information about the Info-cyrus
mailing list