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.

Is there a dead easy way to set up an MTA to only redirect incoming mail

user@mydomain.com -> myCheapGmailAccount@gmail.com

Yes, I've tried various postfix guides but I'm lost in configuration.

Host: fresh debian

Thanks,

share|improve this question

1 Answer 1

up vote 3 down vote accepted

You set your virtual_alias_maps to a file:

postconf -e virtual_alias_maps=hash:/etc/postfix/virtual

Then you put in the file:

user@mydomain.com myCheapGmailAccount@gmail.com

you need to active the change now:

postmap hash:/etc/postfix/virtual

That is all.

share|improve this answer
    
Big thanks, ;-) –  user65297 May 10 '12 at 13:27

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.