Skip to main content
Content Starts Here

We've Moved!

Please note that we have moved to our New Forum site.


Ask Search:
Koven ZhangKoven Zhang 

Email Server trying to connect to smtp.office365.com 587 but failed.

Email Server trying to connect to smtp.office365.com 587 but failed.


[smtp-client]
enable-authentication true
port 587
smtp-connection-security  start-tls-required

log:
Acquiring new SMTP connection from pool (current total nb of connections: 0 , free connections: 0 , used connections: 0).
13:27:49.125 Dbg 23104 [SvcSrvW-8] <198324 01T0GF2PP0BAC00X> Creating SMTP connection nb 1.
13:27:49.125 Dbg 23100 [SvcSrvW-8] <198324 01T0GF2PP0BAC00X> Activating SMTP connection nb 1.
13:27:49.125 Dbg 25111 [SvcSrvW-8] <198324 01T0GF2PP0BAC00X> JavaMail SMTP: DEBUG: getProvider() returning javax.mail.Provider[TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport,Sun Microsystems, Inc]
13:27:49.125 Trc 04500 Connecting to server 'smtp' at host 'smtp.office365.com', port 587
13:27:49.125 Dbg 25111 [SvcSrvW-8] <198324 01T0GF2PP0BAC00X> JavaMail SMTP: DEBUG SMTP: useEhlo true, useAuth true
13:27:49.125 Dbg 25111 [SvcSrvW-8] <198324 01T0GF2PP0BAC00X> JavaMail SMTP: DEBUG SMTP: trying to connect to host "smtp.office365.com", port 587, isSSL false

13:30:40.891 Std 25100 [SvcSrvW-10] <198362 01T0GF2PP0BAC00X> Service 'Email' failed in method 'Send' (ErrorCode=710 ErrorMsg=Connnection to SMTP Server host 'smtp.office365.com', port 587 failed.).
13:30:40.891 Trc 25020 [SvcSrvW-10] <198362 01T0GF2PP0BAC00X> Service 'Email' method 'Send' ended, processing time (ms): 13350.
13:30:40.891 Std 25080 [SvcSrvW-10] <198362> Exception message: Connnection to SMTP Server host 'smtp.office365.com', port 587 failed..
13:30:40.891 Trc 25097 [SvcSrvW-10] <198362> Response: 
Jakub NemecJakub Nemec
Hi Koven,

enable debugging on ESJ by enable-debug=true on particulars configured boxes, to see more details about communication between ESJ and Exchange.

Regards,
--Jakub--
Arijit T NagArijit T Nag
Change the option smtp-connection-security=start-tls. Office 365 only support this. thanks,
Koven ZhangKoven Zhang
Thanks .Change the options "smtp-connection-security=start-tls",but the issue is same .
<757892 01T0JW2PPN0AM003> JavaMail SMTP: DEBUG SMTP: trying to connect to host "smtp.office365.com", port 587, isSSL false
Rohit BishtRohit Bisht
you can try the following changes:
- latest vesrion of email server.
- In smtp-client option of genesys emailserver, exchange-version=office365
- find out the public ip of your network, where you have installed email  server and add this ip to office365 exchange.
 
Peter SelcPeter Selc
Hello Koven, how did you manage to solve this problem?
Edison DungogEdison Dungog
Setting below options resolved my (same) issue
exchange-version=office365
smtp-connection-security=start-tls