Re: online conversion using replication?

2018-09-03 Thread Sami Ketola


> On 3 Sep 2018, at 21.49, 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..)
> 

Those customers were not using Postfix but I believe that with 
http://www.postfix.org/postconf.5.html#recipient_bcc_maps 
 similar behaviour 
can be achieved with Postfix. 

Sami




Re: online conversion using replication?

2018-09-03 Thread Adi Pircalabu

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


Re: online conversion using replication?

2018-09-03 Thread DurgaPrasad - DatasoftComnet
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  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.
> 



Re: online conversion using replication?

2018-09-03 Thread B. Reino

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.



Re: online conversion using replication?

2018-09-02 Thread Sami Ketola


> 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.

Sami



Re: online conversion using replication?

2018-09-02 Thread Daniel Miller
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 
Date: 02/09/2018 04:14 (GMT+02:00)
To: Dovecot Mailing List 
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  -n inbox 
mdbox:/var/mail///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





Re: online conversion using replication?

2018-09-01 Thread Aki Tuomi
You don't need to setup replication for that. See 
https://wiki2.dovecot.org/Migration/MailFormat
---Aki TuomiDovecot oy
 Original message From: Daniel Miller  Date: 
02/09/2018  04:14  (GMT+02:00) To: Dovecot Mailing List  
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  -n inbox mdbox:/var/mail///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



online conversion using replication?

2018-09-01 Thread Daniel Miller
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  -n inbox mdbox:/var/mail///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