postfix forward email and keep copy

Looking to migrate to ZCS? Ask here. Got a great tip or script that helped you migrate? Post it here.
tom2810
Posts: 8
Joined: Wed Sep 06, 2017 8:45 am

postfix forward email and keep copy

Postby tom2810 » Thu Sep 21, 2017 11:38 am

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


phoenix
Ambassador
Ambassador
Posts: 25022
Joined: Fri Sep 12, 2014 9:56 pm

Re: postfix forward email and keep copy

Postby phoenix » Thu Sep 21, 2017 11:49 am

Regards

Bill

Rspamd: A high performance spamassassin replacement

If you'd like to see this implement in a future version of ZCS then please vote on Bugzilla entries 97706 & 108168
tom2810
Posts: 8
Joined: Wed Sep 06, 2017 8:45 am

Re: postfix forward email and keep copy

Postby tom2810 » Thu Sep 21, 2017 12:13 pm

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.
futhwo
Posts: 4
Joined: Mon Jul 31, 2017 6:55 am

Re: postfix forward email and keep copy

Postby futhwo » Wed Oct 11, 2017 8:31 am

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

Return to “Migration”

Who is online

Users browsing this forum: No registered users and 3 guests