PDA

View Full Version : [ubuntu] Postfix -> One to many email account


lotsofish
May 2nd, 2008, 01:16 PM
I have set up a web server which is going to be hosting a few domains on a VPS running Hardy and I set up Postfix (minus the AV so far) according to these directions: https://help.ubuntu.com/community/PostfixVirtualMailBoxClamSmtpHowto

Now I can add email accounts for each of the domains and connect through pop to receive the mail just fine.

What I am going to need to do is set up a one to many email alias. For example:
info@domain.com gets forwarded to andrew@domain.com, bill@domain.com, charlie@otherdomain.com

I've tried various changes through /etc/aliases, /etc/postfix/virtual (adding virtual_alias_maps to main.cf) but I can't get it worked out.

Any help would be appreciated!

lotsofish
May 2nd, 2008, 03:25 PM
Got it... You have to create the user account first before you can set up the virtual aliases.

So, once I created info@domain.com adding the following line to the virtual_alias_maps file forwarded the mail correctly.

info@domain.com andy@otherdomain.com,bob@thirddomain.com