Basic mail question(s) for - Forwarding

I have the latest Ubuntu LTS droplet. It has the basic LAMP components. For a client I need to do the following two things (let’s assume the FQDN =

  1. I need all mail sent to forwarded to

  2. I have a few simple php form to email scripts. Standard stuff. I need the form input upon submission to be sent to

I was hopping I could do this with just postfix, can I or do I have to use sendmail?

Thanks for any help!


Submit an 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.

Welcome to DigitalOcean.

You can do this with Postfix. This is a really good Tutorial Linode - Email with Postfix, Dovecot and MySQL.

You need to create a virtual_aliases Email.

I know this is not from DigitalOcean and mabye somebody would kill me for this ;-).

PS: If it works show me some love and click the hearth

Thanks, eldin!