martes, enero 11, 2011

Email forwarding en Zentyal

Verificando como realizar un forwarding de una cuenta de correo a otro, encontré esta alternativa en el foro de zentyal, aunque por el entorno grafico lo puedes realizar por: Correo -> Dominios virtuales de correo -> click en "Alias de cuentas externas" en el dominio donde desean agregar el alias y por ultimo ingresar los datos que piden, tenga en cuenta que no debe existir el alias

http://forum.zentyal.org/index.php?topic=459.0

Ok. I got it to work now. It now stores a copy in the mailbox, what I did was

1. sudo nano /etc/postfix/virtual
2. added the mail addresses to forward. ie test@mydomain.com pepe@hotmail.com,test@mydomain.com
3. Save the file and edit the line virtual_alias_maps in /etc/postfix/main.cf. The original is:
virtual_alias_maps = ldap:valiases change it to virtual_alias_maps = hash:/etc/postfix/virtual, ldap:valiases

4. Run: sudo postmap /etc/postfix/virtual, then reload postfix: sudo postfix reload

And thats it, now all mail to test@mydomain.com goes to pepe@hotmail.com and a copy is stored for the original destination.