The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

SSL SMTP on port 465

Discussion in 'E-mail Discussions' started by rs-freddo, Feb 11, 2005.

  1. rs-freddo

    rs-freddo Well-Known Member

    Joined:
    May 13, 2003
    Messages:
    832
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    Australia
    cPanel Access Level:
    Root Administrator
    I want to send email via SSL. I have opened port 465 and can send mail fine. However I get a certificate error. I am connecting to my server name as outgoing email address, which has it's own certificate. However Port 465 uses a completely different certificate. Anybody know where the certificate might be located and what commands can be used to view it????
     
  2. rs-freddo

    rs-freddo Well-Known Member

    Joined:
    May 13, 2003
    Messages:
    832
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    Australia
    cPanel Access Level:
    Root Administrator
    Found the answer for anyone else that doesn't want to send their email password in plaintext to SMTP.

    The key and CRT are /etc/exim.crt and /etc/exim.key

    To get SSL SMTP working correctly:
    cd /etc
    mv exim.crt exim.crt.backup
    mv exim.key exim.key.backup
    cp /usr/local/ssl/private/[hostname].key exim.key
    cp /usr/share/ssl/certs/[hostname].crt exim.crt
    chown mailnull.mail exim.crt
    chown mailnull.mail exim.key
    chmod 600 exim.crt
    chmod 600 exim.key

    In your email client set your outgoing server as [hostname]
    set your outgoing server to use SSL and set the Port to 465.
    Make sure 465 is open in your firewall.
     
  3. markhard

    markhard Well-Known Member

    Joined:
    Apr 22, 2004
    Messages:
    250
    Likes Received:
    0
    Trophy Points:
    16
    does SSL SMTP also encrypt email that send through port 465?
     
  4. rs-freddo

    rs-freddo Well-Known Member

    Joined:
    May 13, 2003
    Messages:
    832
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    Australia
    cPanel Access Level:
    Root Administrator
    It encrypts your email from the client to the server. It's plain text after that.
     
  5. markhard

    markhard Well-Known Member

    Joined:
    Apr 22, 2004
    Messages:
    250
    Likes Received:
    0
    Trophy Points:
    16
    PHP:
    sending mail messages 1 messages in queue
    Initiating TLS handshake
    Certificate S
    /N0algorithmRSA (1024 bits), issued from 11 Feb 2005 to 28 Jun 2032, for 1 host(s): name.host.net.
    OwnerUSUnknownUnknownUnknownUnknownname.host.net, [email]ssl@cpanel.net[/email].
    This certificate is self-issued.
    TLS handshake complete
    connected to SMTP server
    authenticating 
    (plain)...
    sending message to ***@yahoo.com
    Owner: US, Unknown, Unknown, Unknown, Unknown, name.host.net

    how to edit the certificate details, so it's not show 'Unknown'?

    Freddo, why my email client (The Bat) still using plain authentication? i found MD5 authentication option for SMTP, but it can't be used, always giving error messages that authentication method is not found.

    Code:
    authenticating (plain)...
     
    #5 markhard, Feb 14, 2005
    Last edited: Feb 14, 2005
  6. rs-freddo

    rs-freddo Well-Known Member

    Joined:
    May 13, 2003
    Messages:
    832
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    Australia
    cPanel Access Level:
    Root Administrator
    Plain authentication under SSL is fine.

    As per my instructions just copy one that isn't unknown.
     
  7. renchler

    renchler Member

    Joined:
    May 6, 2004
    Messages:
    17
    Likes Received:
    0
    Trophy Points:
    1
    Thanks

    THANK YOU very much for this, it saved me.
     
Loading...

Share This Page