• Resolved dnadigi

    (@dnadigi)


    Hi there,

    Our client has provided us their SMTP details for their website.

    Their emails are not hosted on Office365. They are hosted on a company-controlled Exchange server. smtp.office365.com will therefore not be valid for the SMTP connection.
     
    Also, the 'user' that has been created for SMTP access is not a full mailbox and as such does not have access to a webmail-based login. It is instead a mail-enabled user account for authentication purposes only to allow connection to the SMTP services. This will explain why you are unable to log into webmail as that account.
     
    They are saying that this is the approach they have used for other clients to access SMTP services and has been working without issue.

    How do we connect to such SMTP using below details?
    SMTP Server: webmail.astonchase.com
    Username: [email protected]

    Port: 587

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter dnadigi

    (@dnadigi)

    Versions:
    WordPress: 5.7.2
    WordPress MS: No
    PHP: 7.2.31-1+ubuntu18.04.1+deb.sury.org+1
    WP Mail SMTP: 2.9.0

    Params:
    Mailer: smtp
    Constants: No
    ErrorInfo: SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting
    Host: webmail.astonchase.com
    Port: 587
    SMTPSecure: tls
    SMTPAutoTLS: bool(true)
    SMTPAuth: bool(true)

    Server:
    OpenSSL: OpenSSL 1.1.1g 21 Apr 2020

    Debug:
    Mailer: Other SMTP
    SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting

    SMTP Debug:
    2021-10-25 15:04:29 Connection: opening to webmail.astonchase.com:587, timeout=300, options=array()

    2021-10-25 15:06:39 Connection failed. Error #2: stream_socket_client(): unable to connect to webmail.astonchase.com:587 (Connection timed out) [/var/www/html/dna-projects/aston-chase/wp-includes/PHPMailer/SMTP.php line 392]

    2021-10-25 15:06:39 SMTP ERROR: Failed to connect to server: Connection timed out (110)

    SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting

    Hi @dnadigi,

    Thanks for reaching out. The site isn’t able to connect to the SMTP host you’ve configured and the connection timed out. This can happen if the web server has placed a firewall to block the outbound SMTP connections. Please contact your webhost support with the same SMTP debug and they’ll be able to look into the issue.

    I hope this helps!

    Thread Starter dnadigi

    (@dnadigi)

    Hi There,

    I reached out to our web server the connection to outbound was succesful but we didnt get a response from the email host webmail.astonchase.com. So i got in touch with email host and they enabled our IP address of the server. Since then we have now got a new debug error log, our server team are saying that there is nothing further they can do and the email host is also saying the same. I am stuck now.

    Debug log here;

    Versions:
    WordPress: 5.8.1
    WordPress MS: No
    PHP: 7.4.25
    WP Mail SMTP: 2.9.0
    
    Params:
    Mailer: smtp
    Constants: No
    ErrorInfo: SMTP Error: Could not connect to SMTP host.
    Host: webmail.astonchase.com
    Port: 587
    SMTPSecure: tls
    SMTPAutoTLS: bool(true)
    SMTPAuth: bool(true)
    
    Server:
    OpenSSL: OpenSSL 1.1.1l 24 Aug 2021
    
    Debug:
    Mailer: Other SMTP
    SMTP Error: Could not connect to SMTP host.
    
    SMTP Debug:
    2021-10-29 09:49:23 Connection: opening to webmail.astonchase.com:587, timeout=300, options=array()
    
    2021-10-29 09:49:23 Connection: opened
    
    2021-10-29 09:49:23 SERVER -> CLIENT: 220-37.220.88.48.srvlist.ukfast.net ESMTP Exim 4.94.2 #2 Fri, 29 Oct 2021 10:49:23 +0100 220-We do not authorize the use of this system to transport unsolicited, 220 and/or bulk e-mail.
    
    2021-10-29 09:49:23 CLIENT -> SERVER: EHLO 37.220.88.48.srvlist.ukfast.net
    
    2021-10-29 09:49:23 SERVER -> CLIENT: 250-37.220.88.48.srvlist.ukfast.net Hello 37.220.88.48.srvlist.ukfast.net [172.25.248.12]250-SIZE 52428800250-8BITMIME250-PIPELINING250-PIPE_CONNECT250-AUTH PLAIN LOGIN250-STARTTLS250 HELP
    
    2021-10-29 09:49:23 CLIENT -> SERVER: STARTTLS
    
    2021-10-29 09:49:23 SERVER -> CLIENT: 220 TLS go ahead
    
    2021-10-29 09:49:23 Connection failed. Error #2: stream_socket_enable_crypto(): Peer certificate CN=<code>37.220.88.48.srvlist.ukfast.net' did not match expected CN=</code>webmail.astonchase.com' [/home/astonchase/public_html/wp-includes/PHPMailer/SMTP.php line 468]
    
    SMTP Error: Could not connect to SMTP host.
    
    2021-10-29 09:49:23 CLIENT -> SERVER: QUIT
    
    2021-10-29 09:49:23
    
    2021-10-29 09:49:23
    
    2021-10-29 09:49:23 Connection: closed
    
    SMTP Error: Could not connect to SMTP host.

    Hi @dnadigi,

    Thanks for the error log. It is still an issue with the server configuration. It looks like your web host’s certificate is presented which isn’t matching the hostname ‘webmail.astonchase.com’. Please contact your web host with the full SMTP log.

    Have a good one! ??

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Trying to configure SMTP with office365’ is closed to new replies.