PHP mail function send mails only to Zoho

August 26, 2016 137 views
Email Ubuntu 16.04

Hi everybody.
I have two sites in my droplet that have MX records for zoho mail and have configured postfix according to this video : [](http://) . PHP function mail work nice and they send emails to my zoho account.

When though I change mail($to, $subject, $message, $headers); the $to variable to let's say nothing happens.Probably something has to do with MX records.

Since I have clients that have their own emails I want with a simple PHP form from their site to be able to receive emails to their yahoo gmail or anything else.

Should I install PHP mailer or do something different to postfix?The email services like zoho,gmail etc will do everything I m not going to make my droplet an email server.

1 Answer

I think I made it working.Just added the yahoo MX record and a mail A record for domain.

Have another answer? Share your knowledge.