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.
Post Reply
tom2810
Posts: 8
Joined: Wed Sep 06, 2017 8:45 am

postfix forward email and keep copy

Post 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
phoenix
Ambassador
Ambassador
Posts: 27272
Joined: Fri Sep 12, 2014 9:56 pm
Location: Liverpool, England

Re: postfix forward email and keep copy

Post by phoenix »

Regards

Bill

Rspamd: A high performance spamassassin replacement

Per ardua ad astra
tom2810
Posts: 8
Joined: Wed Sep 06, 2017 8:45 am

Re: postfix forward email and keep copy

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

Re: postfix forward email and keep copy

Post 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
Post Reply