Report this

What is the reason for this report?

How I set the php mail function for multiple domains correctly?

Posted on October 8, 2014

Hello,

Sometime ago I install the mail (php function), but when I tried to send the email by any HTML form the response was too slow. I solved the problem editting the /etc/hosts file with a correct FQDN.

I am using multiple domains (Virtual Host), and this week when I was installing another site I checked that the mails is sending slow again. How can i fix it again?

My /etc/hosts are:

127.0.0.1 localhost.localdomain localhost
127.0.1.1 rioth.maindomain.me maindomain
162.243.11.116 rioth.maindomain.me maindomain
162.243.11.116 mail.anotherdomain.com mail
162.243.11.116 mail.otherdomain.co mail

Regards,

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Start building today

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.