Re: BUG: Mailbox renaming algorithm got into a potentially infinite loop, aborting

2019-10-17 Thread Alex Ha via dovecot
On Wed, Oct 16, 2019 at 4:55 PM Timo Sirainen  wrote:

> On 25 Sep 2019, at 17.03, Alex Ha via dovecot  wrote:
>
>
> Hi all!
>
> I have two dovecot servers with dsync replication over tcp.
> Replication works fine except for one user.
>
> # doveadm replicator status
> username
> priority fast sync full sync success sync failed
> custo...@example.com
> none 00:00:33  07:03:23  03:22:31 y
>
> If i run dsync manually, i get the following error message:
>
> dsync-local(custo...@example.com): Debug: brain M: -- Mailbox renamed,
> restart sync --
> dsync-local(custo...@example.com): Error: BUG: Mailbox renaming algorithm
> got into a potentially infinite loop, aborting
> dsync-local(custo...@example.com): Error: Mailbox INBOX.Foldername sync:
> mailbox_rename failed: Invalid mailbox name 'Foldername-temp-1': Missing
> namespace prefix 'INBOX.'
>
> I've never fixed this because I haven't figured out how to reproduce it.
> If it happens with you all the time, could you try:
>
>  - Get a copy of both replica sides, e.g. under /tmp/replica1 and
> /tmp/replica2
>  - Make sure dsync still crashes with them, e.g. doveadm -o
> mail=maildir:/tmp/replica1 sync maildir:/tmp/replica2
>  - Delete all mails and dovecot.index* files (but not dovecot.mailbox.log)
>  - Make sure dsync still crashes
>  - Send me the replicas - they should no longer contain anything sensitive
>
> As for fixing, you could see if deleting dovecot.mailbox.log from both
> replicas happens to fix this.
>
>
Unfortunatley deleting dovecot.mailbox.log on both replicas did not fix the
problem.

Alex


Re: BUG: Mailbox renaming algorithm got into a potentially infinite loop, aborting

2019-10-15 Thread Alex Ha via dovecot
Hi all!
I'm using Dovecot 2.2.36.4.
Maybe someone can help, this bug makes the replication unusable for me.

Thanks,
Alex


On Wed, Sep 25, 2019 at 5:03 PM Alex Ha  wrote:

> Hi all!
>
> I have two dovecot servers with dsync replication over tcp.
> Replication works fine except for one user.
>
> # doveadm replicator status
> username
> priority fast sync full sync success sync failed
> custo...@example.com
> none 00:00:33  07:03:23  03:22:31 y
>
> If i run dsync manually, i get the following error message:
>
> dsync-local(custo...@example.com): Debug: brain M: -- Mailbox renamed,
> restart sync --
> dsync-local(custo...@example.com): Error: BUG: Mailbox renaming algorithm
> got into a potentially infinite loop, aborting
> dsync-local(custo...@example.com): Error: Mailbox INBOX.Foldername sync:
> mailbox_rename failed: Invalid mailbox name 'Foldername-temp-1': Missing
> namespace prefix 'INBOX.'
>
> For more info see the attached sync_loop.log
>
> Thanks for your help,
>
> Alex
>


panic: dsync and imapc

2014-08-14 Thread Alex Ha
Hi Dovecot list!

I try to sync from a remote imap server to my local dovecot server via the
dsync tool with imapc.

Here is my command:

# /usr/local/dovecot/bin/dsync -c
/usr/local/dovecot/etc/dovecot/dovecot.conf -D -o imapc_user=
t...@example.com -o imapc_password=pwd backup -R -u t...@example.com imapc:

Here the error message:

dsync(t...@example.com): Panic: file quota-maildir.c: line 827: unreached

Please see the attached debug.txt for a full debug messages and stacktrace.

System info
OS: Ubuntu 14.04 Server 64 Bit
Dovecot: 2.2.13

Thanks,

Alex
# 2.2.13: /usr/local/dovecot/etc/dovecot/dovecot.conf
# OS: Linux 3.13.0-27-generic x86_64 Ubuntu 14.04 LTS 
auth_default_realm = example.com
auth_mechanisms = plain login
auth_verbose = yes
default_client_limit = 1
default_process_limit = 2000
disable_plaintext_auth = no
imap_client_workarounds = delay-newmail tb-extra-mailbox-sep tb-lsub-flags
imapc_features = rfc822.size fetch-headers
imapc_host = external-imap.example.com
imapc_list_prefix = INBOX
imapc_user = %u
mail_location = maildir:~/Maildir
mail_plugins = " quota"
mail_prefetch_count = 20
namespace inbox {
  inbox = yes
  location = 
  mailbox Drafts {
auto = subscribe
special_use = \Drafts
  }
  mailbox Sent {
auto = subscribe
special_use = \Sent
  }
  mailbox "Sent Messages" {
special_use = \Sent
  }
  mailbox Spam {
auto = subscribe
special_use = \Junk
  }
  mailbox Trash {
auto = subscribe
special_use = \Trash
  }
  prefix = 
}
passdb {
  args = /etc/dovecot/dovecot-sql.conf.ext
  driver = sql
}
plugin {
  quota = maildir:User quota
  quota_warning = storage=90%% quota-warning 90 %u
}
pop3_client_workarounds = outlook-no-nuls oe-ns-eoh
pop3_save_uidl = yes
postmaster_address = postmas...@example.com
service anvil {
  client_limit = 12560
}
service auth {
  inet_listener {
port = 12345
  }
  unix_listener /var/spool/postfix/private/auth {
group = postfix
mode = 0660
user = postfix
  }
  unix_listener auth-userdb {
group = vmail
mode = 0660
user = vmail
  }
}
service lmtp {
  unix_listener /var/spool/postfix/private/dovecot-lmtp {
group = postfix
mode = 0660
user = postfix
  }
}
service quota-warning {
  executable = script /usr/local/bin/quota-warning.sh
  unix_listener quota-warning {
user = vmail
  }
  user = vmail
}
ssl_ca = # /usr/local/dovecot/bin/dsync -c /usr/local/dovecot/etc/dovecot/dovecot.conf 
-D -o imapc_user=t...@example.com -o imapc_password=pwd backup -R -u 
t...@example.com imapc:
doveadm(root): Debug: Loading modules from directory: 
/usr/local/dovecot/lib/dovecot
doveadm(root): Debug: Module loaded: 
/usr/local/dovecot/lib/dovecot/lib10_quota_plugin.so
doveadm(root): Debug: Loading modules from directory: 
/usr/local/dovecot/lib/dovecot/doveadm
doveadm(root): Debug: Skipping module doveadm_acl_plugin, because dlopen() 
failed: /usr/local/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: /usr/local/dovecot/lib/dovecot/doveadm/lib10_doveadm_expire_plugin.so: 
undefined symbol: expire_set_deinit (this is usually intentional, so just 
ignore this message)
doveadm(root): Debug: Module loaded: 
/usr/local/dovecot/lib/dovecot/doveadm/lib10_doveadm_quota_plugin.so
doveadm(root): Debug: Skipping module doveadm_fts_plugin, because dlopen() 
failed: /usr/local/dovecot/lib/dovecot/doveadm/lib20_doveadm_fts_plugin.so: 
undefined symbol: fts_backend_rescan (this is usually intentional, so just 
ignore this message)
doveadm(t...@example.com): Debug: Added userdb setting: 
mail=maildir:/data/vmail/e/example.com/t/test/Maildir/
doveadm(t...@example.com): Debug: Added userdb setting: 
plugin/quota_rule=*:bytes=0
doveadm(t...@example.com): Debug: Effective uid=8000, gid=8000, 
home=/data/vmail/m/mailtest.kufnet.at/m/mynet
doveadm(t...@example.com): Debug: Quota root: name=User quota backend=maildir 
args=
doveadm(t...@example.com): Debug: Quota rule: root=User quota mailbox=* bytes=0 
messages=0
doveadm(t...@example.com): Debug: Quota warning: bytes=0 (90%) messages=0 
reverse=no command=quota-warning 90 t...@example.com
doveadm(t...@example.com): Debug: Quota grace: root=User quota bytes=0 (10%)
doveadm(t...@example.com): Debug: Namespace inbox: type=private, prefix=, sep=, 
inbox=yes, hidden=no, list=yes, subscriptions=yes 
location=maildir:/data/vmail/e/example.com/t/test/Maildir/
doveadm(t...@example.com): Debug: maildir++: 
root=/data/vmail/e/example.com/t/test/Maildir, index=, indexpvt=, control=, 
inbox=/data/vmail/e/example.com/t/test/Maildir, alt=
doveadm(t...@example.com): Debug: Namespace : Using permissions from 
/data/vmail/e/example.com/t/test/Maildir: mode=0700 gid=default
dsync(t...@example.com): Debug: Effective uid=8000, gid=8000, 
home=/data/vmail/m/mailtest.kufnet.at/m/mynet
dsync(t...@example.com): Debug

Re: [Dovecot] auth tcp socket, Authentication client gave a PID 7542 of existing connection

2012-03-19 Thread Alex Ha
On Fri, Mar 16, 2012 at 9:39 PM, Alex Ha  wrote:
> On Fri, Mar 16, 2012 at 9:14 PM, Timo Sirainen  wrote:
>> On 16.3.2012, at 22.00, Alex Ha wrote:
>>
>>> dovecot: auth: Error: BUG: Authentication client gave a PID 7542 of
>>> existing connection
>>
>> Oh, right, PIDs of course aren't unique when you're using multiple servers. 
>> Try if the attached patch fixes your troubles. If it does, I'll commit it to 
>> hg.
>>
>
> Thanks Timo! I will try the patch and report to you.
>

Hi Timo!

I tried the patch with 2.0.19 and the dovecot error messages disappeared.

I still get a lot of this postfix warnings:

SASL LOGIN authentication failed: Connection lost to authentication server

but only for ips which tried a sasl brute force attack.

"Connection lost to authentication server" could this be because of
the dovecot auth penalties?
so far i did not get any complaints from users.

Thanks for your help!

Alex


Re: [Dovecot] auth tcp socket, Authentication client gave a PID 7542 of existing connection

2012-03-16 Thread Alex Ha
On Fri, Mar 16, 2012 at 9:14 PM, Timo Sirainen  wrote:
> On 16.3.2012, at 22.00, Alex Ha wrote:
>
>> dovecot: auth: Error: BUG: Authentication client gave a PID 7542 of
>> existing connection
>
> Oh, right, PIDs of course aren't unique when you're using multiple servers. 
> Try if the attached patch fixes your troubles. If it does, I'll commit it to 
> hg.
>

Thanks Timo! I will try the patch and report to you.


Alex


[Dovecot] auth tcp socket, Authentication client gave a PID 7542 of existing connection

2012-03-16 Thread Alex Ha
Hi Dovecot-list!

My setup consists of a dovecot server with lmtp delivery and 3 postfix
mta servers in front.
Previously the mtas authenticated (SASL) through the
courier-authdaemond software to our mysql database.
To get support for more password formats i migrated to dovecot for
SASL authentification.

Our postfix mtas connect to dovecot through a tcp-socket

smtpd_sasl_auth_enable = yes
smtpd_sasl_type = dovecot
smtpd_sasl_path = inet:10.11.100.230:12345
smtpd_sasl_security_options = noanonymous
smtpd_sasl_authenticated_header = yes
smtpd_sasl_local_domain =
broken_sasl_auth_clients = yes

10.11.100.230 is our dovecot server.

Please look at the attached doveconf.log to see my auth service configuration.
I did the configuration according to the postfix SASL README.

http://www.postfix.org/SASL_README.html#server_dovecot

I tested the setup and everything worked fine but after 2 days i
noticed these error messages in
my mail.log:

dovecot: auth: Error: BUG: Authentication client gave a PID 7542 of
existing connection

and also these messages from postfix:

SASL LOGIN authentication failed: Connection lost to authentication server

I get the dovecot error message about 3000 times a day and postfix
message about 270 times.
Please see my attached mail.log for a detailed trace.


Thank you for your help :)

Alex


doveconf.log
Description: Binary data


mail.log
Description: Binary data