Jump to content

L2K

Member
  • Posts

    3
  • Joined

  • Last visited

Posts posted by L2K

  1. Actually as I browsed this forum it seems that 4 out of every 5 threads I visit contains spam of some description so not really instilling much confidence in CubeCart at all. I haven't actually used CC for a while, still have a few older shops that I paid for that I need to go and update/upgrade but after seeing the state of the official support forums I feel I should stick with WooCommerce. 

  2. 8 minutes ago, bsmither said:

    Hopefully, your hosting provider's technical support can determine why the SSL Certificate mismatch is happening.

    I know why it's happening, the certificate is only for *.interdns.co.uk, usually this isn't an issue and the client will add an exception. Not all do, so I use plain SMTP instead but this still doesn't work with CubeCart.  

    I have Joomla and Wordpress using PHP mail() and SMTP on various other accounts on the same host so I don't think the issue is with the host.

    10 minutes ago, bsmither said:

    The test result message uses the website's FQDN (which is held in the constant CC_STORE_URL) as part of the example email address. (It's a bit misleading, for sure.)

    Ah. So it's just for this error message? Was wondering if that variable is sent to the server during the auth process for whatever reason. Overcomplicating it a bit but could probably strip the www. off using another statement in the error message script.

  3.  

    Quote

     

    Technical Details

    CubeCart Version
    6.5.1
    PHP Version (7.3 Recommended)
    8.0.28
    MySQL Version
    5.7.29-0ubuntu0.16.04.1
    Server Software
    Apache

     

     

    Pretty much as per title, no amount of setting any combination of anythong available works. I have other things on the same host using PHP mail and many many things use my own hosts SMTP servers and I even tried using Gmail SMTP, all with plain SMTP and TLS/SSL and either I have issues with the domain name mismatch for the security (SSL cert for hosts email server is in their name but CC won't connect to their server (een though it is the same server behind their FQDN as is behind mine). Gmail also fails with unable to authenticate and PHP mail() just fails. I've turned debuggin up to 4 and still have nothing useful in the logs. I cannot see what CC is doing. 

    This is the log when using my own server with TLS which is what I want to do and do do elsewhere (so I know the server works). Just appears CC won't add an exception.

    Testing SMTP with TLS - Fail
    2023-05-10 20:13:01 Connection: opening to smtp.mydomain.co.uk:2500, timeout=300, options=array()
    2023-05-10 20:13:01 Connection: opened
    2023-05-10 20:13:01 SMTP INBOUND: "220 smtp3.interdns.co.uk ESMTP"
    2023-05-10 20:13:01 SERVER -> CLIENT: 220 smtp3.interdns.co.uk ESMTP
    2023-05-10 20:13:01 CLIENT -> SERVER: EHLO www.mydomain.co.uk
    2023-05-10 20:13:01 SMTP INBOUND: "250-smtp3.interdns.co.uk"
    2023-05-10 20:13:01 SMTP INBOUND: "250-STARTTLS"
    2023-05-10 20:13:01 SMTP INBOUND: "250-PIPELINING"
    2023-05-10 20:13:01 SMTP INBOUND: "250-8BITMIME"
    2023-05-10 20:13:01 SMTP INBOUND: "250-AUTH LOGIN PLAIN"
    2023-05-10 20:13:01 SMTP INBOUND: "250 SIZE 26214400"
    2023-05-10 20:13:01 SERVER -> CLIENT: 250-smtp3.interdns.co.uk250-STARTTLS250-PIPELINING250-8BITMIME250-AUTH LOGIN PLAIN250 SIZE 26214400
    2023-05-10 20:13:01 CLIENT -> SERVER: STARTTLS
    2023-05-10 20:13:01 SMTP INBOUND: "220 ready for tls"
    2023-05-10 20:13:01 SERVER -> CLIENT: 220 ready for tls
    2023-05-10 20:13:01 Connection failed. Error #2: stream_socket_enable_crypto() [<a href='http://docs.php.net/manual/en/function.stream-socket-enable-crypto.php'>function.stream-socket-enable-crypto.php</a>]: Peer certificate CN=`*.interdns.co.uk' did not match expected CN=`smtp.mydomain.co.uk' [/home/switchlec/public_html/admin/pos/classes/PHPMailer/src/SMTP.php line 467]
    SMTP Error: Could not connect to SMTP host.
    2023-05-10 20:13:01 CLIENT -> SERVER: QUIT
    2023-05-10 20:13:01
    2023-05-10 20:13:01
    2023-05-10 20:13:01
    2023-05-10 20:13:01
    2023-05-10 20:13:01
    2023-05-10 20:13:01 Connection: closed
    SMTP connect() failed.

    Also possibly related, and would be nice if I could get to the bottom of this error anyway, when using the PHP mail() function (which fails) it gives me this in the error message 

    Quote

    We recommend using an email address from a domain hosted on this server such as [email protected] for example and this may need to be setup form within your web hosting account.

    Where is it getting the email address from (which is clearly wrong)? I can't seem to find this anywhere.

×
×
  • Create New...