Cyrus - can't create user mailbox

Stephen Liu satimis at yahoo.com
Mon Jun 9 19:57:30 EDT 2008


Hi Alain,


> On Mon, Jun 9, 2008 at 7:42 PM, Jorey Bump <list at joreybump.com>
> wrote:
> > Stephen Liu wrote, at 06/09/2008 01:19 PM:
> >
> > There's no need to run Postfix in a chroot jail. You are better off
> > disabling chroot entirely (explicitly with an 'n' in master.cf).
> > ----
> > Cyrus Home Page: http://cyrusimap.web.cmu.edu/
> > Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
> > List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html
> >
> 
> I agree. Make a copy of your master.cf and replace all '-' in the 5th
> column by 'n'
> Then the possible problem is that master.cf or main.cf could contains
> some configuration stuff to run
> in a chroot jail. run the folowing command and report the result
> 
> # postconf -n


$ sudo cp -p /etc/postfix/main.cf /etc/postfix/main.cf.bak.20080610


$ sudo nano /etc/postfix/master.cf
On the 5th column changing all '-' to 'n'


$ sudo postconf -n
alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases
append_dot_mydomain = no
biff = no
broken_sasl_auth_clients = yes
config_directory = /etc/postfix
inet_interfaces = all
inet_protocols = all
mailbox_size_limit = 0
mailbox_transport = lmtp:unix:/var/run/lmtp
mydestination = satimis.com, localhost.localdomain,
localhost.satimis.com
myhostname = lampserver
mynetworks = 127.0.0.0/8
myorigin = /etc/mailname
recipient_delimiter = +
relayhost = 
smtp_tls_note_starttls_offer = yes
smtp_tls_session_cache_database = btree:${queue_directory}/smtp_scache
smtp_use_tls = yes
smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu)
smtpd_recipient_restrictions =
permit_sasl_authenticated,permit_mynetworks,reject_unauth_destination
smtpd_sasl_auth_enable = yes
smtpd_sasl_local_domain = 
smtpd_sasl_security_options = noanonymous
smtpd_tls_CAfile = /etc/ssl/certs/cacert.pem
smtpd_tls_auth_only = no
smtpd_tls_cert_file = /etc/ssl/certs/smtpd.crt
smtpd_tls_key_file = /etc/ssl/private/smtpd.key
smtpd_tls_loglevel = 1
smtpd_tls_received_header = yes
smtpd_tls_session_cache_database =
btree:${queue_directory}/smtpd_scache
smtpd_tls_session_cache_timeout = 3600s
smtpd_use_tls = yes
tls_random_source = dev:/dev/urandom
* end *


> Then in main.cf replace
> 
> mailbox_transport = lmtp:unix:/var/run/lmtp
> by
> mailbox_transport = lmtp:unix:/var/run/cyrus/socket/lmtp
> 
> 
> Restart all, and try to send an email,
> look in the postfix log to see what is the next problem :-)


$ sudo cp -p /etc/postfix/main.cf /etc/postfix/main.cf.bak.20080610


$ sudo nano /etc/postfix/main.cf
Change;
mailbox_transport = lmtp:unix:/var/run/lmtp


to;
mailbox_transport = lmtp:unix:/var/run/cyrus/socket/lmtp


$ sudo /etc/init.d/postfix restart
 * Stopping Postfix Mail Transport Agent postfix                       
                                [ ok ] 
 * Starting Postfix Mail Transport Agent postfix                       
                                [ ok ] 



Send a webmail on GMail to satimiscyrus.  It doesn't arrive.


$ sudo ls -la /var/spool/cyrus/mail/s/user/satimiscyrus
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 07:25:04 lampserver cyrus/ctl_cyrusdb[4652]: archiving log file:
/var/lib/cyrus/db/log.0000000001
Jun 10 07:25:04 lampserver cyrus/ctl_cyrusdb[4652]: done checkpointing
cyrus databases
Jun 10 07:25:04 lampserver cyrus/master[3881]: process 4652 exited,
status 0
Jun 10 07:32:15 lampserver postfix/master[4183]: terminating on signal
15
Jun 10 07:32:16 lampserver postfix/master[4733]: daemon started --
version 2.2.10, configuration /etc/postfix
Jun 10 07:35:30 lampserver postfix/smtpd[4737]: connect from
ti-out-0910.google.com[209.85.142.191]
Jun 10 07:35:30 lampserver postfix/smtpd[4737]: 61C00878214:
client=ti-out-0910.google.com[209.85.142.191]
Jun 10 07:35:30 lampserver postfix/cleanup[4742]: 61C00878214:
message-id=<ca46cd50806091635p2335a340l487b88404
7ea5dc9 at mail.gmail.com>
Jun 10 07:35:30 lampserver postfix/qmgr[4735]: 61C00878214:
from=<satimisliu at gmail.com>, size=1842, nrcpt=1 (qu
eue active)
Jun 10 07:35:30 lampserver postfix/lmtp[4744]: 61C00878214:
to=<satimiscyrus at satimis.com>, relay=none, delay=0,
 status=deferred (connect to
/var/run/cyrus/socket/lmtp[/var/run/cyrus/socket/lmtp]: Permission
denied)
* end *


$ tail /var/log/mail.warn 
Jun 10 00:59:52 lampserver cyrus/imap[31720]: Fatal error: invalid
option name on line 322 of configuration file /etc/imapd.conf
Jun 10 00:59:52 lampserver cyrus/master[4948]: service imap pid 31720
in READY state: terminated abnormally
Jun 10 00:59:52 lampserver cyrus/imap[31721]: Fatal error: invalid
option name on line 322 of configuration file /etc/imapd.conf
Jun 10 00:59:52 lampserver cyrus/master[4948]: service imap pid 31721
in READY state: terminated abnormally
Jun 10 00:59:52 lampserver cyrus/imap[31722]: Fatal error: invalid
option name on line 322 of configuration file /etc/imapd.conf
Jun 10 00:59:52 lampserver cyrus/master[4948]: service imap pid 31722
in READY state: terminated abnormally
Jun 10 00:59:52 lampserver cyrus/imap[31723]: Fatal error: invalid
option name on line 322 of configuration file /etc/imapd.conf
Jun 10 00:59:52 lampserver cyrus/master[4948]: service imap pid 31723
in READY state: terminated abnormally
Jun 10 00:59:52 lampserver cyrus/imap[31724]: Fatal error: invalid
option name on line 322 of configuration file /etc/imapd.conf
Jun 10 00:59:52 lampserver cyrus/master[4948]: service imap pid 31724
in READY state: terminated abnormally
* end *


On /etc/imapd line 322 is already at the bottom of the file, an empty
space.


B.R.
Stephen


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


More information about the Info-cyrus mailing list