Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I have a Postfix email setup. It's handle a few domains (i.e. I have them in my mynetworks in my main.cf). I have a normal unix account and use that to log in, and get my mail. My personal email account is of the form user@personal.com. I have a new domain new.com, and I want to forward info@new.com to user@personal.com, however I don't want to forward info@personal.com.

Someone has suggested just forwarding all 'info' to 'user', and then using procmail on my user@ account to remove the info@personal.com

The server is Ubuntu.

share|improve this question

1 Answer 1

up vote 2 down vote accepted

You can use the /etc/postfix/virtual files to define individual email address mappings. For this to work, you need two more lines in main.cf:

virtual_alias_domains = new.com
virtual_alias_maps = hash:/etc/postfix/virtual

Now add a line like

info@new.com user@personal.com

to /etc/postfix/virtual then run

postmap /etc/postfix/virtual

and restart Postfix.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.