Cyrus - can't create user mailbox

Stephen Liu satimis at yahoo.com
Mon Jun 9 12:49:21 EDT 2008


Hi Jens,


Thanks for your advice.


- snip -

> > Would it be /var/run/cyrus/socket/lmtp ?
> Yep, it would be it.
> 
> But please note that the postfix smtpd under Debian (and probably
> Ubuntu as well) runs in a chroot environment. You can see this by
> looking in your /etc/postfix/master.cf file, look at the line with
> smtp in the beginning and look in the right column for the chroot.
> Which one that is should be documented in the top of the file.


$ cat /etc/postfix/master.cf | grep smtp
smtp      inet  n       -       -       -       -       smtpd

smtp      unix  -       -       -       -       -       smtp
relay     unix  -       -       -       -       -       smtp
#       -o smtp_helo_timeout=5 -o smtp_connect_timeout=5
bsmtp     unix  -       n       n       -       -       pipe
  flags=Fq. user=bsmtp argv=/usr/lib/bsmtp/bsmtp -t$nexthop -f$sender
$recipient
* end *

There are only 2 lines there with smtp in the beginning.


> If the smtpd runs in a chroot environment, it will expect the lmtp
> socket relative to the chroot path, normally /var/spool/postfix, so
> the correct complete path for the socket would be
> /var/spool/postfix/var/run/cyrus/socket/notify ;) This created a lot
> of headache for me when configuring sasl, until I figured it out.


$ sudo nano /etc/cyrus.conf

change both lines.

changing;
lmtpunix        cmd="lmtpd" listen="/var/run/cyrus/socket/lmtp"
prefork=0 maxchild=20

as;
lmtpunix        cmd="lmtpd"
listen="/var/spool/postfix/var/run/cyrus/socket/lmtp" prefork=0
maxchild=20


changing;
notify          cmd="notifyd" listen="/var/run/cyrus/socket/notify"
proto="udp" prefork=1

as;
notify          cmd="notifyd"
listen="/var/spool/postfix/var/run/cyrus/socket/notify" proto="udp"
prefork=1


Still can't receive mails.


$ sudo ls -la /var/spool/cyrus/mail/s/user/satimiscyrus
Password:
total 20
drwx------ 2 cyrus mail 4096 2008-06-09 16:35 .
drwx------ 3 cyrus mail 4096 2008-06-09 16:35 ..
-rw------- 1 cyrus mail    4 2008-06-09 16:35 cyrus.cache
-rw------- 1 cyrus mail  158 2008-06-09 16:35 cyrus.header
-rw------- 1 cyrus mail   76 2008-06-09 16:35 cyrus.index
* end *


$ tail /var/log/mail.log 
Jun 10 00:35:41 lampserver cyrus/ctl_cyrusdb[4952]: archiving log file:
/var/lib/cyrus/db/log.0000000001
Jun 10 00:35:41 lampserver cyrus/ctl_cyrusdb[4952]: archiving database
file: /var/lib/cyrus/mailboxes.db
Jun 10 00:35:41 lampserver cyrus/ctl_cyrusdb[4952]: archiving log file:
/var/lib/cyrus/db/log.0000000001
Jun 10 00:35:41 lampserver cyrus/ctl_cyrusdb[4952]: done checkpointing
cyrus databases
Jun 10 00:35:41 lampserver cyrus/master[4948]: process 4952 exited,
status 0
Jun 10 00:36:30 lampserver postfix/smtpd[4955]: connect from
ti-out-0910.google.com[209.85.142.187]
Jun 10 00:36:30 lampserver postfix/smtpd[4955]: D21EA87820E:
client=ti-out-0910.google.com[209.85.142.187]
Jun 10 00:36:30 lampserver postfix/cleanup[4956]: D21EA87820E:
message-id=<ca46cd50806090936n8e4c831yc70288dbe5bc865b at mail.gmail.com>
Jun 10 00:36:30 lampserver postfix/qmgr[4188]: D21EA87820E:
from=<satimisliu at gmail.com>, size=1842, nrcpt=1 (queue active)
Jun 10 00:36:30 lampserver postfix/lmtp[4958]: D21EA87820E:
to=<satimiscyrus at satimis.com>, relay=none, delay=0, status=deferred
(connect to /var/run/lmtp[/var/run/lmtp]: No such file or directory)
* end *


$ tail /var/log/mail.warn 
Jun  6 18:47:50 lampserver cyrus/master[3881]: WARNING: cannot find
executable for service 'nntp' -- ignored
Jun  9 18:15:12 lampserver cyrus/imap[4675]: idle for too long, closing
connection
Jun  9 23:48:17 lampserver cyrus/master[4594]: unable to create notify
listener socket: No such file or directory
Jun 10 00:08:08 lampserver cyrus/master[4745]: unable to create
lmtpunix listener socket: No such file or directory
Jun 10 00:08:08 lampserver cyrus/master[4745]: unable to create notify
listener socket: No such file or directory
Jun 10 00:12:38 lampserver cyrus/master[4805]: unable to create
lmtpunix listener socket: No such file or directory
Jun 10 00:12:39 lampserver cyrus/master[4805]: unable to create notify
listener socket: No such file or directory
Jun 10 00:32:46 lampserver cyrus/master[4902]: unable to create notify
listener socket: No such file or directory
Jun 10 00:35:41 lampserver cyrus/master[4948]: unable to create
lmtpunix listener socket: No such file or directory
Jun 10 00:35:41 lampserver cyrus/master[4948]: unable to create notify
listener socket: No such file or directory
* end *


B.R.
Stephen

Send instant messages to your online friends http://uk.messenger.yahoo.com 


More information about the Info-cyrus mailing list