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 set up Postfix/Dovecot with MySQL on a Linode instance from this tutorial, and I am now trying to forward all email that comes to someaddress@mydomain.com to anotheraddress@anotherdomain.com automatically. For some reason, even after extensive Googling I can't find a guide on how to do that with that particular setup. Does anyone know how?

share|improve this question

1 Answer 1

You have to certify that you have an alias_map or alias_database entry in your main.cf:

alias_database = hash:/etc/aliases

then, inside that file set you alias as desired:

someaddress:    anotheraddress@anotherdomain.com

after that run newaliases and you are good to go.

share|improve this answer
    
Thanks, but this didn't seem to work. Since I have Postfix set up with MySQL, aren't aliases set up through there? Nothing I changed in /etc/aliases seemed to work, even after restarting the Postfix service. –  Davis Sorenson Mar 17 '13 at 19:43
    
Can you post your postconf -n? Have you tried with alias_map? –  fboaventura Mar 17 '13 at 23:07
    
Here's my postconf -n: pastebin.com/a4VJ2PWR I tried with both alias_database and alias_maps –  Davis Sorenson Mar 18 '13 at 7:34
    
Have you checked the file mysql-virtual_email2email.cf and the table associated with it? –  fboaventura Mar 18 '13 at 9:28

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.