markooff Posted October 26, 2023 Share Posted October 26, 2023 (edited) 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: 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! " 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 - (starting grom EHLO message from SMTP server) and the "follow on tcp stream" listing looks like : 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 October 27, 2023 by markooff --- (see edit history) Link to comment Share on other sites More sharing options...
markooff Posted October 28, 2023 Author Share Posted October 28, 2023 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now