Jump to content

SMTP Authorization Problem while sending an e-mail (a bug maybe?) - PS 1.7.8.9


markooff

Recommended Posts

Hello Guys :)

I've just spotted a new (maybe new) problem with Prestashop 1.7 - with using SMTP protocol and one of mine MTA servers . My (testing) PS 1.7.8.9 environment was build on Centos 7.9 and Apache/2.4.6 (CentOS) PHP/7.4.33 and MySQL version: 5.5.68-MariaDB . I have just started testing the functionality of sending emails and customer contact modules - using one of my domains (e-nutka.pl) and the ESMTP Postfix-based mail server operating within this domain.

My test environment was installed and configured using one e-mail adres - [email protected] - but now, for testing purposes I want to use several other e-mail adresses - created especially for this occasion in production environment. One of them is - listed below e-mail adress for Customer Service - [email protected]

Below I present my current configuration of e-mail addresses as well as the configuration of the SMTP protocol:
 

2023-10-26_23_19_05-Contacts_-_e-nutka.pl__Opera.thumb.jpg.75ef5f99b721c63f181ef85ac742da35.jpg

 

2023-10-26_23_24_17-email_options_01.thumb.jpg.aa0d9d7571c0241842f86145676c733b.jpg

 

2023-10-26_23_25_39-email_options_02.thumb.jpg.903bd15bb5bc4775b41d730515050499.jpg

 

And now - when I try to - using this form - send a test e-mail to my first e-mail ([email protected]) I get an error message saying:

"ERROR: Please check your configuration! " 

2023-10-26_23_26_53-.proba_wysylania_wiadomosci_testowej01png.thumb.jpg.5470d148f77f1b2261bc373b27b98034.jpg

I've checked my smtp configuration (many times) - and when I use it in my MAIL CLIENT (e.g. Mozilla Thunderbird ) - everything works all right :) - but when I try to use the Prestashop as a mail client which tries to send an e-mail using smtp merhod - I always get the same error. 


But going a bit deeper - I grab the whole traffic from this machine on which I have my Prestashop installed - and when I open the .pcap files in Wireshark and analize the whole tcp(smtp) stream - 


2023-10-26_23_28_44-mail_enutka_04_mark_Wireshark_packet_listing.thumb.jpg.4438c78fdf6fd841a74c0019fafd6bf3.jpg

(starting grom EHLO message from SMTP server) 

and the "follow on tcp stream" listing looks like

2023-10-26_23_29_27-mail_enutka_04_mark_follow_tcp_stream.thumb.jpg.b0a4ed23b053c6027e20dd524707dd87.jpg
 

it turnes out that Prestashop mail-to function HAS ALWAYS a problem - while entering the < MAIL FROM: Header > in which it still tries to use the inproper e-mail address ([email protected])instead of the proper address which in that case should be - [email protected]
And - in result I always get the 553.5.7.1 error code as the reply from MTA (which is quite uderstable in such situation) 

So it looks like - the problem of malfunction of the smtp method in Prestashop 1.7.xx - is wrong authentication and wrong mail header construction -  which in more secured servers (MTAs) which test and validate the MAIL FROM HEader against the sernder e-mail address (and  perform some domain possesion/mapping validation also) . 

 

Have you ever encountered such a situation and is there a known solution? :) 

 

Regards 

markooff

Edited by markooff
--- (see edit history)
Link to comment
Share on other sites

Today I've tested THIS ISSUE with the newest version of Prestashop 1.7 (1.7.8.10 ) 

- and THERE'S THE SAME SITUATION !! 

The mechanism for sending e-mails - using the SMTP method - IS STILL BROKEN ,
because PS still tries to authenticate with the proper mail addresss (username valid for sending emails) 
BUT then - it tries to send e-mail WITH THE WRONG < MAIL FROM : > HEADER - which obviously results in error 553.5.7.1 on every properly configured MTA !!!

 

Could You Guys - work a bit on this problem ?? :) 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...