Totally Zenned
- Join Date:
- Dec 2004
- Posts:
- 1,024
- Plugin Contributions:
- 0
smtpauth and PHP Version: 5.2.17 (Zend: 2.2.0) issues
I have been trying to resolve intermittent problems with the smtpauth email feature from zen 1.5.1 on PHP Version: 5.2.17 (Zend: 2.2.0) Server OS: Linux 2.6.18-194.26.1.el5
I've configured email settings in admin in various combinations of email address FROM and SMTP the same or different to test it out but non works consistently. It can work for days until I discover that I can't sent emails through zen when I update order status. Same if I use the internal email feature via admin. To make emails go out I switch to PHP send method for a day or so, then I go back to smtpauth and it works again. Chasing ghosts! My hosting company is trying to asssist but they can't find anything in the logs and monitoring tools. They suspect an incompatibility of Zen and PHP version. See answer from them further below. Please let me know if this has been reported before?
Setting example and error:
Email Address (sent FROM) [email protected]
SMTP Email Account Mailbox [email protected]
Error ERROR: Failed sending email to: "name" with subject: "Order Update #1" The following From address failed: [email protected]
Host answer:
We went and re-looked this over and still the same results. dovecot (/usr/sbin/dovecot) running with PID 2886 (pidfile check method) came back successfully without issues. That said, we believe the versions of PHP and 1.5.1 are conflicting together and is the reason for issues. That said, another website we maintain which is owned by the Operations Manager was moved to this server for personal testing and that website also did not show what your explaining, even though once or twice it would not send but for the last 2 hours no problems have shown up.. Even though webmail and email clients are not problematic this is not from the server that is causing this issue. It is directly on ZenCart code that is causing the issue.
As using PHP for email method. It is not a major security risk but what is major risk is that your domain or email accounts risk highly getting blocked by email providers due to the PHP method does not send out proper headers. the RWL (Realtime Whitelist validation) would not be passed to the email carrier like yahoo.com, live.com etc. As a legit email and it would be sent in a format where it looks like spam. There is no domain validation for PHP mail.
At this current time we believe it is the conflict between ZenCart code and php version that is conflicting not the actual server itself as the server it self does not show any failures with SMTP when directly connected from the server.
I cannot find the link to the SMTP patch but here is a few others that were reported. https://www.google.com/#q=Creating+default+object+from+empty+value+in+authorizenet_aim.php+on+line+439
End Host answer.
Ok, so what is the cause of this behavior? All was tested with an out of the box zen install with no mods as my host first suggested the cause was some kind of mod in my live shops causing this strange behavior. That is now ruled out. Again, this all works fine for a few days then suddenly stops working and without any changes will work again later.
Live and learn... the Zen way.