Re: cyrus-imap configuration question
Thanks Dan, Here are the details you asked for. My /etc/imapd.conf : configdirectory: /var/lib/imap partition-default: /var/spool/imap admins: cyrus sievedir: /var/lib/imap/sieve sendmail: /usr/sbin/sendmail hashimapspool: true sasl_pwcheck_method: auxprop sasl_mech_list: PLAIN DIGEST-MD5 CRAM-MD5 sasl_auxprop_plugin:sasldb #allowplaintext: no #defaultdomain: mail tls_cert_file: /etc/pki/cyrus-imapd/cyrus-imapd.pem tls_key_file: /etc/pki/cyrus-imapd/cyrus-imapd.pem tls_ca_file: /etc/pki/tls/certs/ca-bundle.crt # uncomment this if you're operating in a DSCP environment (RFC-4594) # qosmarking: af13 I have played with allowplaintext and defaultdomain. For the record the 3 sasl_... values are the same as the entries in /etc/sasl2/Sendmail.conf Directory ownership: ls -ld /var/lib/imap drwxr-x---. 18 cyrus mail 4096 Jan 19 19:37 lib/imap ls -l lib/imap total 72 drwx--. 2 cyrus mail 4096 Jan 20 03:35 backup drwx--. 2 cyrus mail 4096 Jan 19 19:37 db drwx--. 2 cyrus mail 4096 Jan 19 19:37 db.backup1 drwx--. 2 cyrus mail 4096 Jan 19 16:45 db.backup2 -rw---. 1 cyrus mail 144 Jan 19 12:20 deliver.db drwx--. 2 cyrus mail 4096 Mar 15 2012 log -rw---. 1 root root 144 Jan 14 07:13 mailboxes.db drwx--. 2 cyrus mail 4096 Mar 15 2012 md5 drwx--. 2 cyrus mail 4096 Mar 15 2012 meta drwx--. 2 cyrus mail 4096 Mar 15 2012 msg drwx--. 2 cyrus mail 4096 Mar 15 2012 proc drwx--. 2 cyrus mail 4096 Mar 15 2012 ptclient drwx--. 2 cyrus mail 4096 Mar 15 2012 quota drwx--. 2 cyrus mail 4096 Jan 19 15:29 rpm drwx--. 2 cyrus mail 4096 Mar 15 2012 sieve drwxr-x---. 2 cyrus mail 4096 Jan 19 19:37 socket drwx--. 2 cyrus mail 4096 Mar 15 2012 sync drwx--. 2 cyrus mail 4096 Mar 15 2012 user ls -ld /var/spool/imap drwxr-x---. 4 cyrus mail 4096 Jan 19 11:39 /var/spool/imap ls -l /var/spool/imap total 8 drwxr-xr-x. 2 cyrus mail 4096 Jan 19 11:39 stage. drwxr-xr-x. 2 cyrus mail 4096 Jan 19 11:39 sync. stage. and sync. are empty The only possibility I see above is mailboxes.db is root:root IS THIS THE PROBLEM? I assume this was created during: [root@dell2600 ~]# su cyrus bash-4.2$ /usr/lib/cyrus-imapd/mkimap Charles Bradshaw -- Original Message --- On: Sat, 19 Jan 2013 18:46:38 -0600, Dan wrote On 01/19/13 17:51 +, Charles Bradshaw wrote: I'm tying to configure cyrus-imap on a Fedora 17 system. cyrus-imapd version cyrus-imapd.i686 2.4.14-1.fc17 I have sendmail and saslauthd working using DIGEST-MD5 and CRAM-MD5 working. I have gone through the cyrus-imap configuration procedure, but when I try to start the server: # systemctl start cyrus-imapd.service Job failed. See system journal and 'systemctl status' for details. # systemctl status cyrus-imapd.service cyrus-imapd.service - Cyrus-imapd IMAP/POP3 email server Loaded: loaded (/usr/lib/systemd/system/cyrus-imapd.service; disabled) Active: failed (Result: exit-code) since Sat, 19 Jan 2013 13:29:32 +; 28s ago Process: 2049 ExecStartPre=/usr/lib/cyrus-imapd/cyr_systemd_helper start (code=exited, status=75) CGroup: name=systemd:/system/cyrus-imapd.service If I start the master process manually or in debug mode: # /usr/lib/cyrus-imapd/cyrus-master -D (or -d) fatal error: can't read mailboxes file ctl_cyrusdb: unable to archive environment On 01/19/13 18:17 +, Charles Bradshaw wrote: File permissions are: # cd /var/spool # ls -l imap total 8 drwxr-xr-x. 2 cyrus mail 4096 Jan 19 11:39 stage. drwxr-xr-x. 2 cyrus mail 4096 Jan 19 11:39 sync. [root@dell2600 spool]# ls -ld imap drwxr-x---. 4 cyrus mail 4096 Jan 19 11:39 imap # cd /var # ls -ld imap drwxr-x---. 2 cyrus mail 4096 Jan 19 11:32 imap Your 'configdirectory' option in /etc/imapd.conf should point to the location of your cyrus database files, including the mailboxes database. That directory, and all files underneath it, should be owned by cyrus:mail. If permissions look correct, please provide the contents of your /etc/imapd.conf file, and a directory listing of the 'configdirectory' directory. -- Dan White --- End of Original Message --- Cyrus Home Page: http://www.cyrusimap.org/ List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/ To Unsubscribe: https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus
Re: cyrus-imap configuration question
On 01/20/2013 06:40 AM, Charles Bradshaw wrote: Thanks Dan, Here are the details you asked for. My /etc/imapd.conf : configdirectory: /var/lib/imap partition-default: /var/spool/imap admins: cyrus sievedir: /var/lib/imap/sieve sendmail: /usr/sbin/sendmail hashimapspool: true sasl_pwcheck_method: auxprop sasl_mech_list: PLAIN DIGEST-MD5 CRAM-MD5 sasl_auxprop_plugin:sasldb #allowplaintext: no #defaultdomain: mail tls_cert_file: /etc/pki/cyrus-imapd/cyrus-imapd.pem tls_key_file: /etc/pki/cyrus-imapd/cyrus-imapd.pem tls_ca_file: /etc/pki/tls/certs/ca-bundle.crt # uncomment this if you're operating in a DSCP environment (RFC-4594) # qosmarking: af13 I have played with allowplaintext and defaultdomain. For the record the 3 sasl_... values are the same as the entries in /etc/sasl2/Sendmail.conf Directory ownership: ls -ld /var/lib/imap drwxr-x---. 18 cyrus mail 4096 Jan 19 19:37 lib/imap ls -l lib/imap total 72 drwx--. 2 cyrus mail 4096 Jan 20 03:35 backup drwx--. 2 cyrus mail 4096 Jan 19 19:37 db drwx--. 2 cyrus mail 4096 Jan 19 19:37 db.backup1 drwx--. 2 cyrus mail 4096 Jan 19 16:45 db.backup2 -rw---. 1 cyrus mail 144 Jan 19 12:20 deliver.db drwx--. 2 cyrus mail 4096 Mar 15 2012 log -rw---. 1 root root 144 Jan 14 07:13 mailboxes.db drwx--. 2 cyrus mail 4096 Mar 15 2012 md5 drwx--. 2 cyrus mail 4096 Mar 15 2012 meta drwx--. 2 cyrus mail 4096 Mar 15 2012 msg drwx--. 2 cyrus mail 4096 Mar 15 2012 proc drwx--. 2 cyrus mail 4096 Mar 15 2012 ptclient drwx--. 2 cyrus mail 4096 Mar 15 2012 quota drwx--. 2 cyrus mail 4096 Jan 19 15:29 rpm drwx--. 2 cyrus mail 4096 Mar 15 2012 sieve drwxr-x---. 2 cyrus mail 4096 Jan 19 19:37 socket drwx--. 2 cyrus mail 4096 Mar 15 2012 sync drwx--. 2 cyrus mail 4096 Mar 15 2012 user ls -ld /var/spool/imap drwxr-x---. 4 cyrus mail 4096 Jan 19 11:39 /var/spool/imap ls -l /var/spool/imap total 8 drwxr-xr-x. 2 cyrus mail 4096 Jan 19 11:39 stage. drwxr-xr-x. 2 cyrus mail 4096 Jan 19 11:39 sync. stage. and sync. are empty The only possibility I see above is mailboxes.db is root:root IS THIS THE PROBLEM? mailboxes.db should be owned by cyrus user. I assume this was created during: [root@dell2600 ~]# su cyrus bash-4.2$ /usr/lib/cyrus-imapd/mkimap Charles Bradshaw -- Original Message --- On: Sat, 19 Jan 2013 18:46:38 -0600, Dan wrote On 01/19/13 17:51 +, Charles Bradshaw wrote: I'm tying to configure cyrus-imap on a Fedora 17 system. cyrus-imapd version cyrus-imapd.i686 2.4.14-1.fc17 I have sendmail and saslauthd working using DIGEST-MD5 and CRAM-MD5 working. I have gone through the cyrus-imap configuration procedure, but when I try to start the server: # systemctl start cyrus-imapd.service Job failed. See system journal and 'systemctl status' for details. # systemctl status cyrus-imapd.service cyrus-imapd.service - Cyrus-imapd IMAP/POP3 email server Loaded: loaded (/usr/lib/systemd/system/cyrus-imapd.service; disabled) Active: failed (Result: exit-code) since Sat, 19 Jan 2013 13:29:32 +; 28s ago Process: 2049 ExecStartPre=/usr/lib/cyrus-imapd/cyr_systemd_helper start (code=exited, status=75) CGroup: name=systemd:/system/cyrus-imapd.service If I start the master process manually or in debug mode: # /usr/lib/cyrus-imapd/cyrus-master -D (or -d) fatal error: can't read mailboxes file ctl_cyrusdb: unable to archive environment On 01/19/13 18:17 +, Charles Bradshaw wrote: File permissions are: # cd /var/spool # ls -l imap total 8 drwxr-xr-x. 2 cyrus mail 4096 Jan 19 11:39 stage. drwxr-xr-x. 2 cyrus mail 4096 Jan 19 11:39 sync. [root@dell2600 spool]# ls -ld imap drwxr-x---. 4 cyrus mail 4096 Jan 19 11:39 imap # cd /var # ls -ld imap drwxr-x---. 2 cyrus mail 4096 Jan 19 11:32 imap Your 'configdirectory' option in /etc/imapd.conf should point to the location of your cyrus database files, including the mailboxes database. That directory, and all files underneath it, should be owned by cyrus:mail. If permissions look correct, please provide the contents of your /etc/imapd.conf file, and a directory listing of the 'configdirectory' directory. -- Dan White --- End of Original Message --- Cyrus Home Page: http://www.cyrusimap.org/ List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/ To Unsubscribe: https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus attachment: boutilpj.vcf Cyrus Home Page: http://www.cyrusimap.org/ List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/ To Unsubscribe: https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus
Re: cyrus-imap configuration question SOLVED
Thanks All, Well yes, ahem.. obviously! Since I'm a complete beginner at this, who, what and how did the ownership of mailboxes.db get set wrongly in the first place? The script /usr/lib/cyrus-imapd/mkimap was run as user cyrus, as per the instructions. Surely cyrus CANNOT create a root owned file ?? Observation: Just as a quick experiment I changed mailboxes.db permissions to 666 and low it works! But something knows and changed the ownership to cyrus:mail with permissions 600 Something very fishy there. ~ o ~ While on the subject of incorrect permissions. The file /var/lib/imap/db/skipstamp was also root:root and causing this from systemctl status cyrus-imapd after a SUCCESSFUL start. Jan 20 12:15:44 blanked.com ctl_cyrusdb[1652]: DBERROR: writing /var/lib/imap/db/skipstamp: Permission denied I have know idea why these Permission denied messages are not in /var/log/messages, perhaps it has something to do with SELinux !! Thanks for all the help, Charles Bradshaw On: Sun, 20 Jan 2013 07:20:18 -0400, Patrick wrote: On 01/20/2013 06:40 AM, Charles Bradshaw wrote: Thanks Dan, Here are the details you asked for. My /etc/imapd.conf : configdirectory: /var/lib/imap partition-default: /var/spool/imap admins: cyrus sievedir: /var/lib/imap/sieve sendmail: /usr/sbin/sendmail hashimapspool: true sasl_pwcheck_method: auxprop sasl_mech_list: PLAIN DIGEST-MD5 CRAM-MD5 sasl_auxprop_plugin:sasldb #allowplaintext: no #defaultdomain: mail tls_cert_file: /etc/pki/cyrus-imapd/cyrus-imapd.pem tls_key_file: /etc/pki/cyrus-imapd/cyrus-imapd.pem tls_ca_file: /etc/pki/tls/certs/ca-bundle.crt # uncomment this if you're operating in a DSCP environment (RFC-4594) # qosmarking: af13 I have played with allowplaintext and defaultdomain. For the record the 3 sasl_... values are the same as the entries in /etc/sasl2/Sendmail.conf Directory ownership: ls -ld /var/lib/imap drwxr-x---. 18 cyrus mail 4096 Jan 19 19:37 lib/imap ls -l lib/imap total 72 drwx--. 2 cyrus mail 4096 Jan 20 03:35 backup drwx--. 2 cyrus mail 4096 Jan 19 19:37 db drwx--. 2 cyrus mail 4096 Jan 19 19:37 db.backup1 drwx--. 2 cyrus mail 4096 Jan 19 16:45 db.backup2 -rw---. 1 cyrus mail 144 Jan 19 12:20 deliver.db drwx--. 2 cyrus mail 4096 Mar 15 2012 log -rw---. 1 root root 144 Jan 14 07:13 mailboxes.db drwx--. 2 cyrus mail 4096 Mar 15 2012 md5 drwx--. 2 cyrus mail 4096 Mar 15 2012 meta drwx--. 2 cyrus mail 4096 Mar 15 2012 msg drwx--. 2 cyrus mail 4096 Mar 15 2012 proc drwx--. 2 cyrus mail 4096 Mar 15 2012 ptclient drwx--. 2 cyrus mail 4096 Mar 15 2012 quota drwx--. 2 cyrus mail 4096 Jan 19 15:29 rpm drwx--. 2 cyrus mail 4096 Mar 15 2012 sieve drwxr-x---. 2 cyrus mail 4096 Jan 19 19:37 socket drwx--. 2 cyrus mail 4096 Mar 15 2012 sync drwx--. 2 cyrus mail 4096 Mar 15 2012 user ls -ld /var/spool/imap drwxr-x---. 4 cyrus mail 4096 Jan 19 11:39 /var/spool/imap ls -l /var/spool/imap total 8 drwxr-xr-x. 2 cyrus mail 4096 Jan 19 11:39 stage. drwxr-xr-x. 2 cyrus mail 4096 Jan 19 11:39 sync. stage. and sync. are empty The only possibility I see above is mailboxes.db is root:root IS THIS THE PROBLEM? mailboxes.db should be owned by cyrus user. I assume this was created during: [root@dell2600 ~]# su cyrus bash-4.2$ /usr/lib/cyrus-imapd/mkimap Charles Bradshaw -- Original Message --- On: Sat, 19 Jan 2013 18:46:38 -0600, Dan wrote On 01/19/13 17:51 +, Charles Bradshaw wrote: I'm tying to configure cyrus-imap on a Fedora 17 system. cyrus-imapd version cyrus-imapd.i686 2.4.14-1.fc17 I have sendmail and saslauthd working using DIGEST-MD5 and CRAM-MD5 working. I have gone through the cyrus-imap configuration procedure, but when I try to start the server: # systemctl start cyrus-imapd.service Job failed. See system journal and 'systemctl status' for details. # systemctl status cyrus-imapd.service cyrus-imapd.service - Cyrus-imapd IMAP/POP3 email server Loaded: loaded (/usr/lib/systemd/system/cyrus-imapd.service; disabled) Active: failed (Result: exit-code) since Sat, 19 Jan 2013 13:29:32 +; 28s ago Process: 2049 ExecStartPre=/usr/lib/cyrus-imapd/cyr_systemd_helper start (code=exited, status=75) CGroup: name=systemd:/system/cyrus-imapd.service If I start the master process manually or in debug mode: # /usr/lib/cyrus-imapd/cyrus-master -D (or -d) fatal error: can't read mailboxes file ctl_cyrusdb: unable to archive environment On 01/19/13 18:17 +, Charles Bradshaw wrote: File permissions are: # cd /var/spool # ls -l imap total 8 drwxr-xr-x. 2 cyrus mail 4096 Jan 19 11:39 stage. drwxr-xr-x. 2 cyrus mail 4096 Jan 19 11:39 sync. [root@dell2600 spool]# ls -ld imap drwxr-x---. 4 cyrus mail 4096 Jan 19 11:39
Re: cyrus-imap configuration question SOLVED
Thanks All, Well yes, ahem.. obviously! Since I'm a complete beginner at this, who, what and how did the ownership of mailboxes.db get set wrongly in the first place? The script /usr/lib/cyrus-imapd/mkimap was run as user cyrus, as per the instructions. I think you should follow the instructions mentioned in the Fedora rpm docs and not the generic instructions of the cyrus docs. IMHO things like mkimap should not be needed with a packaged version of cyrus (but of course it should not break things). If it still fails after following the package docs you may report this to Fedora as the package could have a bug then. Regards, Simon Surely cyrus CANNOT create a root owned file ?? Observation: Just as a quick experiment I changed mailboxes.db permissions to 666 and low it works! But something knows and changed the ownership to cyrus:mail with permissions 600 Something very fishy there. ~ o ~ While on the subject of incorrect permissions. The file /var/lib/imap/db/skipstamp was also root:root and causing this from systemctl status cyrus-imapd after a SUCCESSFUL start. Jan 20 12:15:44 blanked.com ctl_cyrusdb[1652]: DBERROR: writing /var/lib/imap/db/skipstamp: Permission denied I have know idea why these Permission denied messages are not in /var/log/messages, perhaps it has something to do with SELinux !! Thanks for all the help, Charles Bradshaw On: Sun, 20 Jan 2013 07:20:18 -0400, Patrick wrote: On 01/20/2013 06:40 AM, Charles Bradshaw wrote: Thanks Dan, Here are the details you asked for. My /etc/imapd.conf : configdirectory: /var/lib/imap partition-default: /var/spool/imap admins: cyrus sievedir: /var/lib/imap/sieve sendmail: /usr/sbin/sendmail hashimapspool: true sasl_pwcheck_method: auxprop sasl_mech_list: PLAIN DIGEST-MD5 CRAM-MD5 sasl_auxprop_plugin:sasldb #allowplaintext: no #defaultdomain: mail tls_cert_file: /etc/pki/cyrus-imapd/cyrus-imapd.pem tls_key_file: /etc/pki/cyrus-imapd/cyrus-imapd.pem tls_ca_file: /etc/pki/tls/certs/ca-bundle.crt # uncomment this if you're operating in a DSCP environment (RFC-4594) # qosmarking: af13 I have played with allowplaintext and defaultdomain. For the record the 3 sasl_... values are the same as the entries in /etc/sasl2/Sendmail.conf Directory ownership: ls -ld /var/lib/imap drwxr-x---. 18 cyrus mail 4096 Jan 19 19:37 lib/imap ls -l lib/imap total 72 drwx--. 2 cyrus mail 4096 Jan 20 03:35 backup drwx--. 2 cyrus mail 4096 Jan 19 19:37 db drwx--. 2 cyrus mail 4096 Jan 19 19:37 db.backup1 drwx--. 2 cyrus mail 4096 Jan 19 16:45 db.backup2 -rw---. 1 cyrus mail 144 Jan 19 12:20 deliver.db drwx--. 2 cyrus mail 4096 Mar 15 2012 log -rw---. 1 root root 144 Jan 14 07:13 mailboxes.db drwx--. 2 cyrus mail 4096 Mar 15 2012 md5 drwx--. 2 cyrus mail 4096 Mar 15 2012 meta drwx--. 2 cyrus mail 4096 Mar 15 2012 msg drwx--. 2 cyrus mail 4096 Mar 15 2012 proc drwx--. 2 cyrus mail 4096 Mar 15 2012 ptclient drwx--. 2 cyrus mail 4096 Mar 15 2012 quota drwx--. 2 cyrus mail 4096 Jan 19 15:29 rpm drwx--. 2 cyrus mail 4096 Mar 15 2012 sieve drwxr-x---. 2 cyrus mail 4096 Jan 19 19:37 socket drwx--. 2 cyrus mail 4096 Mar 15 2012 sync drwx--. 2 cyrus mail 4096 Mar 15 2012 user ls -ld /var/spool/imap drwxr-x---. 4 cyrus mail 4096 Jan 19 11:39 /var/spool/imap ls -l /var/spool/imap total 8 drwxr-xr-x. 2 cyrus mail 4096 Jan 19 11:39 stage. drwxr-xr-x. 2 cyrus mail 4096 Jan 19 11:39 sync. stage. and sync. are empty The only possibility I see above is mailboxes.db is root:root IS THIS THE PROBLEM? mailboxes.db should be owned by cyrus user. I assume this was created during: [root@dell2600 ~]# su cyrus bash-4.2$ /usr/lib/cyrus-imapd/mkimap Charles Bradshaw -- Original Message --- On: Sat, 19 Jan 2013 18:46:38 -0600, Dan wrote On 01/19/13 17:51 +, Charles Bradshaw wrote: I'm tying to configure cyrus-imap on a Fedora 17 system. cyrus-imapd version cyrus-imapd.i686 2.4.14-1.fc17 I have sendmail and saslauthd working using DIGEST-MD5 and CRAM-MD5 working. I have gone through the cyrus-imap configuration procedure, but when I try to start the server: # systemctl start cyrus-imapd.service Job failed. See system journal and 'systemctl status' for details. # systemctl status cyrus-imapd.service cyrus-imapd.service - Cyrus-imapd IMAP/POP3 email server Loaded: loaded (/usr/lib/systemd/system/cyrus-imapd.service; disabled) Active: failed (Result: exit-code) since Sat, 19 Jan 2013 13:29:32 +; 28s ago Process: 2049 ExecStartPre=/usr/lib/cyrus-imapd/cyr_systemd_helper start (code=exited, status=75) CGroup: name=systemd:/system/cyrus-imapd.service If I start the master process manually or in debug mode: # /usr/lib/cyrus-imapd/cyrus-master -D
cyrus-imap configuration question
I'm tying to configure cyrus-imap on a Fedora 17 system. cyrus-imapd version cyrus-imapd.i686 2.4.14-1.fc17 I have sendmail and saslauthd working using DIGEST-MD5 and CRAM-MD5 working. I have gone through the cyrus-imap configuration procedure, but when I try to start the server: # systemctl start cyrus-imapd.service Job failed. See system journal and 'systemctl status' for details. # systemctl status cyrus-imapd.service cyrus-imapd.service - Cyrus-imapd IMAP/POP3 email server Loaded: loaded (/usr/lib/systemd/system/cyrus-imapd.service; disabled) Active: failed (Result: exit-code) since Sat, 19 Jan 2013 13:29:32 +; 28s ago Process: 2049 ExecStartPre=/usr/lib/cyrus-imapd/cyr_systemd_helper start (code=exited, status=75) CGroup: name=systemd:/system/cyrus-imapd.service If I start the master process manually or in debug mode: # /usr/lib/cyrus-imapd/cyrus-master -D (or -d) fatal error: can't read mailboxes file ctl_cyrusdb: unable to archive environment At this point ps -A reports: cyrus-master imapd defunct imapd pop3 defunct pop3d lmtpd Top reports imapd pop3d are sporning and are being zombied at a rate of about 1 second! Surely this is not right? Looks like the deamons are crashing imediately! Telnet seems to connect, but there is NO imap OK .. Ready response: $ telnet localhost 143 (or 993) Trying ::1... Connected to localhost. Escape character is '^]'. The telnet connection must then be killed. Similarly if I run imtest or cyradm both just hang. Am I doing something wrong? Thanks in advance, Charles Bradshaw Cyrus Home Page: http://www.cyrusimap.org/ List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/ To Unsubscribe: https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus
Re: cyrus-imap configuration question
On Sat, 19 Jan 2013, Charles Bradshaw wrote: I'm tying to configure cyrus-imap on a Fedora 17 system. cyrus-imapd version cyrus-imapd.i686 2.4.14-1.fc17 I have sendmail and saslauthd working using DIGEST-MD5 and CRAM-MD5 working. I have gone through the cyrus-imap configuration procedure, but when I try to start the server: # systemctl start cyrus-imapd.service Job failed. See system journal and 'systemctl status' for details. # systemctl status cyrus-imapd.service cyrus-imapd.service - Cyrus-imapd IMAP/POP3 email server Loaded: loaded (/usr/lib/systemd/system/cyrus-imapd.service; disabled) Active: failed (Result: exit-code) since Sat, 19 Jan 2013 13:29:32 +; 28s ago Process: 2049 ExecStartPre=/usr/lib/cyrus-imapd/cyr_systemd_helper start (code=exited, status=75) CGroup: name=systemd:/system/cyrus-imapd.service If I start the master process manually or in debug mode: # /usr/lib/cyrus-imapd/cyrus-master -D (or -d) fatal error: can't read mailboxes file ctl_cyrusdb: unable to archive environment At this point ps -A reports: cyrus-master imapd defunct imapd pop3 defunct pop3d lmtpd Top reports imapd pop3d are sporning and are being zombied at a rate of about 1 second! Surely this is not right? Looks like the deamons are crashing imediately! What do you see in your syslog for Cyrus? I assume you will see an error message about unable to open mailboxes file. We need to figure out where the mailboxes file is located and whether the cyrus user owns it and has the correct permissions on it. To me, this sounds like a problem with an incorrectly created Cyrus configuration directory and/or mail spool directory. I'm not familiar with the Fedora Cyrus package, but maybe there is something the package is supposed to do when it is installed? If someone else knows the Fedora package, hopefully they will speak up. Either way, we can fix this! Andy Cyrus Home Page: http://www.cyrusimap.org/ List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/ To Unsubscribe: https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus
Re: cyrus-imap configuration question
Charles Bradshaw b...@bradcan.homelinux.com wrote: I'm tying to configure cyrus-imap on a Fedora 17 system. cyrus-imapd version cyrus-imapd.i686 2.4.14-1.fc17 I have sendmail and saslauthd working using DIGEST-MD5 and CRAM-MD5 working. I have gone through the cyrus-imap configuration procedure, but when I try to start the server: # systemctl start cyrus-imapd.service Job failed. See system journal and 'systemctl status' for details. # systemctl status cyrus-imapd.service cyrus-imapd.service - Cyrus-imapd IMAP/POP3 email server Loaded: loaded (/usr/lib/systemd/system/cyrus-imapd.service; disabled) Active: failed (Result: exit-code) since Sat, 19 Jan 2013 13:29:32 +; 28s ago Process: 2049 ExecStartPre=/usr/lib/cyrus-imapd/cyr_systemd_helper start (code=exited, status=75) CGroup: name=systemd:/system/cyrus-imapd.service If I start the master process manually or in debug mode: # /usr/lib/cyrus-imapd/cyrus-master -D (or -d) fatal error: can't read mailboxes file ctl_cyrusdb: unable to archive environment At this point ps -A reports: cyrus-master imapd defunct imapd pop3 defunct pop3d lmtpd Top reports imapd pop3d are sporning and are being zombied at a rate of about 1 second! Surely this is not right? Looks like the deamons are crashing imediately! Telnet seems to connect, but there is NO imap OK .. Ready response: $ telnet localhost 143 (or 993) Trying ::1... Connected to localhost. Escape character is '^]'. The telnet connection must then be killed. Similarly if I run imtest or cyradm both just hang. Am I doing something wrong? Thanks in advance, Charles Bradshaw Cyrus Home Page: http://www.cyrusimap.org/ List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/ To Unsubscribe: https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus Are the permissions for the filesystem locations correct? -- Joost -- Sent from my Android phone with K-9 Mail. Please excuse my brevity. Cyrus Home Page: http://www.cyrusimap.org/ List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/ To Unsubscribe: https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus
Re: cyrus-imap configuration question
File permissions are: # cd /var/spool # ls -l imap total 8 drwxr-xr-x. 2 cyrus mail 4096 Jan 19 11:39 stage. drwxr-xr-x. 2 cyrus mail 4096 Jan 19 11:39 sync. [root@dell2600 spool]# ls -ld imap drwxr-x---. 4 cyrus mail 4096 Jan 19 11:39 imap # cd /var # ls -ld imap drwxr-x---. 2 cyrus mail 4096 Jan 19 11:32 imap Date: Sat, 19 Jan 2013 19:12:41 +0100 Download Re: cyrus-imap configuration question .msg From: J. Roeleveld jo...@antarean.orgImport addresses jo...@antarean.org Block email jo...@antarean.org Block SMTP Relay smtp2.tb.mail.iss.as9143.net To: b...@bradcan.homelinux.com, Charles Bradshaw b...@bradcan.homelinux.com, info-cyru . Subject: Re: cyrus-imap configuration question All headers Charles Bradshaw b...@bradcan.homelinux.com wrote: I'm tying to configure cyrus-imap on a Fedora 17 system. cyrus-imapd version cyrus-imapd.i686 2.4.14-1.fc17 I have sendmail and saslauthd working using DIGEST-MD5 and CRAM-MD5 working. I have gone through the cyrus-imap configuration procedure, but when I try to start the server: # systemctl start cyrus-imapd.service Job failed. See system journal and 'systemctl status' for details. # systemctl status cyrus-imapd.service cyrus-imapd.service - Cyrus-imapd IMAP/POP3 email server Loaded: loaded (/usr/lib/systemd/system/cyrus-imapd.service; disabled) Active: failed (Result: exit-code) since Sat, 19 Jan 2013 13:29:32 +; 28s ago Process: 2049 ExecStartPre=/usr/lib/cyrus-imapd/cyr_systemd_helper start (code=exited, status=75) CGroup: name=systemd:/system/cyrus-imapd.service If I start the master process manually or in debug mode: # /usr/lib/cyrus-imapd/cyrus-master -D (or -d) fatal error: can't read mailboxes file ctl_cyrusdb: unable to archive environment At this point ps -A reports: cyrus-master imapd defunct imapd pop3 defunct pop3d lmtpd Top reports imapd pop3d are sporning and are being zombied at a rate of about 1 second! Surely this is not right? Looks like the deamons are crashing imediately! Telnet seems to connect, but there is NO imap OK .. Ready response: $ telnet localhost 143 (or 993) Trying ::1... Connected to localhost. Escape character is '^]'. The telnet connection must then be killed. Similarly if I run imtest or cyradm both just hang. Am I doing something wrong? Thanks in advance, Charles Bradshaw Cyrus Home Page: http://www.cyrusimap.org/ List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/ To Unsubscribe: https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus Cyrus Home Page: http://www.cyrusimap.org/ List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/ To Unsubscribe: https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus
Re: cyrus-imap configuration question
On 01/19/13 17:51 +, Charles Bradshaw wrote: I'm tying to configure cyrus-imap on a Fedora 17 system. cyrus-imapd version cyrus-imapd.i686 2.4.14-1.fc17 I have sendmail and saslauthd working using DIGEST-MD5 and CRAM-MD5 working. I have gone through the cyrus-imap configuration procedure, but when I try to start the server: # systemctl start cyrus-imapd.service Job failed. See system journal and 'systemctl status' for details. # systemctl status cyrus-imapd.service cyrus-imapd.service - Cyrus-imapd IMAP/POP3 email server Loaded: loaded (/usr/lib/systemd/system/cyrus-imapd.service; disabled) Active: failed (Result: exit-code) since Sat, 19 Jan 2013 13:29:32 +; 28s ago Process: 2049 ExecStartPre=/usr/lib/cyrus-imapd/cyr_systemd_helper start (code=exited, status=75) CGroup: name=systemd:/system/cyrus-imapd.service If I start the master process manually or in debug mode: # /usr/lib/cyrus-imapd/cyrus-master -D (or -d) fatal error: can't read mailboxes file ctl_cyrusdb: unable to archive environment On 01/19/13 18:17 +, Charles Bradshaw wrote: File permissions are: # cd /var/spool # ls -l imap total 8 drwxr-xr-x. 2 cyrus mail 4096 Jan 19 11:39 stage. drwxr-xr-x. 2 cyrus mail 4096 Jan 19 11:39 sync. [root@dell2600 spool]# ls -ld imap drwxr-x---. 4 cyrus mail 4096 Jan 19 11:39 imap # cd /var # ls -ld imap drwxr-x---. 2 cyrus mail 4096 Jan 19 11:32 imap Your 'configdirectory' option in /etc/imapd.conf should point to the location of your cyrus database files, including the mailboxes database. That directory, and all files underneath it, should be owned by cyrus:mail. If permissions look correct, please provide the contents of your /etc/imapd.conf file, and a directory listing of the 'configdirectory' directory. -- Dan White Cyrus Home Page: http://www.cyrusimap.org/ List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/ To Unsubscribe: https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus