Answers.Body: <p>CiviMail doesn't concatenate the username to the servername, it just takes whatever you provide and tries to connect using those credentials.</p>
  
  <p>But my guess is that the issue is unrelated to the username, since your error message is:</p>
  
  <pre><code>Failed to connect to the server: mail.mbrainingcentrum.com:993.
  </code></pre>
  
  <p>I'd guess that you've more likely got a firewall issue, or an SSL issue on your server.</p>
  
  <p>You can test by manually trying to connect to your mail server, using e.g.  the instructions here: 
  <a href="https://technet.microsoft.com/en-us/library/aa995718(v=exchg.65).aspx" rel="nofollow noreferrer">https://technet.microsoft.com/en-us/library/aa995718(v=exchg.65).aspx</a></p>
  
  <p>[As per comment below - another thing to check is that the server is connecting to the correct machine, e.g. if it has a local dns setting that is wrong.]</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-05-19T15:00:20.557Z
Answers.Text: Dear Alan, Thank you for the pointer. DNS settings had changed, Solved !
Answers.UserDisplayName: TonV
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-05-19T12:57:20.860Z
Answers.LastActivityDate: 2017-05-23T13:59:10.563Z
Answers.LastEditDate: 2017-05-23T13:59:10.563Z
Answers.UserDisplayName: Alan Dixon
Body: <p>CiviCRM 4.7.19 / Drupal 7.54</p>
  
  <p>I am stuggeling with the setup of the default mail account in CiviCRM
  (... /civicrm/admin/mailSettings?reset=1)</p>
  
  <p>I have setup a IMAP mail account for processing bounced email. Receiving email in this mail account works using my mail client using information below.</p>
  
  <ul>
  <li><p>Mail account info:</p>
  
  <p>Email address:   bounces@mydomain.org</p>
  
  <p>Username:        bounces@mydomain.org (ISP requires that the full email
  address be used for the username)</p>
  
  <p>Password:        mypass</p>
  
  <p>Server:          mail.mydomain.org</p>
  
  <p>Protocol:        IMAP</p>
  
  <p>SSL:         is activated</p></li>
  </ul>
  
  <p>.</p>
  
  <ul>
  <li><p>CiviCRM (CiviMAIL) settings:</p>
  
  <p>Name:        Bounce processing</p>
  
  <p>Server:      mail.mydomain.org</p>
  
  <p>Username:    bounces     &lt;&lt;&lt;&lt;--- should be full email addres:
  bounces@mydomain.org</p>
  
  <p>Password:    mypass</p>
  
  <p>Local part:  </p>
  
  <p>Email domain:    mydomain.org</p>
  
  <p>Return address:  </p>
  
  <p>Protocol:    IMAP</p>
  
  <p>Source:</p>
  
  <p>Use SSL: checked</p>
  
  <p>Used for:    processing bounces</p></li>
  </ul>
  
  <p>.</p>
  
  <p>Results Cron Job - </p>
  
  <p>Entiteit: job Actie: fetch_bounces
  Summary
  Finished execution of Fetch Bounces with result: Mislukt, Error message: A fatal error was triggered: Kan geen verbinding maken met Mailstore voor bounces@mail.mydomain.org
  Foutmelding:</p>
  
  <p>An error occured while sending or re (...)
  Details</p>
  
  <p>Parameters parsed (and passed to API method): 
  a:1:{s:7:"version";i:3;}</p>
  
  <p>Full message: 
  Finished execution of Fetch Bounces with result: Mislukt, Error message: A fatal error was triggered: Kan geen verbinding maken met Mailstore voor bounces@mail.mydomain.org
  Foutmelding:</p>
  
  <p>An error occured while sending or receiving mail. Failed to connect to the server: mail.mbrainingcentrum.com:993.</p>
  
  <p>.</p>
  
  <p>When I use the full email adress as username I get errors referring to: bounces@mydomain.org@mail.mydomain.org</p>
  
  <p>Looks to me that CiviCRM(CiviMAIL) has a bug regarding concatenatig proper parts.</p>
  
  <p>Any solution?</p>
  
  <p>Many thanks in advance !</p>
  
  <p>Best regards,
  Ton</p>
  
Tags: <civimail>
Title: Issues with the Default Email address for bounces - authentication
ThreadText: # Issues with the Default Email address for bounces - authentication
  
  (Asked by: username_0 on 2017-05-19)
  
  CiviCRM 4.7.19 / Drupal 7.54
  
  I am stuggeling with the setup of the default mail account in CiviCRM
  (... /civicrm/admin/mailSettings?reset=1)
  
  I have setup a IMAP mail account for processing bounced email. Receiving email in this mail account works using my mail client using information below.
  
  * Mail account info:
  
    Email address: bounces@mydomain.org
  
    Username: bounces@mydomain.org (ISP requires that the full email
    address be used for the username)
  
    Password: mypass
  
    Server: mail.mydomain.org
  
    Protocol: IMAP
  
    SSL: is activated
  
  .
  
  * CiviCRM (CiviMAIL) settings:
  
    Name: Bounce processing
  
    Server: mail.mydomain.org
  
    Username: bounces <<<<--- should be full email addres:
    bounces@mydomain.org
  
    Password: mypass
  
    Local part:
  
    Email domain: mydomain.org
  
    Return address:
  
    Protocol: IMAP
  
    Source:
  
    Use SSL: checked
  
    Used for: processing bounces
  
  .
  
  Results Cron Job -
  
  Entiteit: job Actie: fetch\_bounces
  Summary
  Finished execution of Fetch Bounces with result: Mislukt, Error message: A fatal error was triggered: Kan geen verbinding maken met Mailstore voor bounces@mail.mydomain.org
  Foutmelding:
  
  An error occured while sending or re (...)
  Details
  
  Parameters parsed (and passed to API method):
  a:1:{s:7:"version";i:3;}
  
  Full message:
  Finished execution of Fetch Bounces with result: Mislukt, Error message: A fatal error was triggered: Kan geen verbinding maken met Mailstore voor bounces@mail.mydomain.org
  Foutmelding:
  
  An error occured while sending or receiving mail. Failed to connect to the server: mail.mbrainingcentrum.com:993.
  
  .
  
  When I use the full email adress as username I get errors referring to: bounces@mydomain.org@mail.mydomain.org
  
  Looks to me that CiviCRM(CiviMAIL) has a bug regarding concatenatig proper parts.
  
  Any solution?
  
  Many thanks in advance !
  
  Best regards,
  Ton
  
  **Tags:** civimail
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2017-05-19. Score: 1
  
  CiviMail doesn't concatenate the username to the servername, it just takes whatever you provide and tries to connect using those credentials.
  
  But my guess is that the issue is unrelated to the username, since your error message is:
  
  ```
  Failed to connect to the server: mail.mbrainingcentrum.com:993.
  
  ```
  
  I'd guess that you've more likely got a firewall issue, or an SSL issue on your server.
  
  You can test by manually trying to connect to your mail server, using e.g. the instructions here:
  <https://technet.microsoft.com/en-us/library/aa995718(v=exchg.65).aspx>
  
  [As per comment below - another thing to check is that the server is connecting to the correct machine, e.g. if it has a local dns setting that is wrong.]
  
  > **Comments:**
  > **username_0**: Dear username_1, Thank you for the pointer. DNS settings had changed, Solved !  
  
  ---
  
  