Cyrus - can't create user mailbox - SOLVED

Stephen Liu satimis at yahoo.com
Tue Jun 10 21:06:35 EDT 2008


Hi Alain,


Problem solved.  Mail arrives.


- snip -


> > However on /etc/group I found following entries;
> >
> > mail:x:8:dovecot
> > dovecot:x:113:
> 
> if you can edit /etc/group, change mail group like that
> 
> mail:x:8:dovecot,postfix
> 
> and restart postfix


Edit /etc/group and restart postfix


$ sudo nano /etc/cyrus.conf
changing back;
lmtpunix        cmd="lmtpd"
listen="/var/spool/postfix/var/run/cyrus/socket/lmtp" prefork=0
maxchild=20

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

This above step is necessary otherwise mail won't arrive.


$ sudo /etc/init.d/cyrus2.2 restart
Stopping Cyrus IMAPd: cyrmaster.
Waiting for complete shutdown...
Starting Cyrus IMAPd: cyrmaster.


Send satimiscyrus a mail on GMail.  Mail arrives NOW.


$ tail /var/log/mail.log 
Jun 11 08:30:29 lampserver cyrus/lmtpunix[4627]: executed
Jun 11 08:30:29 lampserver cyrus/lmtpunix[4627]: accepted connection
Jun 11 08:30:29 lampserver cyrus/lmtpunix[4627]: lmtp connection
preauth'd as postman
Jun 11 08:30:29 lampserver cyrus/lmtpunix[4627]: IOERROR: fstating
sieve script /var/spool/sieve/s/satimiscyrus/defaultbc: No such file or
directory
Jun 11 08:30:29 lampserver cyrus/lmtpunix[4627]: duplicate_check:
<ca46cd50806101730g4ff216aahffa19b05cf9119d5 at mail.gmail.com>
user.satimiscyrus    0
Jun 11 08:30:29 lampserver cyrus/lmtpunix[4627]: mystore: starting txn
2147483652
Jun 11 08:30:29 lampserver cyrus/lmtpunix[4627]: mystore: committing
txn 2147483652
Jun 11 08:30:29 lampserver cyrus/lmtpunix[4627]: duplicate_mark:
<ca46cd50806101730g4ff216aahffa19b05cf9119d5 at mail.gmail.com>
user.satimiscyrus    1213144229 1
Jun 11 08:30:29 lampserver postfix/lmtp[4626]: 0208587821B:
to=<satimiscyrus at satimis.com>,
relay=/var/run/cyrus/socket/lmtp[/var/run/cyrus/socket/lmtp], delay=1,
status=sent (250 2.1.5 Ok)
Jun 11 08:30:29 lampserver postfix/qmgr[4501]: 0208587821B: removed
* end *


$ sudo ls -la /var/spool/cyrus/mail/s/user/satimiscyrus
total 24
drwx------ 2 cyrus mail 4096 2008-06-11 08:30 .
drwx------ 3 cyrus mail 4096 2008-06-09 16:35 ..
-rw------- 1 cyrus mail 2054 2008-06-11 08:30 1.
-rw------- 1 cyrus mail 1760 2008-06-11 08:30 cyrus.cache
-rw------- 1 cyrus mail  158 2008-06-09 16:35 cyrus.header
-rw------- 1 cyrus mail  136 2008-06-11 08:30 cyrus.index
* end *


$ sudo nano /var/spool/cyrus/mail/s/user/satimiscyrus/1.
read the mail.


Why the arriving mail is numbered as '1.'?


I'll revert the change on chroot to the original state later to see
whether it has effect.



Athentication problem still remains intact.


$ imtest -m login -p imap -u satimiscyrus localhost
S: * OK lampserver Cyrus IMAP4 v2.2.12-Debian-2.2.12-4ubuntu1 server
ready
C: C01 CAPABILITY
S: * CAPABILITY IMAP4 IMAP4rev1 ACL QUOTA LITERAL+ MAILBOX-REFERRALS
NAMESPACE UIDPLUS ID NO_ATOMIC_RENAME UNSELECT CHILDREN MULTIAPPEND
BINARY SORT THREAD=ORDEREDSUBJECT THREAD=REFERENCES ANNOTATEMORE IDLE
S: C01 OK Completed
Please enter your password: 
C: L01 LOGIN satimis {12}
S: + go ahead
C: <omitted>
S: L01 NO Login failed: generic failure
Authentication failed. generic failure
Security strength factor: 0

C: Q01 LOGOUT
Connection closed.
* end *


I'll continue to solve this problem on another thread.



> private joke:  I dont understand why all ubuntu and debian users use
> always the same prompt : "$ sudo " :-)

It is Debian/Ubuntu way.  They use sudoer instead of "su" changing to
root.


Previously I met another joke.  Folks on Internet seeing my postings
asked me why not following Debian/Ubutu way of operation while working
on them.


B.R.
Stephen

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


More information about the Info-cyrus mailing list