In my /var/log/mail.log I saw the following error:
Aug 6 17:12:58 Nephtys cyrus/imap: SQUAT failed to open index file
Aug 6 17:12:58 Nephtys cyrus/imap: SQUAT failed
In order to fix this execute the following commands:
# sudo su cyrus
This will make you the cyrus user.
This will index all your e-mails (more info by executing $ man squatter). This index is not incremental so you need to run this task once in a while. It might be usefull to create a cronjob for this command.
After checking out my mail logs I had the following error:
Aug 6 11:38:52 Nephtys postfix/lmtp: DD69A18A90C: to=, relay=none,
delay=593, delays=593/0.02/0.01/0, dsn=4.4.1, status=deferred
(connect to localhost[/var/run/cyrus/socket/lmtp]: Permission denied)
I Googled the error but could not find a fix. Finally it turned out that the postfix user was not in the mail group, which could be fixed by executing
# adduser postfix mail
The last few days I keep having trouble connecting to my imap server running Cyrus. I started to view my syslog when trying to authenticate to the Cyrus server, there was one line interesting:
Cyrus SASL(-13): authentication failure: checkpass failed error
I thought it should have something to do with the passwords so I tried to enter the Cyrus server with:
# cyradm localhost
When I entered my password I could not connect. This was weird since I was 100% sure about the correctness. To be sure I resetted all my imap box passwords using:
# saslpasswd2 username
This didn’t fix it either. Then I read on a website about the saslauthd daemon not running. I restarted the service and everything worked as normal 🙂 My guess is that an Ubuntu update stopped the saslauthd daemon but did not restart it.