We need to have corporate emails like firstname.lastname@example.org and forward all incoming emails to another address.
To do it I have configured Postfix according to this article: https://simonward.net/configure-postfix-email-forwarding/
Also, in DigitalOcean account added DNS records like this: A record: mail.example.com => [site IP] MX record: example.com => mail.example.com (priority 10) And checked that MX records are correct using different services.
After this when I send emails to email@example.com from the server (using PHP mail() function) redirect to another address works great, but when I send external emails to firstname.lastname@example.org from other addresses the server does not accept these emails and the redirect does not work.
Is it possible that DigitalOcean blocking something?
Could you please recommend a way of how to accept emails on the server and forward them to another email address?
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 $200 of credit to try our products over 60 days!