PDA

View Full Version : How can I forward emails (postfix)from user@mydomain.com to me@yahoo.com?(like gmail)


Georgep
18th August 2007, 23:09
Hi !

My setup is Postfix + mysql virtual domains+courierimap+squirrelmail+postfixadmin

It all works fine. From postfixadmin I can set aliases like alias1@domain.com to forward to realuser@domain.com.

What I want is email forwarding (like gmail) in which case
alias1@domain.com would actually be a valid accound that could read/write email and all its incoming mail would be delivered to both his mailbox AND to
someuser@yahoo.com

Is this posible ?

Thank you for a great site howtoforge.

falko
19th August 2007, 15:48
Can't you read/write emails with alias1@domain.com now?

Georgep
19th August 2007, 16:04
Uhm, no. Its like it is only an alias, not a real account (no password or anything).
Should I be able to login with aliases and send mails ?

(last night i modified postfix under virtual_alias_maps (i think thats what it was called) and I added besides mysql: also hash:/etc/aliases and at least now I can alias real email accounts and the emails will get redirected BUT STILL they will not get directed to the actual mailbox ALSO.
Someone said to use .forward file but there are no home dirs so...... :-<

falko
20th August 2007, 19:39
Uhm, no. Its like it is only an alias, not a real account (no password or anything).
Should I be able to login with aliases and send mails ?

I think so, although I've never tried Postfixadmin...