LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 02-27-2012, 01:30 AM   #1
onsorg
LQ Newbie
 
Registered: Nov 2009
Posts: 5

Rep: Reputation: 0
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.
 
Old 02-27-2012, 03:01 AM   #2
lithos
Senior Member
 
Registered: Jan 2010
Location: SI : 45.9531, 15.4894
Distribution: CentOS, OpenNA/Trustix, testing desktop openSuse 12.1 /Cinnamon/KDE4.8
Posts: 1,144

Rep: Reputation: 217Reputation: 217Reputation: 217
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
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
how to make postfix send email to another postfix in local network (LAN)? h4k33m Linux - Server 9 06-04-2015 04:33 PM
copy and forward email to multiple email servers using postfix haleem Linux - Newbie 1 12-31-2009 04:28 AM
Postfix, forwarding a copy of email based on header ncicovic Linux - Software 3 06-05-2009 08:06 AM
Email server running Postfix will not accept email... trekgirl Linux - Server 12 03-04-2009 01:43 AM
How do I configure postfix master to forward all email to an email server ? hello321_1999 Linux - Software 1 11-18-2004 04:43 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 11:22 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration