virtual domain mailbox cross contamination
Adam D
emlists at gmail.com
Mon Aug 13 07:13:24 EDT 2007
Anthony Brock wrote:
>> -----Original Message-----
>> Jarod,
>>
>> Here is my setting
>> lmtp cmd="lmtpd -a" listen="localhost:lmtp" prefork=0 maxchild=20
>> lmtpunix cmd="lmtpd" listen="/var/run/cyrus/socket/lmtp" prefork=0
>> maxchild=20
>>
>> If I just have lmtp without the lmtpunix I get this error:
>>
>> relay=cyrus, delay=0.16, delays=0.05/0.03/0/0.08, dsn=4.3.0,
>> status=deferred (temporary failure. Command output: couldn't connect to
>> lmtpd: Connection refused_ 421 4.3.0 deliver: couldn't connect to lmtpd_ )
>>
>> It only works with the lmtpunix.
>>
>> my imap.conf has this line:
>> lmtpsocket: /var/run/cyrus/socket/lmtp
>>
>> postfix/main.conf (This does not work)
>> mailbox_transport = lmtp:unix:/var/lib/cyrus/socket/lmtp
>> (this one does)
>> mailbox_transport = cyrus
>>
>>
>> postfix/master.conf
>> lmtp unix - - - - - lmtp
>> cyrus unix - n n - - pipe
>> flags=R user=cyrus argv=/usr/sbin/cyrdeliver -e -m ${extension} ${user}
>>
>
> At first glance, this looks like a chroot/permissions issue. My
> configuration has:
>
> postfix/main.cf:
> virtual_transport = cyrus:unix:/var/run/cyrus/socket/lmtp
>
OK, that worked. I had /var/lib/cyrus/socket/lmtp gave no file or
directory found but changing lib to run worked.
> postfix/main.cf:
> cyrus unix - - n - - lmtp
>
Test 1
main.cf:
virtual_transport = cyrus:unix:/var/run/cyrus/socket/lmtp
# mailbox_transport
master.cf:
lmtp unix - - n - - lmtp
cyrus unix - - n - - lmtp
flags=R user=cyrus argv=/usr/sbin/cyrdeliver -e -m ${extension}
${user}
log output:
postfix/local[11116]: 6B4B23142: to=<user at domain.tld>, relay=local,
delay=0.02, delays=0.01/0/0/0, dsn=5.1.1, status=bounced (unknown
user: "user")
Test2
main.cf:
virtual_transport = cyrus:unix:/var/run/cyrus/socket/lmtp
mailbox_transport = cyrus:unix:/var/run/cyrus/socket/lmtp
master.cf:
lmtp unix - - n - - lmtp
cyrus unix - - n - - lmtp
flags=R user=cyrus argv=/usr/sbin/cyrdeliver -e -m ${extension}
${user}
log output:
postfix/lmtp[10632]: fatal: unexpected command-line argument: flags=R
postfix/local[10631]: warning: premature end-of-input on
private/cyrus socket while reading input attribute name
postfix/local[10631]: warning: private/cyrus socket: malformed response
postfix/master[10553]: warning: process /usr/lib/postfix/lmtp pid
10632 exit status 1
postfix/master[10553]: warning: /usr/lib/postfix/lmtp: bad command
startup -- throttling
postfix/local[10631]: 1FC0F3171: to=<user at domain2.tld>, relay=none,
delay=1.1, delays=0.04/0.03/0/1.1, dsn=4.3.0, status=deferred (mail
transport unavailable)
Test3
main.cf:
virtual_transport = cyrus:unix:/var/run/cyrus/socket/lmtp
mailbox_transport = cyrus:unix:/var/run/cyrus/socket/lmtp
master.cf:
lmtp unix - - n - - lmtp
cyrus unix - - n - - lmtp
# flags=R user=cyrus argv=/usr/sbin/cyrdeliver -e -m ${extension}
${user}
log output:
postfix/lmtp[10390]: AEE3B3176: to=<user at doimain2.tld>, relay=none,
delay=0.09, delays=0.04/0.03/0.03/0, dsn=4.4.1, status=deferred
(connect to host.domain2.tld[/var/run/cyrus/socket/lmtp]: Permission
denied)
ls -l /var/run/cyrus/socket/
total 0
srwxrwxrwx 1 root root 0 Aug 11 23:11 lmtp=
srwxrwxrwx 1 root root 0 Aug 11 23:11 notify=
I changed the owner and group to cyrus:mail but it still gives me the
same Permission denied
Test4
main.cf:
virtual_transport = cyrus:unix:/var/run/cyrus/socket/lmtp
mailbox_transport = cyrus:unix:/var/run/cyrus/socket/lmtp
master.cf:
lmtp unix - - n - - lmtp
cyrus unix - n n - - pipe
flags=R user=cyrus argv=/usr/sbin/cyrdeliver -e -m ${extension}
${user}
log output:
postfix/pipe[11958]: ED2203179: to=<user at domain2.tld>, relay=cyrus,
delay=0.19, delays=0.04/0.03/0/0.13, dsn=2.0.0, status=sent
(delivered via cyrus service)
This was sent to the same user name but different domain.
I am totally at a loss now but at lease I am not getting the same error
as to the prior email or up at the top of this one.
-Adam
More information about the Info-cyrus
mailing list