[CentOS] C6.7 evolution to cyrus imap(s) fails

Dr J Austin

ja at maui.jaa.org.uk
Wed Aug 12 21:22:22 UTC 2015


Many thanks to Alexander, Richard, Jonathan and m.roth

The Magic incandation !

portrelease dovecot
service cyrus-imapd restart

[root at maui:/etc/named]$ cat /etc/portreserve/dovecot
imap
imaps
pop3
pop3s

My total ignorance of portrelease/portreserve has been a bit
of a problem!

Now to fix it permanently and get evolution back in one piece

But why was cyrus able to use imap, pop3 & pop3S but not imaps?

John


!This showe it up!

--------------------------------------------------------------------
> That limits the listener to bind to only the specific IP
Yes - that made it easy to tell if imapd was running on 148.197.29.5
by just doing ps -ef|grep cyrus 
--------------------------------------------------------------------
> What gets being logged at exactly that point? cyrus-imapd logs information at 
> service start.
>
[root at maui:/var/log]$ cat  maillog
just after running
service cyrus-imapd restart

Aug 12 21:33:17 maui cvt_cyrusdb[2753]: skiplist: checkpointed 
/var/lib/imap/deliver.db.skiplist (630 records, 64416 bytes) in 0 seconds
Aug 12 21:33:19 maui cvt_cyrusdb[3352]: mystore: starting txn 2147483651
Aug 12 21:33:19 maui cvt_cyrusdb[3352]: mystore: reusing txn 2147483651
Aug 12 21:33:19 maui cvt_cyrusdb[3352]: mystore: reusing txn 2147483651
Aug 12 21:33:19 maui cvt_cyrusdb[3352]: mystore: reusing txn 2147483651
Aug 12 21:33:19 maui cvt_cyrusdb[3352]: mystore: reusing txn 2147483651
... maybe 200 lines like this 
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Aug 12 21:33:19 maui cvt_cyrusdb[3352]: mystore: reusing txn 2147483651
Aug 12 21:33:19 maui cvt_cyrusdb[3352]: mystore: reusing txn 2147483651
Aug 12 21:33:19 maui cvt_cyrusdb[3352]: mystore: reusing txn 2147483651
Aug 12 21:33:19 maui cvt_cyrusdb[3352]: mystore: reusing txn 2147483651
Aug 12 21:33:19 maui master[3384]: setrlimit: Unable to set file 
descriptors limit to -1: Operation not permitted
Aug 12 21:33:19 maui master[3384]: retrying with 4096 (current max)
Aug 12 21:33:19 maui master[3384]: process started
Aug 12 21:33:19 maui master[3385]: about to exec 
/usr/lib/cyrus-imapd/ctl_cyrusdb
Aug 12 21:33:19 maui ctl_cyrusdb[3385]: recovering cyrus databases
Aug 12 21:33:19 maui ctl_cyrusdb[3385]: skiplist: checkpointed 
/var/lib/imap/mailboxes.db (9 records, 756 bytes) in 0 seconds
Aug 12 21:33:19 maui ctl_cyrusdb[3385]: skiplist: checkpointed 
/var/lib/imap/annotations.db (0 records, 144 bytes) in 0 seconds
Aug 12 21:33:19 maui ctl_cyrusdb[3385]: done recovering cyrus databases
Aug 12 21:33:19 maui master[3387]: about to exec 
/usr/lib/cyrus-imapd/idled
Aug 12 21:33:19 maui master[3384]: unable to create imaps listener socket: 
Address already in use 
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Aug 12 21:33:19 maui master[3384]: unable to setsocketopt(IP_TOS): 
Operation not supported
Aug 12 21:33:19 maui master[3384]: ready for work
Aug 12 21:33:19 maui master[3389]: about to exec 
/usr/lib/cyrus-imapd/ctl_cyrusdb
Aug 12 21:33:19 maui master[3392]: about to exec 
/usr/lib/cyrus-imapd/pop3d
Aug 12 21:33:19 maui ctl_cyrusdb[3389]: checkpointing cyrus databases
Aug 12 21:33:19 maui master[3390]: about to exec 
/usr/lib/cyrus-imapd/imapd
Aug 12 21:33:19 maui master[3391]: about to exec 
/usr/lib/cyrus-imapd/pop3d
Aug 12 21:33:19 maui master[3393]: about to exec 
/usr/lib/cyrus-imapd/lmtpd
Aug 12 21:33:19 maui lmtpunix[3393]: executed
Aug 12 21:33:19 maui pop3s[3392]: executed
Aug 12 21:33:19 maui ctl_cyrusdb[3389]: archiving database file: 
/var/lib/imap/annotations.db
Aug 12 21:33:19 maui imap[3390]: executed
Aug 12 21:33:19 maui pop3[3391]: executed
Aug 12 21:33:19 maui ctl_cyrusdb[3389]: archiving log file: 
/var/lib/imap/db/log.0000000001
Aug 12 21:33:19 maui ctl_cyrusdb[3389]: archiving log file: 
/var/lib/imap/db/log.0000000001
Aug 12 21:33:19 maui ctl_cyrusdb[3389]: archiving database file: 
/var/lib/imap/mailboxes.db
Aug 12 21:33:19 maui ctl_cyrusdb[3389]: archiving log file: 
/var/lib/imap/db/log.0000000001
Aug 12 21:33:19 maui ctl_cyrusdb[3389]: archiving log file: 
/var/lib/imap/db/log.0000000001
Aug 12 21:33:19 maui ctl_cyrusdb[3389]: done checkpointing cyrus databases
Aug 12 21:33:19 maui master[3384]: process 3389 exited, status 0
Aug 12 21:33:19 maui master[3394]: about to exec 
/usr/lib/cyrus-imapd/imapd
Aug 12 21:33:19 maui master[3395]: about to exec 
/usr/lib/cyrus-imapd/pop3d
Aug 12 21:33:19 maui pop3[3395]: executed
Aug 12 21:33:19 maui imap[3394]: executed
[root at maui:/var/log]$



--------------------------------------------------------------------
> Please provide the content of /etc/imapd.conf.
>
[root at maui:/etc/named]$ cat /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: saslauthd
sasl_mech_list: PLAIN
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
--------------------------------------------------------------------

> You configured the imaps service not to bind to localhost.
>
Yes - that made it easy to tell if imapd was running on 148.197.29.5
by just doing ps -ef|grep cyrus
--------------------------------------------------------------------
> What did you configure in your DNS and set in /etc/hosts? Please provide last 
> one.
>
I am running a DNS server on maui that is updated by DHCP as required
The zone file looks like this at the moment
IPs between range   148.197.29.129  148.197.29.253  ;
are dynamic, the rest are fixed

[root at maui:/var/named/chroot/var/named/dynamic]$ cat jaa.org.uk.zone
$ORIGIN .
$TTL 86400      ; 1 day
jaa.org.uk              IN SOA  maui.jaa.org.uk. ja.jaa.org.uk. (
                                 200714349  ; serial
                                 7200       ; refresh (2 hours)
                                 300        ; retry (5 minutes)
                                 604800     ; expire (1 week)
                                 60         ; minimum (1 minute)
                                 )
                         NS      maui.jaa.org.uk.
                         MX      10 maui.jaa.org.uk.
$ORIGIN jaa.org.uk.
$TTL 43200      ; 12 hours
android-54f4af51ba23308b A      148.197.29.251
                         TXT     "31d805ae3efb12d6a37351a28b581c9142"
$TTL 86400      ; 1 day
draytek                 A       148.197.29.254
$TTL 43200      ; 12 hours
ferrari                 A       148.197.29.183
                         TXT     "310fc27c6e505544502e0a12fb2192d64a"
$TTL 86400      ; 1 day
maui                    A       148.197.29.5
$TTL 43200      ; 12 hours
paxos                   A       148.197.29.159
                         TXT     "315dff374b9faae33e5457b537bb671bd9"
$TTL 86400      ; 1 day
zyxel                   A       148.197.29.2
-------------------------------------------------------------------
[root at maui:/etc/named]$ cat /etc/hosts
127.0.0.1       localhost.localdomain   localhost maui
#127.0.0.1      localhost.localdomain   localhost
::1     maui.jaa.org.uk maui    localhost6.localdomain6 localhost6
148.197.29.5    maui.jaa.org.uk maui





More information about the CentOS mailing list