Tag Info

Hot answers tagged


You should be configuring phpmailer to connect to localhost, not to the hostname of the machine (which will then use its external IP address to connect). Localhost is allowed to relay mail through postfix by mynetworks, but when you connect with the hostname it's via the public IP address, which is not allowed to relay.

Only top voted, non community-wiki answers of a minimum length are eligible