PDA

View Full Version : [ubuntu] Mail forwarding to Gmail via Postfix



ChrisRChamberlain
November 1st, 2011, 09:11 AM
Have mailforwarding setup at www.zoneedit.com as:-

me@mydomain.com > myname@gmail.com

Would like to setup wildcard forwarding whereby setup becomes:-

*@mydomain.com > www.mydomain.com > myname@gmail.com

This would allow any name you like @mydomain.com to be forwarded to the single gmail.account.

This would be the sole function in Postfix, the redirection of mail.

Do-able in Postfix - if so suggestions please?

TIA

lisati
November 1st, 2011, 09:39 AM
Apologies, I had a detailed reply typed up but accidentally cleared it before submitting. It is definitely "do-able". Among the options is check_recipient_access (http://www.postfix.org/postconf.5.html#check_recipient_access).

ChrisRChamberlain
November 1st, 2011, 09:43 AM
lisati

Thanks for your reply - would appreciate any further info you have.

lisati
November 1st, 2011, 09:48 AM
If I have understood what you want to do properly, it is a form of address rewriting within Postfix, which is described here: http://www.postfix.org/ADDRESS_REWRITING_README.html

ChrisRChamberlain
November 1st, 2011, 10:39 AM
Thanks again lisati

This article also seems to cover what is required

http://www.debuntu.org/2006/05/05/45-how-to-postfix-and-virtual-hosts

Not familiar with the use of the word 'hash:'


virtual_alias_maps = hash:/etc/postfix/virtual here