Page 1 of 1

postfix forward email and keep copy

Posted: Thu Sep 21, 2017 11:38 am
by tom2810
Hi all,
we are migrating from Zarafa to Zimbra user per user.

On the Zarafa-server we put in /etc/postfix/transport following:
user@domain smtp:[IP]:25
The mails are now forwarded to Zimbra, but without a copy in Zarafa. Is there a possibility to keep a copy of the mail in Zarafa? Just for the case that the migration failed?

Thanks in advance.
Best Tom

Re: postfix forward email and keep copy

Posted: Thu Sep 21, 2017 11:49 am
by phoenix

Re: postfix forward email and keep copy

Posted: Thu Sep 21, 2017 12:13 pm
by tom2810
Hey thanks for reply,
We do using imapsync. At first we do a presync and before final sync we edit transport-file to forward every new incoming mail to Zimbra. The plan is to do that until the migration has finished.

Re: postfix forward email and keep copy

Posted: Wed Oct 11, 2017 8:31 am
by futhwo
I don't know about Zarafa, but with postfix you could define a transport ending up in a script (you could write it in perl, or any other language you are familiar with).
This script would take the email as standard-input, and at the end it should do 2 thing:
- pipe the message to a local lmtp
- pipe the message to zimbra smtp
This is the short version, of course a working implementation of this would take some work