Author Topic: How to connect Thunderbird to Exchange Mail?  (Read 3611 times)

itoperatorguy

  • Zen Apprentice
  • *
  • Posts: 13
  • Karma: +0/-0
    • View Profile
How to connect Thunderbird to Exchange Mail?
« on: September 19, 2014, 10:13:06 pm »
Hi all,

I have a running Zentyal 3.5 on Ubuntu 14.04. I installed the ExchangeMail modul and configured it so it is working. It is available from browser on https://mail.company.net/SOGo

The server is located one of the server providers not in our lan.

I was able to connect Microsoft Outlook to the server with the help of this tutorial:  http://labs.zentyal.org/auto-configuring-outlook-anywhere-to-connect-to-zentyal-server/

Since our users have different OS (windows 7, 8 , Ubuntu, Mac) I would like to configure Thunderbird as well.  I tried the following from an Ubuntu 14.04 machine with a user called support:
1. create new mail account >> skipt this and use existing mail account
2. Your name: support, mail address: support@company.net; password : the_password
--> thunderbird thinking for a minute and try to find the server parameters automatically, then it gives up and gives me another window where I can setup everything and I literally tried every possible option with every combination.
Your name: tried support and support@company.net as well
mail: support@company.net
incoming : tried IMAP and POP3 as well; Server hostname .company.net and .mail.company.net as well; port 993 and 995 as well, SSL starttls and SSL/TLS as well; authentication: normal password, encrypted password, kerberos etc...

And nothing is worked. I checked with nmap. These are the ports what are open:
22/tcp  open  ssh
53/tcp  open  domain
80/tcp  open  http
88/tcp  open  kerberos-sec
389/tcp open  ldap
443/tcp open  https
444/tcp open  snpp
465/tcp open  smtps
587/tcp open  submission
993/tcp open  imaps
995/tcp open  pop3s

Can somebody help me out?

jbahillo

  • Zentyal Staff
  • Zen Hero
  • *****
  • Posts: 1444
  • Karma: +77/-2
    • View Profile
Re: How to connect Thunderbird to Exchange Mail?
« Reply #1 on: September 20, 2014, 07:42:32 pm »
IMAPS and POP3S should be working. Make sure to pass full email as username, if still cannot connect, check /var/log/mail.log

itoperatorguy

  • Zen Apprentice
  • *
  • Posts: 13
  • Karma: +0/-0
    • View Profile
Re: How to connect Thunderbird to Exchange Mail?
« Reply #2 on: September 26, 2014, 12:22:40 am »
Sorry for the late reply, and thank you very much for your help. I still have issues, but here is what I done so far:
-enable both POP3 and IMAP in the Mail > General menu (so now normal imap and pop3 ports open as well)
-the ubuntu client machine now have a record its /etc/hosts with ip_adress mail.company.net company.net
-I gave the following info in thunderbird:
Your name: support --> this is the username in Zentyal
Your mail: support@company.net
Password: the_password
Hit "continue" button

After that now ThunderBird detect the following configuration:
Incoming: IMAP or POP3 (I can choose what I want) to use, -->) imap.company.net or pop3.company.net , STARTTLS
outgoing SMTP: smtp.jighi.net, STARTTLS
username: support

If I hit the Done button I got an error saying "Configuration can not be verified -- is the username or the password wrong"?

The result the same even I swich to manual config and try to gave:
Your name: support@company.net (at the top)
username: support@company.net (at the bottom)

I tried to use @company.net only 1 place after that the other but still not working. After this I also followed a  tutorial "how to add root certificate to Ubuntu":
commands:
sudo mkdir /usr/local/share/ca-certificates/cacert.org
sudo cp cacert.crt /usr/local/share/ca-certificates/cacert.org
sudo update-ca-certificates

result:
Updating certificates in /etc/ssl/certs... WARNING: Skipping duplicate certificate UbuntuOne-Go_Daddy_Class_2_CA.pem
WARNING: Skipping duplicate certificate UbuntuOne-Go_Daddy_Class_2_CA.pem
WARNING: Skipping duplicate certificate ValiCert_Class_2_VA.pem
WARNING: Skipping duplicate certificate ValiCert_Class_2_VA.pem
1 added, 0 removed; done.
Running hooks in /etc/ca-certificates/update.d....done.



But the overall result is still the same: wrong username or password. And I am sure I try with the good password.

This is what I see at the /var/log/mail.log on the Zentyal server:
Sep 25 22:06:15 mail dovecot: imap-login: Disconnected (no auth attempts in 14 secs): user=<>, rip=from_ip_address, lip=server_ip_address, TLS, session=<bJ5lAusDJAAu9nwU>
Sep 25 22:06:25 mail dovecot: imap-login: Disconnected (no auth attempts in 2 secs): user=<>, rip=from_ip_address, lip=server_ip_address, TLS, session=<vqz6AusDWAAu9nwU>
Sep 25 22:06:28 mail dovecot: imap-login: Disconnected (no auth attempts in 2 secs): user=<>, rip=from_ip_address, lip=server_ip_address, TLS, session=<pbMiA+sDXwAu9nwU>
Sep 25 22:06:43 mail postfix/smtpd[25292]: connect from unknown[from_ip_address]
Sep 25 22:06:43 mail postfix/smtpd[25292]: improper command pipelining after EHLO from unknown[from_ip_address]: QUIT\r\n
Sep 25 22:06:43 mail postfix/smtpd[25292]: disconnect from unknown[from_ip_address]
Sep 25 22:06:43 mail dovecot: imap-login: Aborted login (no auth attempts in 0 secs): user=<>, rip=from_ip_address, lip=server_ip_address, session=<6icOBOsDiAAu9nwU>
Sep 25 22:06:47 mail dovecot: imap-login: Disconnected (no auth attempts in 1 secs): user=<>, rip=from_ip_address, lip=server_ip_address, TLS, session=<R8hNBOsDkQAu9nwU>
Sep 25 22:07:03 mail postfix/pickup[24375]: 017CA20869: uid=0 from=<root>
Sep 25 22:07:03 mail postfix/cleanup[24585]: 017CA20869: message-id=<20140925220703.017CA20869@mail.company.net>
Sep 25 22:07:03 mail postfix/qmgr[24376]: 017CA20869: from=<root@mail.company.net>, size=604, nrcpt=1 (queue active)
Sep 25 22:07:03 mail postfix/pipe[24588]: 017CA20869: to=<root@company.net>, orig_to=<root>, relay=dovecot, delay=0.03, delays=0.01/0/0/0.01, dsn=5.1.1, status=bounced (user unknown)
Sep 25 22:07:03 mail postfix/cleanup[24585]: 07B53208B9: message-id=<20140925220703.07B53208B9@mail.company.net>
Sep 25 22:07:03 mail postfix/bounce[24591]: 017CA20869: sender non-delivery notification: 07B53208B9
Sep 25 22:07:03 mail postfix/qmgr[24376]: 07B53208B9: from=<>, size=2332, nrcpt=1 (queue active)
Sep 25 22:07:03 mail postfix/qmgr[24376]: 017CA20869: removed
Sep 25 22:07:03 mail postfix/pipe[24588]: 07B53208B9: to=<root@company.net>, orig_to=<root@mail.company.net>, relay=dovecot, delay=0.02, delays=0.01/0/0/0.01, dsn=5.1.1, status=bounced (user unknown)
Sep 25 22:07:03 mail postfix/qmgr[24376]: 07B53208B9: removed

« Last Edit: September 26, 2014, 12:25:20 am by itoperatorguy »

jbahillo

  • Zentyal Staff
  • Zen Hero
  • *****
  • Posts: 1444
  • Karma: +77/-2
    • View Profile
Re: How to connect Thunderbird to Exchange Mail?
« Reply #3 on: September 26, 2014, 11:45:51 am »
Hello:

Just make sure to change identification method to "normal password" as Thunderbird per default sets it to Kerberos/GSSAPI


best regards

itoperatorguy

  • Zen Apprentice
  • *
  • Posts: 13
  • Karma: +0/-0
    • View Profile
Re: How to connect Thunderbird to Exchange Mail?
« Reply #4 on: September 26, 2014, 04:51:07 pm »
Thank you very much. It is working now. I gave you an "applaud" :)

My only last question. Why this is not working with the POP3S and IMAPS only just with the non-secure POP3 and IMAP?

jbahillo

  • Zentyal Staff
  • Zen Hero
  • *****
  • Posts: 1444
  • Karma: +77/-2
    • View Profile
Re: How to connect Thunderbird to Exchange Mail?
« Reply #5 on: September 26, 2014, 04:52:38 pm »
Hello:

It should work as well with IMAPS and POP3S, just make sure that, for instance for IMAP:

Quote
SSL/TLS
and
Quote
normal password

is selected, and that port selected is 993