Re: multiple ldap userdb and passdb

2015-02-17 Thread lejeczek


On 17/02/15 19:36, Pascal Volk wrote:

On 02/17/2015 04:03 PM, lejeczek wrote:

hi everybody.

I wonder if such a scenario is possible.
if yes would I configure multiple passdb using ldap driver
or within one clause set up multiple args? How would this work?

Did you read http://wiki2.dovecot.org/Authentication/MultipleDatabases?

yes, and other different articles, but nowhere there was a 
setup with the same type/driver of database occurring more 
than once in the config discussed.
I would have to look up to different DN that exist under 
different trees and I wonder how this can be achieved.



Regards,
Pascal


Re: multiple ldap userdb and passdb

2015-02-17 Thread Steffen Kaiser

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Wed, 18 Feb 2015, lejeczek wrote:

On 17/02/15 19:36, Pascal Volk wrote:

On 02/17/2015 04:03 PM, lejeczek wrote:

hi everybody.

I wonder if such a scenario is possible.
if yes would I configure multiple passdb using ldap driver
or within one clause set up multiple args? How would this work?

Did you read http://wiki2.dovecot.org/Authentication/MultipleDatabases?

yes, and other different articles, but nowhere there was a setup with the 
same type/driver of database occurring more than once in the config 
discussed.
I would have to look up to different DN that exist under different trees and 
I wonder how this can be achieved.


different trees == different servers?

Anyway: duplicate the ldap.conf file and use one file for one 
passdb/userdb pair and the other one for a second pair.


If both trees reside on the same server, you probably find a filter to 
select them.


- -- 
Steffen Kaiser

-BEGIN PGP SIGNATURE-
Version: GnuPG v1

iQEVAwUBVORBtXz1H7kL/d9rAQL2iQgAknJOk5Bt4L9kqWqNFrVV0+ipumQCda4U
w4JEHHM5qDfXIp7KW5aV8zdDCCgAirpx9v5myHtr73I3w3S3R7FQNy6ZKikJvD6w
3nD/TC8eZxWoVMm/6HlZLxvRl7qAyZQ2W3I/q7VTFhZsdCGeTdioHGLxiOusHTNr
8W/BWZSImsyqdtKEDlCdKLj0XdByCBZubbr4q5y4prWeXuXvHMKT1x44MIZxyqsA
wvm9T93GJ2YNrV7ICGfFImaZwqNVmJ3B7SVi6iDTYxQITFnpDabiPmqUG/zPjqRk
Hu/yec5ZDgOCEXee4bjHY+Ws2Az7a4ekPnsP6WoifOSoGy2v8DzEtg==
=dSdp
-END PGP SIGNATURE-


Re: Dovecot 2.1.7 random login fails

2015-02-17 Thread Steffen Kaiser

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Tue, 17 Feb 2015, Dario Meloni wrote:


Feb 17 07:48:32 pop3-login: Fatal: read(ssl-params) failed: Permission
denied

I checked in the code and found that the issue is from ssl-params.c
apparently not being able to read from a file descriptor that it already
opened...


did you've verified that the file exists and has a reasonable file size?

- -- 
Steffen Kaiser

-BEGIN PGP SIGNATURE-
Version: GnuPG v1

iQEVAwUBVOQ14Hz1H7kL/d9rAQICRAf/fX8WD3zgwdae+U2IH/PHkbiEuIcFrSjh
nqtjpBQ8zcKLfGpVV13+okJ+Yt0uQDGXLoXmwrDuQD0IGZKwpFxAJXzZn1xzG7GM
kma3jtUE5Jw//eTk2e3dLCsnYPU8XA8/pi5zYzpgITtScAA3LitLApT4uGfgLtMD
GHZlxVxryHrRllYlkO8gECeuBBaDwpPHGz6cgImReTrHk1OEAoc61TOlamPxbIR/
PEWrEoohUNqbXY81qsdqtyrRbzmHWpMcJlFT6JvaCIXIZgFzbmIayE54klYSfSqh
J9etOQz/gKdwT1QXT4w6DeVJUbvCTNGv6ZNT+CYDBVr7+DhpnTBjmg==
=krXV
-END PGP SIGNATURE-


Re: Help with archive server

2015-02-17 Thread Robert Schetterer
Am 17.02.2015 um 13:50 schrieb Joy:
 Hi,
  I want to build a system where 6 months old mail to be moved to
 archive server to keep my mailbox clean and fast.
 
 Is there any way to achieve the same using any pre-built binary shipped
 with dovecot ?
 
 
 Thanks and Regards
 
 Joy
 

Classical Mail Archive means store a copy of all incoming mail ( without
spam )

like i.e here

https://sys4.de/de/blog/2013/02/07/mailarchiv-mit-dovecot-und-postfix-sortiert-nach-datum-mailadressen-und-ein-ausgehend-unterordnern/

But i think you want something other, perhaps some imapsync via cron
daily executed at the archive server ,from your active mailbox to your
archive mailbox for mail older then 6 months

http://linux.die.net/man/1/imapsync

watch

[--maxage int]
[--minage int]

for archive mailbox on the same dovecot server

http://wiki2.dovecot.org/Tools/Doveadm/Move
http://wiki2.dovecot.org/Tools/Doveadm/SearchQuery

may also solve it


Best Regards
MfG Robert Schetterer

-- 
[*] sys4 AG

http://sys4.de, +49 (89) 30 90 46 64
Franziskanerstraße 15, 81669 München

Sitz der Gesellschaft: München, Amtsgericht München: HRB 199263
Vorstand: Patrick Ben Koetter, Marc Schiffbauer
Aufsichtsratsvorsitzender: Florian Kirstein


multiple ldap userdb and passdb

2015-02-17 Thread lejeczek

hi everybody.

I wonder if such a scenario is possible.
if yes would I configure multiple passdb using ldap driver 
or within one clause set up multiple args? How would this work?


many thanks
P.


Re: Dovecot 2.1.7 random login fails

2015-02-17 Thread Dario Meloni
On Tue, 17 Feb 2015 10:17:21 +, Dario Meloni wrote:


 Dovecot version 2.1.7, running in a debian:stable docker container.
[..]

I also tried using the backport packages and I have the same issues on 
version 2.2.13


Re: Help with archive server

2015-02-17 Thread Robert Schetterer
Am 17.02.2015 um 15:09 schrieb Robert Schetterer:
 Am 17.02.2015 um 13:50 schrieb Joy:
 Hi,
  I want to build a system where 6 months old mail to be moved to
 archive server to keep my mailbox clean and fast.

 Is there any way to achieve the same using any pre-built binary shipped
 with dovecot ?


 Thanks and Regards

 Joy

 
 Classical Mail Archive means store a copy of all incoming mail ( without
 spam )
 
 like i.e here
 
 https://sys4.de/de/blog/2013/02/07/mailarchiv-mit-dovecot-und-postfix-sortiert-nach-datum-mailadressen-und-ein-ausgehend-unterordnern/
 
 But i think you want something other, perhaps some imapsync via cron
 daily executed at the archive server ,from your active mailbox to your
 archive mailbox for mail older then 6 months
 
 http://linux.die.net/man/1/imapsync
 
 watch
 
 [--maxage int]
 [--minage int]
 
 for archive mailbox on the same dovecot server
 
 http://wiki2.dovecot.org/Tools/Doveadm/Move
 http://wiki2.dovecot.org/Tools/Doveadm/SearchQuery
 
 may also solve it


http://wiki2.dovecot.org/Tools/Doveadm/Import

is maybe better

after that you need expunge allready archived mail in the active mailbox


but there may lots of other chances solving it

i.e dsync, rsync but thats all depending to your setup i.e mailbox
format, involved servers etc.


 
 
 Best Regards
 MfG Robert Schetterer
 



Best Regards
MfG Robert Schetterer

-- 
[*] sys4 AG

http://sys4.de, +49 (89) 30 90 46 64
Franziskanerstraße 15, 81669 München

Sitz der Gesellschaft: München, Amtsgericht München: HRB 199263
Vorstand: Patrick Ben Koetter, Marc Schiffbauer
Aufsichtsratsvorsitzender: Florian Kirstein


Re: Permissions for shared mail don't work

2015-02-17 Thread Damien Desfontaines
Hi,

Sorry for the crazy latency. I just did that, it works like a charm.
And apparently, my postfix aliases still work.

Thanks a lot!

Damien


On Mon, Oct 20, 2014 at 08:27:59AM +0200, Steffen Kaiser wrote:
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1
 
 On Sun, 19 Oct 2014, Damien Desfontaines wrote:
 
 On Sun, Oct 19, 2014 at 10:52:59AM +0200, Steffen wrote:
 how do you deliver new messages to spam's INBOX?
 
 By sending an e-mail to spam.whate...@desfontain.es ?
 
 (I'm not sure I understand the question?)
 
 
 How does your MTA deliver the messages to the INBOX, do you use
 Dovecor LDA, LMTP or the MTA?
 
 The MTA itself delivers it, I think. Here are my config files :
 - http://paste.fulltxt.net/xx31R (/etc/postfix/main.cf)
 - and http://paste.fulltxt.net/t9iXRBIH (/etc/postfix/master.cf)
 
 I don't use Postfix, but neither Postfix nor Maildrop honor Dovecot's
 permission settings obviously. So, you need to re-configure those to set
 the Unix permissions, too.
 
 I'd recommend to reconfigure Postfix to use Dovecot LMTP:
 http://wiki2.dovecot.org/HowTo/PostfixDovecotLMTP
 
 or Dovecot LDA. However, if you use maildrop filtering, you have to
 switch to Dovecot Pigeonhole Sieve filtering.
 
 - -- Steffen Kaiser
 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1.4.11 (GNU/Linux)
 
 iQEVAwUBVESrcHz1H7kL/d9rAQIDlggAgN1l0PA0yWYVIMIpuehVb0bKkdiKsDh1
 adP899zThrl8/gKC6TQLldbCi92Kxnudt+yCZef07oFoiZxy3Xj+o7jECJrWI900
 LLG1TrwR2IX2jmwKL3XNR2F5nOJl2ePp8YI5LxYZiys2eZ1Ug9Ks0klJTEBzKCY3
 cZqad5+T7C1Lp39IjJF9ILPUWaCIFgkTgWBt/TvgXx6zj4zYxFL1bweN2zZOteFz
 m3nm8GcWlfXs2R9zc7Lpn+SM8IjRAZKB+/PtF2eqDHxQ+D8mddIqDFQhSK30sjfq
 Cf5ZMB7/+jEzSi4DdEnNwrsSGyuoJCEA5Ekoj1zR5M0HNOWMKy4V6A==
 =1q+8
 -END PGP SIGNATURE-


signature.asc
Description: Digital signature


Re: multiple ldap userdb and passdb

2015-02-17 Thread Pascal Volk
On 02/17/2015 04:03 PM, lejeczek wrote:
 hi everybody.
 
 I wonder if such a scenario is possible.
 if yes would I configure multiple passdb using ldap driver 
 or within one clause set up multiple args? How would this work?

Did you read http://wiki2.dovecot.org/Authentication/MultipleDatabases?


Regards,
Pascal
-- 
The trapper recommends today: face1e55.1504...@localdomain.org


Re: [PATCH] [dovecot 2.2.9] Quota warnings ignored with FS quotas

2015-02-17 Thread Michał Giżyński


On 21.11.2014 20:04, Grzegorz Nosek wrote:

Hi all,

I noticed that in some circumstances quota warnings are ignored. The 
bug arises when both of the following are used:


1. percentage-based quota warnings, i.e.:

  quota_warning = storage=1%% quota-warning 1 %u

2. filesystem quota backend (and probably others, except for quotas 
configured directly in dovecot config)


Percentage-based quota warnings have rule.bytes_limit recalculated 
based on root_set-default_rule.bytes_limit, however this value is 
zero when FS quotas are in use. Real quota values (from quotactl) are 
fetched very late, in quota_warnings_execute() but at that point no 
recalculation happens. As the warning rules have bytes_limit==0, 
they're effectively ignored.


The patch below enables quota warnings to be sent when using 
filesystem (and possibly maildirsize-based) quotas.


Based and tested on Ubuntu 14.04's dovecot 2.2.9.

Best regards,
 Grzegorz Nosek


diff --git a/src/plugins/quota/quota.c b/src/plugins/quota/quota.c
index adbd70d..8e4d7e0 100644
--- a/src/plugins/quota/quota.c
+++ b/src/plugins/quota/quota.c
@@ -1163,6 +1163,8 @@ static void quota_warnings_execute(struct 
quota_transaction_context *ctx,

   count_current, count_limit)  0)
return;

+   quota_root_recalculate_relative_rules(root-set, bytes_limit, 
count_limit);

+
bytes_before = bytes_current - ctx-bytes_used;
count_before = count_current - ctx-count_used;
for (i = 0; i  count; i++) {

Hi,
this patch realy fix the bug in quota_warning. Is it possible to add 
this patch to the next release ?


--
Pozdrawiam / Best Regards
Michał Giżyński


how to run dovecot imap on separate server from postfix?

2015-02-17 Thread Robert Fantini
Hello

 we are using version 2.2.13 on debian.

 currently imap  runs on the same system as  postfix , spamassassin and
other mail related software.

 I'd like to move dovecot imapd  and mail storage  to its own system.

 I've search google and wiki and could not see how to do so.

 could someone please point me in the direction to that done?  I like
reading documentation..

here is more info on our set up:

postfix:
# grep dovecot /etc/postfix/*
/etc/postfix/main.cf:mailbox_transport = lmtp:unix:private/dovecot-lmtp
/etc/postfix/main.cf:smtpd_sasl_type = dovecot

kind regards
Rob Fantini


Re: how to run dovecot imap on separate server from postfix?

2015-02-17 Thread Reindl Harald


Am 17.02.2015 um 22:29 schrieb Robert Fantini:

  we are using version 2.2.13 on debian.

  currently imap  runs on the same system as  postfix , spamassassin and
other mail related software.

  I'd like to move dovecot imapd  and mail storage  to its own system.

  I've search google and wiki and could not see how to do so.

  could someone please point me in the direction to that done?  I like
reading documentation..

here is more info on our set up:

postfix:
# grep dovecot /etc/postfix/*
/etc/postfix/main.cf:mailbox_transport = lmtp:unix:private/dovecot-lmtp
/etc/postfix/main.cf:smtpd_sasl_type = dovecot


just configure postfix to use lmtp:host:port of the dovecot machine



signature.asc
Description: OpenPGP digital signature


Re: how to run dovecot imap on separate server from postfix?

2015-02-17 Thread Robert Fantini
Hello Reindl,   thank you for the response.

I want to make sure that the postfix delivery does  not give up trying to
get the email delivered when the  lmtp host is not reachable.  I do not
just want to assume that the default settings are correct for us.

 Are there  postfix or other settings which can be checked and adjusted?

On Tue, Feb 17, 2015 at 4:37 PM, Reindl Harald h.rei...@thelounge.net
wrote:


 Am 17.02.2015 um 22:29 schrieb Robert Fantini:

we are using version 2.2.13 on debian.

   currently imap  runs on the same system as  postfix , spamassassin and
 other mail related software.

   I'd like to move dovecot imapd  and mail storage  to its own system.

   I've search google and wiki and could not see how to do so.

   could someone please point me in the direction to that done?  I like
 reading documentation..

 here is more info on our set up:

 postfix:
 # grep dovecot /etc/postfix/*
 /etc/postfix/main.cf:mailbox_transport = lmtp:unix:private/dovecot-lmtp
 /etc/postfix/main.cf:smtpd_sasl_type = dovecot


 just configure postfix to use lmtp:host:port of the dovecot machine




Re: how to run dovecot imap on separate server from postfix?

2015-02-17 Thread Reindl Harald


Am 17.02.2015 um 22:51 schrieb Robert Fantini:

I want to make sure that the postfix delivery does not give up trying to
get the email delivered when the  lmtp host is not reachable.  I do not
just want to assume that the default settings are correct for us.

Are there  postfix or other settings which can be checked and adjusted?


postfix was *not* written by a moron and hence in any case any mail in 
the queue will be re-tried until maximal_queue_lifetime is reached


there is no difference if lmtp is a unix socket or on the network 
because nobody can say for sure that the lmtpd on localhost is reachable 
365/7/24 and hence any sane MTA handles errors properly



On Tue, Feb 17, 2015 at 4:37 PM, Reindl Harald h.rei...@thelounge.net
wrote:


Am 17.02.2015 um 22:29 schrieb Robert Fantini:

we are using version 2.2.13 on debian.


   currently imap  runs on the same system as  postfix , spamassassin and
other mail related software.

   I'd like to move dovecot imapd  and mail storage  to its own system.

   I've search google and wiki and could not see how to do so.

   could someone please point me in the direction to that done?  I like
reading documentation..

here is more info on our set up:

postfix:
# grep dovecot /etc/postfix/*
/etc/postfix/main.cf:mailbox_transport = lmtp:unix:private/dovecot-lmtp
/etc/postfix/main.cf:smtpd_sasl_type = dovecot



just configure postfix to use lmtp:host:port of the dovecot machine




signature.asc
Description: OpenPGP digital signature


Re: how to run dovecot imap on separate server from postfix?

2015-02-17 Thread Robert Fantini
Hello again Reindl Harald

  I always thought Wietse Venema was only as smart as me ;-)

 seriously thank you for the help.

On Tue, Feb 17, 2015 at 4:57 PM, Reindl Harald h.rei...@thelounge.net
wrote:


 Am 17.02.2015 um 22:51 schrieb Robert Fantini:

 I want to make sure that the postfix delivery does not give up trying to
 get the email delivered when the  lmtp host is not reachable.  I do
 not
 just want to assume that the default settings are correct for us.

 Are there  postfix or other settings which can be checked and adjusted?


 postfix was *not* written by a moron and hence in any case any mail in the
 queue will be re-tried until maximal_queue_lifetime is reached

 there is no difference if lmtp is a unix socket or on the network because
 nobody can say for sure that the lmtpd on localhost is reachable 365/7/24
 and hence any sane MTA handles errors properly


  On Tue, Feb 17, 2015 at 4:37 PM, Reindl Harald h.rei...@thelounge.net
 wrote:


 Am 17.02.2015 um 22:29 schrieb Robert Fantini:

 we are using version 2.2.13 on debian.


currently imap  runs on the same system as  postfix , spamassassin
 and
 other mail related software.

I'd like to move dovecot imapd  and mail storage  to its own system.

I've search google and wiki and could not see how to do so.

could someone please point me in the direction to that done?  I like
 reading documentation..

 here is more info on our set up:

 postfix:
 # grep dovecot /etc/postfix/*
 /etc/postfix/main.cf:mailbox_transport = lmtp:unix:private/dovecot-lmtp
 /etc/postfix/main.cf:smtpd_sasl_type = dovecot


 just configure postfix to use lmtp:host:port of the dovecot machine





Dovecot 2.1.7 random login fails

2015-02-17 Thread Dario Meloni
From: Dario Meloni mello...@gmail.com
Subject: Dovecot 2.1.7 intermittent login issues
Newsgroups: gmane.mail.imap.dovecot
X-Draft-Attribution: 
X-Draft-Attribution-Author: 
X-Draft-Attribution-Date: 
X-Draft-Attribution-Id: 
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Hello,

Dovecot version 2.1.7, running in a debian:stable docker container.

I am having a weird issues with dovecot failing randomly sometimes with 
pop3 sometimes with imap but only in case of SSL for example from the 
logs I can see this:

Feb 17 07:48:32 imap-login: Warning: SSL: where=0x2001, ret=1: SSLv3 
write session ticket A [172.17.2.5]
Feb 17 07:48:32 imap-login: Warning: SSL: where=0x2001, ret=1: SSLv3 
write change cipher spec A [172.17.2.5]
Feb 17 07:48:32 imap-login: Warning: SSL: where=0x2001, ret=1: SSLv3 
write finished A [172.17.2.5]
Feb 17 07:48:32 imap-login: Warning: SSL: where=0x2001, ret=1: SSLv3 
flush data [172.17.2.5]
Feb 17 07:48:32 imap-login: Warning: SSL: where=0x20, ret=1: SSL 
negotiation finished successfully [172.17.2.5]
Feb 17 07:48:32 imap-login: Warning: SSL: where=0x2002, ret=1: SSL 
negotiation finished successfully [172.17.2.5]
Feb 17 07:48:32 imap-login: Warning: SSL alert: where=0x4008, ret=256: 
warning close notify [172.17.2.5]
Feb 17 07:48:32 pop3-login: Fatal: read(ssl-params) failed: Permission 
denied



and from the debug log:

Feb 17 07:48:32 auth: Debug: auth client connected (pid=21)
Feb 17 07:48:32 auth: Debug: client in: AUTH1   PLAIN   
service=pop3session=[REDACTED]lip=172.17.2.11 rip=172.17.2.5  
lport=110   rport=38967 resp=[REDACTED]
Feb 17 07:48:32 auth-worker(16): Debug: pam(test,172.17.2.5): lookup 
service=dovecot
Feb 17 07:48:32 auth-worker(16): Debug: pam(test,172.17.2.5): #1/1 
style=1 msg=Password:
Feb 17 07:48:32 auth: Debug: client out: OK 1   user=test
Feb 17 07:48:32 auth: Debug: master in: REQUEST 951582721   21  
1   1fb51b26a3656db28fa3d333bd7568a4
Feb 17 07:48:32 auth: Debug: passwd(test,172.17.2.5,[REDACTED]): lookup
Feb 17 07:48:32 auth: Debug: master out: USER   951582721   test
system_groups_user=test uid=1000gid=8   home=/home/test
Feb 17 07:48:32 pop3(test): Debug: Effective uid=1000, gid=8, home=/home/
test
Feb 17 07:48:32 pop3(test): Debug: Namespace inbox: type=private, 
prefix=, sep=, inbox=yes, hidden=no, list=yes, subscriptions=yes 
location=mbox:~/mail:INBOX=/var/mail/test
Feb 17 07:48:32 pop3(test): Debug: fs: root=/home/test/mail, index=, 
control=, inbox=/var/mail/test, alt=
Feb 17 07:48:32 pop3(test): Debug: Namespace : Using permissions from /
home/test/mail: mode=0700 gid=-1
Feb 17 07:48:32 auth: Debug: auth client connected (pid=23)


I checked in the code and found that the issue is from ssl-params.c 
apparently not being able to read from a file descriptor that it already 
opened...

Any idea?


Re: Re: Cannot delete folders from Maildir in only one account

2015-02-17 Thread Christian Vielhauer
Hi Steffen
thanks for your reply.

I found that permissions of some folders are different than others…
After chmod all permissions to the same go= permissions, it works.

No matter what happens to generate different permissions for only this one 
account.
Because all other accounts are correct.

I will have a look at this from time to time.
As soon it not happens agains this thread is solved.


On Mon, 16 Feb 2015, Christian Vielhauer wrote:

 I try to delete the folder „test from Thunderbird 31.4.0 (Win), Webmail 
 (Sogo 2.2.16), or Mail 8.2 (Mac Yosemite), but I am not able to delete in 
 this account.
 Nevertheless I am able to create new folders. These new folders are not 
 deleteable, too.

What's the returned description sctring, if you try to delete the folder 
manually via telnet?

 dovecot 2.2.9 on Ubuntu 14.04 LTS 64-bit

 In /var/log/mail.{err,log} I cannot see any errors.

What does Dovecot log? It usually logs to somewhere else.

 In another account it works without any problems. (create and delete folders)

- -- 
Steffen Kaiser


Re: doveadm sync out of memory

2015-02-17 Thread FUSTE Emmanuel
Le 16/02/2015 20:40, Casey Stone a écrit :
 On Feb 13, 2015, at 3:42 PM, FUSTE Emmanuel emmanuel.fu...@thalesgroup.com 
 wrote:

 Le 13/02/2015 16:19, Casey Stone a écrit :
 On Feb 5, 2015, at 10:39 PM, Casey Stone tcst...@caseystone.com wrote:

 Hello:

 I've been looking forward to getting my mail server up to Dovecot 2.2+ to 
 be able to use the sync mechanism. I run my own mail server just for 
 myself, with a few different accounts, and want to keep a master and 
 backup server in sync.

 I'm running the Ubuntu server 14.04.1 mail stack which features Dovecot 
 2.2.9 (and Postfix). My setup is to use system users (userdb passwd / 
 passdb pam) with ~/Maildir. I'll post full sanitized output of dovecot -n 
 if it seems necessary. I have not enabled any plugins (do I need the 
 replicator plugin active?) I have in my conf a doveadm_password defined.

 Anyway, after setting up an ssl listener on the main machine and after 
 considerable struggles with SSL, I was able to run doveadm sync from the 
 backup server successfully for a small mailbox (around 78 MB) with this 
 command:

 doveadm sync -R tcps:mainserver.example.com:12345

 Since I run this command as the system user on the backup server (same 
 system users as main server) it 'just works' for the correct single user 
 with no further options required. My plan is to run a daily cron job to 
 sync once daily for each user.

 The problem is when I try to sync a larger mailbox, say 1 GB, dsync-server 
 on the remote (master) machine throws fatal error 83 Out of Memory. I 
 already raised vsz_limit to 512 MB. Problems probably arise with mailboxes 
 around 200 MB though I haven't tested specifically. So my question is, is 
 this expected and I will need to give my VM much more memory to be able to 
 use dovecot sync, or do I have something set wrong, or is it a bug?

 Thanks for your help.
 No repsonses :-(

 Here is what it looks like when it crashes with an out of memory error:

 (start of the run)
 Feb 13 14:02:38 thepost dovecot: doveadm(10.0.1.22,tcstone): Debug: 
 Effective uid=1002, gid=1002, home=/home/tcstone
 Feb 13 14:02:38 thepost dovecot: doveadm(10.0.1.22,tcstone): Debug: 
 Namespace inbox: type=private, prefix=, sep=, inbox=yes, hidden=no, list$
 Feb 13 14:02:38 thepost dovecot: doveadm(10.0.1.22,tcstone): Debug: 
 maildir++: root=/data/tcstone/Maildir, index=, indexpvt=, control=, inbo$
 Feb 13 14:02:39 thepost dovecot: dsync-server(tcstone): Debug: Namespace : 
 Using permissions from /data/tcstone/Maildir: mode=0700 gid=defau$
 Feb 13 14:02:39 thepost dovecot: dsync-server(tcstone): Debug: brain S: out 
 state=send_mailbox_tree changed=1

 many, many more brain messages

 (end of the run)
 Feb 13 14:02:52 thepost dovecot: dsync-server(tcstone): Fatal: 
 pool_system_realloc(536870912): Out of memory
 Feb 13 14:02:52 thepost dovecot: dsync-server(tcstone): Error: Raw 
 backtrace: /usr/lib/dovecot/libdovecot.so.0(+0x5e271) [0x7f9d2056b271] - 
 /usr/lib/dovecot/libdovecot.so.0(+0x5e34e) [0x7f9d2056b34e] - 
 /usr/lib/dovecot/libdovecot.so.0(i_error+0) [0x7f9d20526bf8] - 
 /usr/lib/dovecot/libdovecot.so.0(+0x72d53) [0x7f9d2057fd53] - 
 /usr/lib/dovecot/libdovecot.so.0(+0x7792a) [0x7f9d2058492a] - 
 /usr/lib/dovecot/libdovecot.so.0(+0x77be6) [0x7f9d20584be6] - 
 /usr/lib/dovecot/libdovecot.so.0(+0x78748) [0x7f9d20585748] - 
 /usr/lib/dovecot/libdovecot.so.0(o_stream_sendv+0x8d) [0x7f9d20583d7d] - 
 /usr/lib/dovecot/libdovecot.so.0(o_stream_send+0x1a) [0x7f9d20583e1a] - 
 /usr/lib/dovecot/modules/libssl_iostream_openssl.so(+0x4c05) 
 [0x7f9d1f6a0c05] - 
 /usr/lib/dovecot/modules/libssl_iostream_openssl.so(openssl_iostream_bio_sync+0x21)
  [0x7f9d1f6a1881] - 
 /usr/lib/dovecot/modules/libssl_iostream_openssl.so(+0x7a4d) 
 [0x7f9d1f6a3a4d] - 
 /usr/lib/dovecot/modules/libssl_iostream_openssl.so(+0x7d69) 
 [0x7f9d1f6a3d69] - /usr/lib/dovecot/libdovecot.so.0(o_stream_sendv+0x8d) 
 [0x7f9d20583d7d] - /usr/lib/dovecot/libdovecot.so.0(o_stream_nsendv+0xf) 
 [0x7f9d20583e5f] - /usr/lib/dovecot/libdovecot.so.0(o_stream_nsend+0x1a) 
 [0x7f9d20583e8a] - dovecot/doveadm-server(+0x2b03f) [0x7f9d20d3003f] - 
 dovecot/doveadm-server(+0x2c768) [0x7f9d20d31768] - 
 dovecot/doveadm-server(dsync_ibc_send_mail+0x29) [0x7f9d20d2f309] - 
 dovecot/doveadm-server(dsync_brain_sync_mails+0x5fc) [0x7f9d20d24a1c] - 
 dovecot/doveadm-server(dsync_brain_run+0x523) [0x7f9d20d20f93] - 
 dovecot/doveadm-server(+0x1c270) [0x7f9d20d21270] - 
 dovecot/doveadm-server(+0x2de60) [0x7f9d20d32e60] - 
 /usr/lib/dovecot/libdovecot.so.0(io_loop_call_io+0x27) [0x7f9d2057b247] - 
 /usr/lib/dovecot/libdovecot.so.0(io_loop_handler_run+0xd7) [0x7f9d2057bfd7] 
 - /usr/lib/dovecot/libdovecot.so.0(io_loop_run+0x38) [0x7f9d2057ade8] - 
 dovecot/doveadm-server(+0x1a189) [0x7f9d20d1f189] - 
 dovecot/doveadm-server(+0xebeb) [0x7f9d20d13beb]
 Feb 13 14:02:52 thepost dovecot: dsync-server(tcstone): Fatal: master: 
 service(doveadm): child 13232 returned error 83 (Out of memory (service 
 doveadm 

Help with archive server

2015-02-17 Thread Joy
Hi,
 I want to build a system where 6 months old mail to be moved to
archive server to keep my mailbox clean and fast.

Is there any way to achieve the same using any pre-built binary shipped
with dovecot ?


Thanks and Regards

Joy