Skip to main content

SMTP TLS not working

Comments

8 comments

  • Mohammed Sufian Shaikh
    Found a work around for this issue, but it would be great if cPanel team will have a serious look on it. I have to ```Off``` the below setting: ```Require clients to connect with SSL or issue the STARTTLS command before they are allowed to authenticate with the server``` now I can send emails using SMTP. :-(
    0
  • cPanelLauren
    Hello @Mohammed Sufian Shaikh It sounds a lot like your script was connecting insecurely. What did you have set for it? Thanks!
    0
  • Mohammed Sufian Shaikh
    Hello @Mohammed Sufian Shaikh It sounds a lot like your script was connecting insecurely. What did you have set for it? Thanks!

    Hi Sir, I already answered about this in my reply.. I have to ```Off``` the below setting: ```Require clients to connect with SSL or issue the STARTTLS command before they are allowed to authenticate with the server``` by this way I can now connect to SSL/TLS .. when sending emails using SMTP... If you have few guides to setup it securely please let me know.. It would be great to do...
    0
  • cPanelLauren
    Hello @Mohammed Sufian Shaikh You noted that SMTP restriction was off, I want to know about the script you are using.
    Require clients to connect with SSL or issue the STARTTLS command before they are allowed to authenticate with the server

    Being able to send mail when this is disabled indicates that you're attempting to connect to the server with an unencrypted connection. When this setting is enabled you must have your script connect using an encrypted connection. Something like the following example: How do I send PHP mail via SMTP? Thanks!
    0
  • Mohammed Sufian Shaikh
    Hello @Mohammed Sufian Shaikh You noted that SMTP restriction was off, I want to know about the script you are using. Being able to send mail when this is disabled indicates that you're attempting to connect to the server with an unencrypted connection. When this setting is enabled you must have your script connect using an encrypted connection. Something like the following example:
    0
  • cPanelLauren
    Hello, If you do not want to connect with an encrypted connection, you need to disable this in the configuration of the mail client.
    I'm not using any script to send emails, but using Outlook and Thunderbird to use SSL/TLS..

    You specifically noted that you were utilizing a python script in your initial message though:
    I have been struggling to enable SMTP in my cPanel. SMTP Restriction is OFF. But I'm not able to send smtp emails[from python script and from php script] using my server smtp details of domain: - Removed -

    So with that being said you need to ensure the following: 1. If you're using a script and you do not want to use SSL/TLS encryption you must ensure that the script is set to not connect over a secure port and use encryption 2. The mail client must be configured in a similar manner, if you do not want encryption you woudl check the plain authentication type rather than STARTTLS or SSL 3. If you're trying to use STARTTLS or SSL please let me know what ports and how the mail client/script is configured Thank you.
    0
  • Mohammed Sufian Shaikh
    Hi Sir, 1st of all thanks for your reply and time. 2nd, about the python script, I was using that just for testing. Now, could you please tell me How do I setup it so that, I can use outlook or any other client to send and receive emails with encryption. What setting do I need to have to use encryption with port 465, 587. Please could you give me steps to setup my server to use only encryption SSL/ TLS in outlook and any clients. I do not want to set any script to send mails, but yes I'll use SMTP in PHP scripts. Please HELP.
    Hello, If you do not want to connect with an encrypted connection, you need to disable this in the configuration of the mail client. You specifically noted that you were utilizing a python script in your initial message though: So with that being said you need to ensure the following: 1. If you're using a script and you do not want to use SSL/TLS encryption you must ensure that the script is set to not connect over a secure port and use encryption 2. The mail client must be configured in a similar manner, if you do not want encryption you woudl check the plain authentication type rather than STARTTLS or SSL 3. If you're trying to use STARTTLS or SSL please let me know what ports and how the mail client/script is configured Thank you.

    0
  • cPanelLauren
    Hello @Mohammed Sufian Shaikh The easiest way to set up your mail client to use SSL/TLS is to go to cPanel>>Email>>Email Accounts -> Connect devices From this UI you will find not only the autoconfig scripts but the settings you'll need to configure your mail client. For SSL/TLS:
    • IMAP Port: 993
    • POP3 Port: 995
    • SMTP Port: 465
    You must also ensure that these ports are open on your server.
    0

Please sign in to leave a comment.