LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   Postfix: Email forwarding (https://www.linuxquestions.org/questions/linux-server-73/postfix-email-forwarding-931494/)

onsorg 02-27-2012 01:30 AM

Postfix: Email forwarding
 
I have a VPS that runs LAMP. Apache works ok, I can see all my five domains. But now I would like to get emails from those domains, but as a email forwarding. Like catch-all@domain1.com, catch-all@domain2.com etc and they all point to mygoogleaccount@gmail.com. Is postfix best way to do this?

I don't want the mail service do anything els at my VPS. Just to work as a email forwarding.

I tried to google, but all I found was virtual mailbox.

lithos 02-27-2012 03:01 AM

Hi,

Could you follow this example and set up Postfix.

Code:

# Mapping is done using /etc/postfix/virtual file.
# vi /etc/postfix/virtual

# Append code as follows, replacing domain and emailusername with actual values:
# @yourdomain.com emailusername

@domain1.com  mygoogleaccount@gmail.com
@domain2.com  mygoogleaccount@gmail.com

good luck


All times are GMT -5. The time now is 12:08 PM.