I have configured mail-to-activity but when I run the task to fetch mails, I get an error message in job's log (without any details) and this kind of message in IMAP server log:

Oct  8 14:00:01 bazylia dovecot: imap-login: Aborted login (no auth attempts in 0 secs): user=<>, rip=, lip=, TLS, session=<OrpYmpYhbQAKdXEU>

This mail is '[email protected]'. I have set user name ('kontakt') and password and obviously CiviCRM can connect to IMAP server. How can I debug this?

2 Answers 2


According to this page, the most common reason for your error is that your server only accepts STARTTLS connections on port 143.

If this is your situation, then you can either connect over SSL on port 993 if your server allows it, or you can connect using STARTTLS. Note that there are some caveats to connecting over TLS: See here and here.


You need to use a IMAP password that does not contain weird/special characters. CiviCRM uses IMAP client that provides user password in such a way that my server (Dovecot) returns an information about bad password format/quoting.

I used tcpdump to track this error.

The password was #iCE+&G-UFF"D and I have changed it to alphanumeric ones.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.