[SOLVED] Send mails from external account trough Zimbra
I'm fairly new to Zimbra but managed to install the ZCS community edition 7.0.0_GA_3077 on Ubuntu 10.04 Server. Sending and receiving mails works just fine.
It is quite easy to get Zimbra to fetch mails from external mail accounts (via POP3 or IMAP) but in addition to that I would like to send mails "from" these external accounts.
My Zimbra account: firstname.lastname@example.org
Some external account: email@example.com
I set up postfix as described in this post http://www.zimbra.com/forums/177359-post12.html
By doing this postfix can send outgoing mails to different relay servers depending on the mail address they originate from. I verified this using telnet (localhost port 25) on the Zimbra server. Works great, meaning if I send a mail from firstname.lastname@example.org postfix automatically relays it to smtp.somedomain.com instead of sending it to the default relay server of my domain hoster.
But if I send a mail using the Zimbra Web-Client and choose an external account as the origin of my mail (e.g. email@example.com) Zimbra substitutes the "from" address of my mail for the address of my Zimbra account (firstname.lastname@example.org). This causes postfix NOT to send the mail to the "right" relay host. BTW I already checked "Allow sending email from any address" in the preferences.
Is it somehow possible to prevent Zimbra from substituting the "from" so that postfix could route the mail to the right relay host? I'm very grateful for any pointers!
Tanks in advance!
Found solution here Bug 40731 – Wrong MAIL FROM in SMTP dialog when using a Persona
zmprov mc default zimbraSmtpRestrictEnvelopeFrom FALSE
SMTP behavior now switches based on the value of
zimbraSmtpRestrictEnvelopeFrom. When it's set to TRUE, we force
MAIL FROM in the SMTP session to be the address of the account.
When it's set to FALSE, MAIL FROM is set to either the Sender or
From header value in the outgoing message, in that order.