PDA

View Full Version : [ubuntu] Email Forwarding



fortune2008
April 14th, 2010, 07:20 AM
I have like 40 email accounts fro all 10 of my domains and i'd like to know how can i forward say like all the admin@mywebsite.com and like admin@site2.com to one email so i can read them from one email

volkswagner
April 14th, 2010, 01:13 PM
You should include some information on your current setup.

Sounds like you can use the alias directive.

HermanAB
April 14th, 2010, 02:55 PM
fetchmail and nullmailer?

fortune2008
April 14th, 2010, 04:12 PM
The setup i used is
How to set up a mail server on a GNU / Linux system (http://flurdy.com/docs/postfix/)

volkswagner
April 14th, 2010, 04:16 PM
So you can use the alias directive from the how to.

http://flurdy.com/docs/postfix/#data_add

ruuden
April 14th, 2010, 08:43 PM
I use postfix and cyrus imap and in /etc/postfix/main.cf I have this line for alias for the mail accounts in imap:


virtual_alias_maps = hash:/etc/postfix/virtual_aliasThe virtual alias file should look something like this:


info@example.com ruuden@example.com
postmaster@example.com ruuden@example.com
webmaster@example.com ruuden@example.com

info@example.net ruuden@example.net
postmaster@example.net ruuden@example.net
webadmin@example.net ruuden@example.net

ruuden
April 14th, 2010, 11:18 PM
If you have several domains that need many aliases it might make sense to create one lookup table for each domain, you can just separate the tables with a comma like this in /etc/postfix/main.cf


virtual_alias_maps = hash:/etc/postfix/virtual_alias_example.net,hash:/etc/postfix/virtual_alias_example.com