How to Accept Emails on the Server and Forward them to Another Email Address

Posted June 5, 2020 3k views


We need to have corporate emails like and forward all incoming emails to another address.

To do it I have configured Postfix according to this article:

Also, in DigitalOcean account added DNS records like this:
A record: => [site IP]
MX record: => (priority 10)
And checked that MX records are correct using different services.

After this when I send emails to from the server (using PHP mail() function) redirect to another address works great, but when I send external emails to 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!

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.

Submit an Answer
1 answer

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 :


by Nestor de Haro
In this tutorial we are going to configure a mail server using Postfix, Dovecot, MySQL, and SpamAssassin on Ubuntu 12.04.