I have a domain where I set the DNS to point to the A record for the IP of my VPS and the record MX point to another server. What happens is that I installed postfix to send mail through PHP, but when I send a message to an email from this domain it will not for the server that is configured in the DNS MX record. If I place the domain in the settings of mydestination in the postfix config file, email is going to /var/mail, if I take away the domain of settings file it just does not do anything.
Someone can help me?
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.
Click below to sign up and get $100 of credit to try our products over 60 days!