id	summary	reporter	owner	description	type	status	milestone	component	severity	resolution	keywords	cc
2873	Mail module/User corner enhancements	fra.romano@…	jamor@zentyal.com	"I have several eBox/Zentyal installations with external domains.
To retrieve the mail messages from the company domain and to get around the limits of ebox/fetchmail (http://trac.zentyal.org/ticket/2674) i have setup the internal virtual mail domain with .local extension.
Example: the company Acme have the existing domain ""acme.com"" and in Zentyal i have configured the domain as ""acme.local"".

But with this setup i have problems when sending email from Zarafa or eGroupware because the remote server reject the sender address because is not valid. Example: the user John Doe is rejected because the from field is
{{{
john.doe@acme.local
}}}

To resolve this issue i have added the option smtp_generic_maps in Postfix that lookup a table and replace the local mail addresses by valid Internet addresses when mail leaves the machine via SMTP.
To enable this feature, i have to edit the file /etc/postfix/main.cf (or the equivalent .mas file) and add:

{{{
smtp_generic_maps = hash:/etc/postfix/generic
}}}

After create the file /etc/postfix/generic and add the list of addresses to convert:

{{{
john.doe@acme.local	john.doe@acme.com
}}}

After, recreate the map file and reload postfix:

{{{
sudo postmap /etc/postfix/generic
sudo /etc/init.d/postfix reload
}}}

Would be nice to automate this procedure in Zentyal and add some fields on the User portal where the user can write on his own the address to rewrite.
"	enhancement	new	nice to have someday	mail	normal		postfix fetchmail	
