Answers.Body: <p>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.</p>
  
  <p>I used tcpdump to track this error. </p>
  
  <p>The password was #iCE+&amp;G-UFF"D and I have changed it to alphanumeric ones.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-10-20T10:45:28.717Z
Answers.LastActivityDate: 2015-10-20T10:45:28.717Z
Answers.UserDisplayName: movonw
Answers.Body: <p>According to <a href="http://wiki2.dovecot.org/WhyDoesItNotWork" rel="nofollow noreferrer">this page</a>, the most common reason for your error is that your server only accepts STARTTLS connections on port 143.</p>
  
  <p>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 <a href="https://issues.civicrm.org/jira/browse/CRM-14814" rel="nofollow noreferrer">here</a> and <a href="https://civicrm.stackexchange.com/questions/377/how-do-i-configure-smtp-with-starttls">here</a>.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-10-08T13:36:24.657Z
Answers.LastActivityDate: 2015-10-08T13:36:24.657Z
Answers.LastEditDate: 2017-04-13T12:53:13.017Z
Answers.UserDisplayName: Jon G - Megaphone Tech
Body: <p>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:</p>
  
  <pre><code>Oct  8 14:00:01 bazylia dovecot: imap-login: Aborted login (no auth attempts in 0 secs): user=&lt;&gt;, rip=10.117.113.20, lip=10.117.113.5, TLS, session=&lt;OrpYmpYhbQAKdXEU&gt;
  </code></pre>
  
  <p>This mail is 'kontakt@mydmain.com'.
  I have set user name ('kontakt') and password and obviously CiviCRM can connect to IMAP server. 
  How can I debug this?</p>
  
Tags: <civimail><wordpress>
Title: Mail-to-Account does not fetch mail,
ThreadText: # Mail-to-Account does not fetch mail,
  
  (Asked by: username_0 on 2015-10-08)
  
  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=10.117.113.20, lip=10.117.113.5, TLS, session=
  
  This mail is 'kontakt@mydmain.com'.
  I have set user name ('kontakt') and password and obviously CiviCRM can connect to IMAP server. 
  How can I debug this?
  
  **Tags:** civimail, wordpress
  
  
  ---
  
  ## 2 answers
  
  ### Answer by username_0 on 2015-10-20. Score: 1 | Accepted answer
  
  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.
  
  
  ---
  
  ### Answer by username_1 on 2015-10-08. Score: 1
  
  According to [this page](http://wiki2.dovecot.org/WhyDoesItNotWork), 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](https://issues.civicrm.org/jira/browse/CRM-14814) and [here](https://civicrm.stackexchange.com/questions/377/how-do-i-configure-smtp-with-starttls).
  
  
  ---
  
  