Since upgrading to www/php56, I can no longer use "localhost" as my "SMTP Host" when setting up mail settings in PHP scripts or forum software. When I do, I receive the following error :
Postfix is running on the same server as my webserver, and my server's hostname is set to "localhost".
When I attempt to change my "SMTP Host" to mail.example.com, I receive the following error :
Now I didn't want to mess with anything further without asking first - as I'm afraid I'll set something wrong and my mail server will end up being an open relay.
Any help would be greatly appreciated!
Code:
Email to xxx@gmail.com failed: stream_socket_enable_crypto(): Peer certificate CN=`mail.example.com' did not match expected CN=`localhost'
When I attempt to change my "SMTP Host" to mail.example.com, I receive the following error :
Code:
Email to xxx@gmail.com failed: 5.5.2 <localhost>: Helo command rejected: need fully-qualified hostname
Any help would be greatly appreciated!