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