Cannot send email by ssl/tls without allow self-signed cert options (ISPconfig 3.1, debian 9.1)

Discussion in 'Installation/Configuration' started by brisk, Sep 13, 2017.

  1. brisk

    brisk Member

    I am using PHPMailer to send contact us emails, so ssl/tls are not working unless I allow self-signed certificates.

    I came from CPanel... I don't remember I purchased a certificate for it (maybe I was wrong).

    So how to resolve this?

    BTW this is the option I had to use to get it working:

    Code:
     $mail->SMTPOptions = array(
        'ssl' => array(
            'verify_peer' => false,
            'verify_peer_name' => false,
            'allow_self_signed' => true
        )
    );
    
    Also if I have to purchase certificates, do I have to purchase many? since I have 10+ sites that is a lot of money... or can I use certificates from the generated (by ISPConfig) letsencrypt?

    thanks
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    https://www.howtoforge.com/communit...l-port-8080-with-lets-encrypt-free-ssl.75554/

    and the mail system has just one ssl cert, not many, and this cert is issued on the server hostname and you use the server hostname to connect to the server and not the client domain name. But normally you would use localhost with smtp (not smtps) anyway as the emails do not go over the external network when the website is hosted on the same server.
     
  3. brisk

    brisk Member

    Thanks! I will use localhost thanks again!
     

Share This Page