Getting duplicated mails while using imapc and dsync

2015-07-17 Thread Michael

Hello list,


currently I'm migrating our old mailserver to a new mail architecture
that is based on a master-master dovecot setup (two machines).


The replication actually works but I'm also syncing our mails from the 
current mailserver via imapc on a regular schedule.



For some reason I've in most (but not all) imapc-synced mailboxes 
duplicated emails that I also can't deduplicate with doveadm.



I've also set up test-mailboxes that I don't sync with imapc and in 
those I don't have any duplicated mails.



My command to sync the mails from the old host to the master-master 
system looks as follows:


doveadm -o imapc_user=$i*dovemig -o imapc_password=password -o 
imapc_host=oldhost -o imapc_features=rfc822.size fetch-headers -o 
mail_prefetch_count=20 -v -D sync -R -u$EMAIL imapc:  $LOGS/$i.log



So, is this actually the wrong approach to sync mails from the old host 
to the new one or is it just not recommended to sync them over-and-over 
again in such a setup via imapc or is it better to sync them only once?


Any hint/pointing me to the right solution is greatly appreciated.


Michael


Re: Quota policy service not rejecting messages when user over quota

2015-07-17 Thread James Lott
This issue was another silly oversight on my part. It turns out I had 
neglected to include 'quota' in my mail_plugins directive. For shame.

On Thursday, July 16, 2015 18:42:50 ja...@lottspot.com wrote:
 For some very odd reason, the quota-status service is failing to enforce
 quotas. Every other aspect of my configuration is working with
 absolutely no problems. When I attempt delivery via LTMP, the message
 is, as expected, rejected due to the user's inbox being full.
 
 root@smtp:/usr/local/etc/mail-config # nc -U
 /var/spool/postfix/private/dovecot-lmtp
  220 mx0.lottspot.com Dovecot ready.
 
  LHLO localhost
 
  250-mx0.lottspot.com
  250-8BITMIME
  250-ENHANCEDSTATUSCODES
  250 PIPELINING
 
  MAIL FROM:root@localhost
 
  250 2.1.0 OK
 
  RCPT TO:ja...@lottspot.vpn
 
  552 5.2.2 ja...@lottspot.vpn Quota exceeded (mailbox for user is
 full)
 
 The policy service however, just lets everything go right through. I
 know that accessing the userdb is not an issue, because I passed a bogus
 user before passing my real user and received the expected response.
 
 root@smtp:/usr/local/etc/mail-config # nc -U
 /var/spool/postfix/private/policy-quota
 
  recipient=n...@fake.tld
 
  action=551 User not found
 
 
  recipient=ja...@lottspot.vpn
 
  action=250 Quota status success
 
 
 I'm using Dovecot 2.2.15, and I have included my quota configuration
 below. If anyone wants to see full doveconf -n output, I can provide it,
 but figured it was a bit much for this case. Thanks in advance for any
 pointers!
 
 -- Note: I'm the quota_status_* directives have been set as is for
 testing purposes only. I'm fully aware not to do that in production.
 
 plugin {
quota = maildir:User quota
quota_rule  = *:bytes=1G
quota_rule2 = Trash:storage=+10%%
quota_status_success = 250 Quota status success
quota_status_nouser  = 551 User not found
quota_status_overquota = 552 5.2.2 Recipient mailbox is full
 }
 service quota-status {
executable = quota-status -p postfix
unix_listener /var/spool/postfix/private/policy-quota {
  user  = postfix
  group = wheel
  mode  = 0666
}
 }

-- 
James Lott


migrate via dsync error Panic: file mail-transaction-log.c: line 271 (mail_transaction_log_rotate): assertion failed: (file-locked)

2015-07-17 Thread wuwei
hi all
 when I use dsync migrate users from dovecot2.0.14(maildir Solaris10) to
dovecot2.2.15(mdbox debian7) , most of the users migrated well, only one
user has a error.

migrate cmd:
$dovecotHomebin/doveadm -Dv -o mail_fsync=never -o imapc_host=$ip backup
-R -u $user imapc:

dovecot2.2.15 log:

doveadm(root): Debug: Loading modules from directory:
/home/mail/dovecot/lib/dovecot
doveadm(root): Debug: Module loaded:
/home/mail/dovecot/lib/dovecot/lib10_quota_plugin.so
doveadm(root): Debug: Module loaded:
/home/mail/dovecot/lib/dovecot/lib15_notify_plugin.so
doveadm(root): Debug: Module loaded:
/home/mail/dovecot/lib/dovecot/lib20_fts_plugin.so
doveadm(root): Debug: Module loaded:
/home/mail/dovecot/lib/dovecot/lib20_mail_log_plugin.so
doveadm(root): Debug: Module loaded:
/home/mail/dovecot/lib/dovecot/lib20_zlib_plugin.so
doveadm(root): Debug: Module loaded:
/home/mail/dovecot/lib/dovecot/lib21_fts_lucene_plugin.so
doveadm(root): Debug: Loading modules from directory:
/home/mail/dovecot/lib/dovecot/doveadm
doveadm(root): Debug: Skipping module doveadm_acl_plugin, because dlopen()
failed: /home/mail/dovecot/lib/dovecot/doveadm/lib10_doveadm_acl_plugin.so:
undefined symbol:
 acl_user_module (this is usually intentional, so just ignore this message)
doveadm(root): Debug: Skipping module doveadm_expire_plugin, because
dlopen() failed:
/home/mail/dovecot/lib/dovecot/doveadm/lib10_doveadm_expire_plugin.so:
undefined s
ymbol: expire_set_deinit (this is usually intentional, so just ignore this
message)
doveadm(root): Debug: Module loaded:
/home/mail/dovecot/lib/dovecot/doveadm/lib10_doveadm_quota_plugin.so
doveadm(root): Debug: Module loaded:
/home/mail/dovecot/lib/dovecot/doveadm/lib10_doveadm_sieve_plugin.so
doveadm(root): Debug: Module loaded:
/home/mail/dovecot/lib/dovecot/doveadm/lib20_doveadm_fts_lucene_plugin.so
doveadm(root): Debug: Module loaded:
/home/mail/dovecot/lib/dovecot/doveadm/lib20_doveadm_fts_plugin.so
doveadm(chenwengu...@eachnet.com): Debug: auth input:
chenwengu...@eachnet.com
home=/data/02/eachnet.com/281/721/chenwengu...@eachnet.com uid=1010 gid=1010
mail=mdbox:/
data/02/eachnet.com/281/721/chenwengu...@eachnet.com
quota_rule=*:storage=1024MB
sieve_dir=/data/02/eachnet.com/281/721/chenwengu...@eachnet.com
sieve=/data/02/eachnet.
com/281/721/chenwengu...@eachnet.com/dovecot.sieve
doveadm(chenwengu...@eachnet.com): Debug: Added userdb setting:
mail=mdbox:/data/02/eachnet.com/281/721/chenwengu...@eachnet.com
doveadm(chenwengu...@eachnet.com): Debug: Added userdb setting:
plugin/quota_rule=*:storage=1024MB
doveadm(chenwengu...@eachnet.com): Debug: Added userdb setting:
plugin/sieve=/data/02/eachnet.com/281/721/chenwengu...@eachnet.com/dovecot.sieve
doveadm(chenwengu...@eachnet.com): Debug: Added userdb setting:
plugin/sieve_dir=/data/02/eachnet.com/281/721/chenwengu...@eachnet.com
doveadm(chenwengu...@eachnet.com): Debug: Effective uid=1010, gid=1010,
home=/data/02/eachnet.com/281/721/chenwengu...@eachnet.com
doveadm(chenwengu...@eachnet.com): Debug: Quota root:
name=chenwengu...@eachnet.com backend=dict
args=:redis:host=172.24.202.60:prefix=user_quota/
doveadm(chenwengu...@eachnet.com): Debug: Quota rule:
root=chenwengu...@eachnet.com mailbox=* bytes=1073741824 messages=0
doveadm(chenwengu...@eachnet.com): Debug: Quota rule:
root=chenwengu...@eachnet.com mailbox=Trash bytes=+858993459 (80%)
messages=0
doveadm(chenwengu...@eachnet.com): Debug: Quota warning: bytes=966367641
(90%) messages=0 reverse=no command=quota-warning 90
chenwengu...@eachnet.com
doveadm(chenwengu...@eachnet.com): Debug: Quota warning: bytes=858993459
(80%) messages=0 reverse=no command=quota-warning 80
chenwengu...@eachnet.com
doveadm(chenwengu...@eachnet.com): Debug: Quota warning: bytes=751619276
(70%) messages=0 reverse=no command=quota-warning 70
chenwengu...@eachnet.com
doveadm(chenwengu...@eachnet.com): Debug: Quota warning: bytes=644245094
(60%) messages=0 reverse=no command=quota-warning 60
chenwengu...@eachnet.com
doveadm(chenwengu...@eachnet.com): Debug: Quota grace:
root=chenwengu...@eachnet.com bytes=107374182 (10%)
doveadm(chenwengu...@eachnet.com): Debug: dict quota:
user=chenwengu...@eachnet.com,
uri=redis:host=172.24.202.60:prefix=user_quota/, noenforcing=0
doveadm(chenwengu...@eachnet.com): Debug: Namespace inbox: type=private,
prefix=, sep=., inbox=yes, hidden=no, list=yes, subscriptions=yes
location=mdbox:/data/02/eachn
et.com/281/721/chenwengu...@eachnet.com
doveadm(chenwengu...@eachnet.com): Debug: fs:
root=/data/02/eachnet.com/281/721/chenwengu...@eachnet.com, index=,
indexpvt=, control=, inbox=, alt=
doveadm(chenwengu...@eachnet.com): Debug: Namespace : Using permissions from
/data/02/eachnet.com/281/721/chenwengu...@eachnet.com: mode=0700 gid=default
dsync(chenwengu...@eachnet.com): Debug: Effective uid=1010, gid=1010,
home=/data/02/eachnet.com/281/721/chenwengu...@eachnet.com
dsync(chenwengu...@eachnet.com): Debug: Quota root:
name=chenwengu...@eachnet.com backend=dict

Dovecot - Telnet error

2015-07-17 Thread Sachin Kulkarni1
Hello All,

I have installed dovecot and started it.

However when I try to telnet getting below error means dovecot starting is not 
successful.

telnet localhost 10110
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
Connection to localhost closed by foreign host.

Please advise.

Thanks and Regards,
Sachin Kulkarni



Disclaimer:  This message and the information contained herein is proprietary 
and confidential and subject to the Tech Mahindra policy statement, you may 
review the policy at http://www.techmahindra.com/Disclaimer.html externally 
http://tim.techmahindra.com/tim/disclaimer.html internally within TechMahindra.




Dovecot-EE repository for Debian 8 (Jessie/stable)

2015-07-17 Thread Bernhard Schmidt
Hi,

are there plans to support Debian 8 (alias stable, alias jessie) in the
dovecot-ee repository? Currently there are only squeeze and wheezy
repos. The wheezy repo is uninstallable due to an unsatisfyable
dependency on libicu48. 

Of course you can install libicu48 from Wheezy on a Jessie system, but
this will break security updates and might not be the best idea for a
library like that.

Bernhard


Re: quota_full_tempfail = yes broken with lmtp_rcpt_check_quota (was: Re: lmtp_rcpt_check_quota not working)

2015-07-17 Thread Bernhard Schmidt
Bernhard Schmidt be...@birkenwald.de wrote:

*bump* this is still an issue with Dovecot 2.2.18.2 from the dovecot-ee
repository

 With 2.2.15 from dovecot-ee it is different. The quota is now checked at
 RCPT stage

 # 2.2.15.8 (912dd04d7a14+): /etc/dovecot/dovecot.conf
 # Pigeonhole version 0.4.6 (4b9b9a88ac9b)
 # OS: Linux 3.2.0-4-amd64 x86_64 Debian 7.8 

  - MAIL FROM:sen...@domain.de
-  250 2.1.0 OK
  - RCPT TO:recipi...@domain.de
** 552 5.2.2 recipi...@domain.de Quota exceeded (mailbox for user is full)

 But as you can see, the setting for quota_full_tempfail is now ignored.
 It should be deferring the message, not rejecting it. When I disable
 lmtp_rcpt_check_quota it behaves like 2.2.13.

 Summary:
 - In 2.2.9 and 2.2.13 lmtp_rcpt_check_quota is ignored
 - In 2.2.15 lmtp_rcpt_check_quota works, but quota_full_tempfail is
   ignored at the RCPT TO stage. It still works at the DATA stage, so
   disabling lmtp_rcpt_check_quota is a workaround falling back to 2.2.13
   behaviour

 Bernhard



Re: Dovecot - Telnet error

2015-07-17 Thread Shane James
Port 110 is what you want

 On 17 Jul 2015, at 17:43, Sachin Kulkarni1 sk00335...@techmahindra.com 
 wrote:
 
 Hello All,
 
 I have installed dovecot and started it.
 
 However when I try to telnet getting below error means dovecot starting is 
 not successful.
 
telnet localhost 10110
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
Connection to localhost closed by foreign host.
 
 Please advise.
 
 Thanks and Regards,
 Sachin Kulkarni
 
 
 
 Disclaimer:  This message and the information contained herein is proprietary 
 and confidential and subject to the Tech Mahindra policy statement, you may 
 review the policy at http://www.techmahindra.com/Disclaimer.html externally 
 http://tim.techmahindra.com/tim/disclaimer.html internally within 
 TechMahindra.
 
 


Re: Dovecot - Telnet error

2015-07-17 Thread Muzaffer Tolga Ozses
It was indeed successful. You should be worried if you don't get the
message.
On 17 Jul 2015 20:01, Shane James sh...@phpboy.co.za wrote:

 Port 110 is what you want

  On 17 Jul 2015, at 17:43, Sachin Kulkarni1 sk00335...@techmahindra.com
 wrote:
 
  Hello All,
 
  I have installed dovecot and started it.
 
  However when I try to telnet getting below error means dovecot starting
 is not successful.
 
 telnet localhost 10110
 Trying 127.0.0.1...
 Connected to localhost.
 Escape character is '^]'.
 Connection to localhost closed by foreign host.
 
  Please advise.
 
  Thanks and Regards,
  Sachin Kulkarni
 
 
 
 
  Disclaimer:  This message and the information contained herein is
 proprietary and confidential and subject to the Tech Mahindra policy
 statement, you may review the policy at
 http://www.techmahindra.com/Disclaimer.html externally
 http://tim.techmahindra.com/tim/disclaimer.html internally within
 TechMahindra.
 
 
 



Re: Helper to open /doc/wiki/.. paths; suggestions

2015-07-17 Thread Christian Jaeger
2015-07-17 22:12 GMT+01:00 Christian Jaeger chr...@gmail.com:
 (why the !? Is it a comment char?)

To be clear, I got that explained to me on IRC; I was writing from the
perspective of the newcomer.


Helper to open /doc/wiki/.. paths; suggestions

2015-07-17 Thread Christian Jaeger
I wrote this script to have an easier time looking at the doc paths
referenced from the default configuration files (currently using
dovecot in Debian oldstable).

Feel free to include in the distribution or wherever.

Probably a better solution would be to publish the config files with
the paths already expanded to the online URL, or a local filesystem
path that works (in the latter case, I'd wish the docs would be
bundled in html format). I wonder whether to approach the debian
maintainer about this or the Dovecot team? Definitely something for
the maintainer is to put the bundled docs in a place where I would
have expected it (/usr/share/docs/dovecot/wiki/ instead of
/usr/share/docs/dovecot-core/dovecot/wiki/, or a dovecot-doc package,
also, links or mentions from the doc dirs of all dovecot packages to
the docs).

Also, I think there should be a README document that serves as the
first introduction of the user to how to configure the system: how are
the config files split up, what does !include mean (why the !? Is
it a comment char?), other rules on the config file format. I.e. the
basics to enable the new user to go about reading the current config
and where to find further docs/help.

Thanks  Cheers,
Christian.


dovecot-doc-open
Description: Binary data