If this is your first visit, check our documentation. To post, register or login.
Forums / Configuring the Zen Cart Admin / Basic Configuration / smtpauth not working for me.

smtpauth not working for me.

Started by pixelpadre on 1 Dec 2021, 11:17 PM · Views: 3,222

Results 1 to 10 of 10
1 Dec 2021, 11:17 PM
#1
pixelpadre avatar

pixelpadre

Suspended

Join Date:
Jun 2007
Location:
Eustis, Florida, USA, EARTH
Posts:
868
Plugin Contributions:
0

smtpauth not working for me.

debug log

[01-Dec-2021 18:03:13 America/New_York] CLIENT -> SERVER: STARTTLS

[01-Dec-2021 18:03:13 America/New_York] SMTP INBOUND: "220 2.0.0 Ready to start TLS"
[01-Dec-2021 18:03:13 America/New_York] SERVER -> CLIENT: 220 2.0.0 Ready to start TLS

[01-Dec-2021 18:03:13 America/New_York] Connection failed. Error #2: stream_socket_enable_crypto(): SSL operation failed with code 1. OpenSSL Error messages:
error:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failed [/home/scanmyid/public_html/lakeservers.com/includes/classes/vendors/PHPMailer/src/SMTP.php line 428]
[01-Dec-2021 18:03:13 America/New_York] SMTP Error: Could not connect to SMTP host.
[01-Dec-2021 18:03:13 America/New_York] CLIENT -> SERVER: QUIT

[01-Dec-2021 18:03:13 America/New_York] SMTP INBOUND: "M
[01-Dec-2021 18:03:13 America/New_York] SMTP INBOUND: "ýœI;£i2»È³é8Û%¡V‘0q›xß"xÍ:KžvÙ¨_Úε{jŒÓj>Í´ý²Ml Bk¥Ÿ‡“ôÌE@EpRªòœ^üÌhÍ~QW!OÈ'—
[01-Dec-2021 18:03:13 America/New_York] SERVER -> CLIENT: M
[01-Dec-2021 18:03:13 America/New_York] SMTP ERROR: QUIT command failed: M
[01-Dec-2021 18:03:13 America/New_York] Connection: closed
[01-Dec-2021 18:03:13 America/New_York] SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting
[01-Dec-2021 18:03:13 America/New_York] PHP Notice: Email Error: SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting<br /> in /home/*****/includes/functions/functions_email.php on line 387

PHP works fine but smtpauth is not working for me. Nor is smtp

ZC v1.5.7 "I was so much older then...I'm younger than that now" Cut the umbilical cord with webhosts after 20 years. FREEDOM!

2 Dec 2021, 1:57 PM
#2
pixelpadre avatar

pixelpadre

Suspended

Join Date:
Jun 2007
Location:
Eustis, Florida, USA, EARTH
Posts:
868
Plugin Contributions:
0

Re: smtpauth not working for me.

mail error log from my server below.

Dec 2 08:15:15 server postfix/smtpd[404]: connect from server.foreveryours.us[45.33.10.132]
Dec 2 08:15:15 server postfix/smtpd[404]: TLS SNI mail.lakeservers.com from server.foreveryours.us[45.33.10.132] not matched, using default chain
Dec 2 08:15:15 server postfix/smtpd[404]: SSL_accept error from server.foreveryours.us[45.33.10.132]: 0
Dec 2 08:15:15 server postfix/smtpd[404]: warning: TLS library problem: error:14094415:SSL routines:ssl3_read_bytes:sslv3 alert certificate expired:s3_pkt.c:1493:SSL alert number 45:
Dec 2 08:15:15 server postfix/smtpd[404]: lost connection after STARTTLS from server.foreveryours.us[45.33.10.132]
Dec 2 08:15:15 server postfix/smtpd[404]: disconnect from server.foreveryours.us[45.33.10.132] ehlo=1 starttls=0/1 commands=1/2

ZC v1.5.7 "I was so much older then...I'm younger than that now" Cut the umbilical cord with webhosts after 20 years. FREEDOM!

2 Dec 2021, 2:15 PM
#3
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,142
Plugin Contributions:
56

Re: smtpauth not working for me.

pixelpadre:

mail error log from my server below.

Dec 2 08:15:15 server postfix/smtpd[404]: connect from server.foreveryours.us[45.33.10.132]
Dec 2 08:15:15 server postfix/smtpd[404]: TLS SNI mail.lakeservers.com from server.foreveryours.us[45.33.10.132] not matched, using default chain
Dec 2 08:15:15 server postfix/smtpd[404]: SSL_accept error from server.foreveryours.us[45.33.10.132]: 0
Dec 2 08:15:15 server postfix/smtpd[404]: warning: TLS library problem: error:14094415:SSL routines:ssl3_read_bytes:sslv3 alert certificate expired:s3_pkt.c:1493:SSL alert number 45:
Dec 2 08:15:15 server postfix/smtpd[404]: lost connection after STARTTLS from server.foreveryours.us[45.33.10.132]
Dec 2 08:15:15 server postfix/smtpd[404]: disconnect from server.foreveryours.us[45.33.10.132] ehlo=1 starttls=0/1 commands=1/2
Looks like the email server's SSL certificate has expired.

2 Dec 2021, 4:26 PM
#4
pixelpadre avatar

pixelpadre

Suspended

Join Date:
Jun 2007
Location:
Eustis, Florida, USA, EARTH
Posts:
868
Plugin Contributions:
0

Re: smtpauth not working for me.

lat9:

Looks like the email server's SSL certificate has expired.

But ssllabs gives me an "A" rating for the mail server.
https://www.ssllabs.com/ssltest/analyze.html?d=mail.lakeservers.com

ZC v1.5.7 "I was so much older then...I'm younger than that now" Cut the umbilical cord with webhosts after 20 years. FREEDOM!

2 Dec 2021, 4:35 PM
#5
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,142
Plugin Contributions:
56

Re: smtpauth not working for me.

If you look at other elements of that log, it's server.foreveryours.us that the message is logged against. Perhaps your email isn't set up properly?

2 Dec 2021, 4:52 PM
#6
pixelpadre avatar

pixelpadre

Suspended

Join Date:
Jun 2007
Location:
Eustis, Florida, USA, EARTH
Posts:
868
Plugin Contributions:
0

Re: smtpauth not working for me.

A rating with cert for server.foreveryours.us also.

Im not having a problem with smtp auth using thunderbird.

ZC v1.5.7 "I was so much older then...I'm younger than that now" Cut the umbilical cord with webhosts after 20 years. FREEDOM!

2 Dec 2021, 6:14 PM
#7
pixelpadre avatar

pixelpadre

Suspended

Join Date:
Jun 2007
Location:
Eustis, Florida, USA, EARTH
Posts:
868
Plugin Contributions:
0

Re: smtpauth not working for me.

lat9:

Looks like the email server's SSL certificate has expired.

(yum update ca-certificates -y) Fixed the expiration issue but still no joy.

Dec 2 13:10:11 server postfix/smtpd[22394]: connect from server.foreveryours.us[45.33.10.132]
Dec 2 13:10:11 server postfix/smtpd[22394]: TLS SNI mail.lakeservers.com from server.foreveryours.us[45.33.10.132] not matched, using default chain
Dec 2 13:10:11 server postfix/smtpd[22394]: Anonymous TLS connection established from server.foreveryours.us[45.33.10.132]: TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)
Dec 2 13:10:11 server postfix/smtpd[22394]: lost connection after STARTTLS from server.foreveryours.us[45.33.10.132]
Dec 2 13:10:11 server postfix/smtpd[22394]: disconnect from server.foreveryours.us[45.33.10.132] ehlo=1 starttls=1 commands=2

ZC v1.5.7 "I was so much older then...I'm younger than that now" Cut the umbilical cord with webhosts after 20 years. FREEDOM!

3 Dec 2021, 1:58 PM
#8
pixelpadre avatar

pixelpadre

Suspended

Join Date:
Jun 2007
Location:
Eustis, Florida, USA, EARTH
Posts:
868
Plugin Contributions:
0

Re: smtpauth not working for me.

Not sure why there is a mismatch in the chain. But setting the smtpauth to server.foreveryours.us eliminated the mismatch and mail was sent successfully.

ZC v1.5.7 "I was so much older then...I'm younger than that now" Cut the umbilical cord with webhosts after 20 years. FREEDOM!

4 Dec 2021, 10:54 PM
#9
pixelpadre avatar

pixelpadre

Suspended

Join Date:
Jun 2007
Location:
Eustis, Florida, USA, EARTH
Posts:
868
Plugin Contributions:
0

Re: smtpauth not working for me.

pixelpadre:

Not sure why there is a mismatch in the chain. But setting the smtpauth to server.foreveryours.us eliminated the mismatch and mail was sent successfully.

https://blog.devgenius.io/rhel-centos-7-fix-for-lets-encrypt-change-8af2de587fe4

ZC v1.5.7 "I was so much older then...I'm younger than that now" Cut the umbilical cord with webhosts after 20 years. FREEDOM!

7 Dec 2021, 12:15 PM
#10
pixelpadre avatar

pixelpadre

Suspended

Join Date:
Jun 2007
Location:
Eustis, Florida, USA, EARTH
Posts:
868
Plugin Contributions:
0

Re: smtpauth not working for me.

postfix/main.cf question:

network settings

inet_interfaces = all
mydomain = yourdomain.com <-----------------------does this matter? This is the default postfix settings
myhostname = server.companiondriver.com
mynetworks = $config_directory/mynetworks
mydestination = $myhostname = server.companiondriver.com
relay_domains = proxy:mysql:/etc/postfix/mysql-relay_domains_maps.cf

ZC v1.5.7 "I was so much older then...I'm younger than that now" Cut the umbilical cord with webhosts after 20 years. FREEDOM!