Hello,
We need to have corporate emails like info@example.com 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 info@example.com from the server (using PHP mail() function) redirect to another address works great, but when I send external emails to info@example.com 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?
Thank you!
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!
Hi @doronwolffberg,
Yes, you’ll need Postfix in order to forward mails and the article mentioned is indeed the proper one.
As for the messages not being received. You’ll need to configure a mailbox and dovecot on your Droplet first before you can receive a message. You can follow this tutorial to achieve that :
Regards, KDSys
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.