That works for a one-time migration, or perhaps via a cron-job, but what I want is basically a constant one-way backup and it seems replication could do it more elegantly & efficiently.
-- Daniel
On 9/1/2018 11:14 PM, Aki Tuomi wrote:
You don't need to setup replication for that. See https://wiki2.dovecot.org/Migration/MailFormat
Aki Tuomi Dovecot oy
-------- Original message -------- From: Daniel Miller dmiller@amfes.com Date: 02/09/2018 04:14 (GMT+02:00) To: Dovecot Mailing List dovecot@dovecot.org Subject: online conversion using replication?
With a single server - and no intent to have a second server online at this time - is it possible to use the replication service to keep a "live" backup? Or otherwise perform a storage format conversion?
I'm presently using sdbox - and considering going back to mdbox though without SIS. My intent now is ONLY a 1-way backup, to be kept current, and no clients will utilize the converted storage (unless/until I change).
I've successfully executed:
doveadm backup -u <username> -n inbox mdbox:/var/mail/<domain>/<user>/mdbox
For a few users - but reading the docs leads me to believe I can automate this. But there's no explicit example for this - so I'm not sure what to set.
Initially I'm thinking of:
dsync_remote_cmd = doveadm backup -u %u -n inbox mdbox:/var/mail/%d/%n/mdbox
and if that's right - which other services/listeners do I need to setup?
-- Daniel
On 3 Sep 2018, at 4.18, Daniel Miller dmiller@amfes.com wrote:
That works for a one-time migration, or perhaps via a cron-job, but what I want is basically a constant one-way backup and it seems replication could do it more elegantly & efficiently.
So you want real-time archiving? What we have done with couple of customers is that we just configure MTA to replicate all incoming mails to secondary site.
Sami
On Mon, 3 Sep 2018, Sami Ketola wrote:
On 3 Sep 2018, at 4.18, Daniel Miller dmiller@amfes.com wrote:
That works for a one-time migration, or perhaps via a cron-job, but what I want is basically a constant one-way backup and it seems replication could do it more elegantly & efficiently.
So you want real-time archiving? What we have done with couple of customers is that we just configure MTA to replicate all incoming mails to secondary site.
Would you mind showing how you're doing it? (hopefully with postfix, otherwise it may not be so interesting to me..)
Thanks.
Hi. Try mailpiler.
Rgds/DP 9849111010
Sent from my iPhone. Pls excuse brevity and typos if any.
On 04-Sep-2018, at 12:19 AM, B. Reino reinob@bbmk.org wrote:
On Mon, 3 Sep 2018, Sami Ketola wrote:
On 3 Sep 2018, at 4.18, Daniel Miller dmiller@amfes.com wrote:
That works for a one-time migration, or perhaps via a cron-job, but what I want is basically a constant one-way backup and it seems replication could do it more elegantly & efficiently.
So you want real-time archiving? What we have done with couple of customers is that we just configure MTA to replicate all incoming mails to secondary site.
Would you mind showing how you're doing it? (hopefully with postfix, otherwise it may not be so interesting to me..)
Thanks.
On 9/4/18 4:49 AM, B. Reino wrote:
On Mon, 3 Sep 2018, Sami Ketola wrote:
On 3 Sep 2018, at 4.18, Daniel Miller wrote:
That works for a one-time migration, or perhaps via a cron-job, but what I want is basically a constant one-way backup and it seems replication could do it more elegantly & efficiently.
So you want real-time archiving? What we have done with couple of customers is that we just configure MTA to replicate all incoming mails to secondary site.
Would you mind showing how you're doing it? (hopefully with postfix, otherwise it may not be so interesting to me..)
Thanks.
See postfix always_bcc[1] parameter, as well as sender_bcc_maps and recipient_bcc_maps for fine grained adjustments.
[1] http://www.postfix.org/postconf.5.html
-- Adi Pircalabu
On 3 Sep 2018, at 21.49, B. Reino reinob@bbmk.org wrote:
On Mon, 3 Sep 2018, Sami Ketola wrote:
On 3 Sep 2018, at 4.18, Daniel Miller dmiller@amfes.com wrote:
That works for a one-time migration, or perhaps via a cron-job, but what I want is basically a constant one-way backup and it seems replication could do it more elegantly & efficiently.
So you want real-time archiving? What we have done with couple of customers is that we just configure MTA to replicate all incoming mails to secondary site.
Would you mind showing how you're doing it? (hopefully with postfix, otherwise it may not be so interesting to me..)
Those customers were not using Postfix but I believe that with http://www.postfix.org/postconf.5.html#recipient_bcc_maps http://www.postfix.org/postconf.5.html#recipient_bcc_maps similar behaviour can be achieved with Postfix.
Sami
participants (5)
-
Adi Pircalabu
-
B. Reino
-
Daniel Miller
-
DurgaPrasad - DatasoftComnet
-
Sami Ketola