[Vtigercrm-developers] vtiger 5.4.0 & Office365 SMTP?

Alan Lord alanslists at gmail.com
Thu Feb 20 15:15:42 GMT 2014


Anyone got this working?

On the same vtiger 5.4.0 system I can correctly configure the outgoing 
server for GMail (ssl://smtp.gmail.com:465) and our own smtp server.

However trying to connect to the office365 I get the dreaded:

> Thu Feb 20 14:18:31 2014,355 [9624] DEBUG index - Error in Mail Sending : Error log = 'SMTP Error: Could not connect to SMTP host1111111111=======>.'

This system is on an Ubuntu 12.04 LTS server. And we use this set up all 
the time.

The last time I came across this error was when installing vtiger on a 
CentOS machine and we ended up having to disable SELinux (But that was 
for gmail)

Gmail works fine here and Ubuntu doesn't use SELinux

I've tried ssl:// and/or tls:// but I don't actually think the smtp 
connect is getting out of the server by the looks of that error message 
- it happens too soon in the connect process.

If I install a lightweight smtp client like msmtp I can connect to 
Office365 just fine:

> $ msmtp --serverinfo --host=outlook.office365.com --tls=on --tls-certcheck=off --port=587
> SMTP server at outlook.office365.com ([157.56.251.50]), port 587:
>     AMXPR03CA003.outlook.office365.com Microsoft ESMTP MAIL Service ready at Thu, 20 Feb 2014 15:05:14 +0000
> TLS certificate information:
>     Owner:
>         Common Name: outlook.com
>         Organization: Microsoft Corporation
>         Organizational unit: Exchange
>         Locality: Redmond
>         State or Province: Washington
>         Country: US
>     Issuer:
>         Common Name: MSIT Machine Auth CA 2
>     Validity:
>         Activation time: Tue 18 Sep 2012 19:53:09 BST
>         Expiration time: Thu 18 Sep 2014 19:53:09 BST
>     Fingerprints:
>         SHA1: D2:B9:E1:96:C0:09:EB:C7:C2:07:18:8B:26:50:81:F7:2B:F3:E6:EF
>         MD5:  FB:BD:5E:2A:6C:61:FC:1B:B8:88:81:98:87:1F:99:AD
> Capabilities:
>     SIZE 78643200:
>         Maximum message size is 78643200 bytes = 75.00 MiB
>     PIPELINING:
>         Support for command grouping for faster transmission
>     DSN:
>         Support for Delivery Status Notifications
>     STARTTLS:
>         Support for TLS encryption via the STARTTLS command
>     AUTH:
>         Supported authentication methods:
>         LOGIN

Anyone got any ideas?

Cheers

Al



More information about the vtigercrm-developers mailing list