Re: antispam plugin, pipe backend, how to make it work?

2016-04-12 Thread Johannes Rohr
Hi List, does the antispam plugin any way of actually seeing how it is calling the pipe program and how it is failing? I can't reproduce the failure when I call sa-learn manually. Can someone tell me, with which UID the call happens, is it the UID the current dovecot process is running under

Re: Different usernames for different login method

2016-04-12 Thread Luca Bertoncello
Zitat von Steffen Kaiser : What does your passdb /userdb config looks like ? You can return the "user" field, see http://wiki2.dovecot.org/PasswordDatabase , to mangle the username for all passdb's, in order to let Dovecot use the same username. I solved the problem upgrading Dovecot to v

Re: Different usernames for different login method

2016-04-12 Thread Steffen Kaiser
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Tue, 12 Apr 2016, Luca Bertoncello wrote: With Dovecot 2.2.9 authenticating against the Active Directory I have following problem: - if I login using LOGIN, PLAIN or CRAM, the username is REALM\login (in my case: CCH\lucabert) - if I login usin

Re: Slow reading of large dovecot-uidlist files

2016-04-12 Thread Steffen Kaiser
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Tue, 12 Apr 2016, Bostjan Skufca wrote: On 12 April 2016 at 14:04, Steffen Kaiser wrote: You could try to trace Dovecot and see if there are a lot of syscalls when a new connection starts up, e.g. with strace or dtruss. Not that many, if I e

Re: Slow reading of large dovecot-uidlist files

2016-04-12 Thread Bostjan Skufca
On 12 April 2016 at 23:16, Timo Sirainen wrote: > > On 09 Apr 2016, at 21:04, Bostjan Skufca wrote: > > (context: I was optimizing Roundcube mailbox list server response, and in > > that 300-400ms response time, around 170ms is spent on single fgets() call > > which is waiting IMAP repsonse to "S

Re: Slow reading of large dovecot-uidlist files

2016-04-12 Thread Timo Sirainen
On 09 Apr 2016, at 21:04, Bostjan Skufca wrote: > > Hi there, > > (context: I was optimizing Roundcube mailbox list server response, and in > that 300-400ms response time, around 170ms is spent on single fgets() call > which is waiting IMAP repsonse to "SELECT MyMailbox" command) > > I straced

Re: Dsync Header Hashing

2016-04-12 Thread Richard Laager
On 04/12/2016 04:05 PM, Timo Sirainen wrote: I added it today: https://github.com/dovecot/core/commit/03af8e5325a7b4fec36414ac35949457bc426c0b Cool. And thanks for the awesome software! -- Richard

Re: Dsync Header Hashing

2016-04-12 Thread Richard Laager
We've completed our migration to Dovecot (yay!), so this isn't critical for me any more. But this change might still be a useful addition to Dovecot. It doesn't create any non-standard behavior (like my patch for non-atom flags). On 03/07/2016 11:16 PM, Richard Laager wrote: On 03/04/2016 08:

Re: antispam plugin, pipe backend, how to make it work?

2016-04-12 Thread Johannes Rohr
Hi Tom, Am 12.04.2016 um 22:26 schrieb Tom Hendrikx: On 12-04-16 20:14, Johannes Rohr wrote: Hi, my setup is a dovecot 2.0.19 IMAP server on Ubuntu Precise with the antispam plugin in version 2.0+20120225-2 and spamassassin at version 3.2.2 I have been trying and failed to get the pipe b

Re: Dsync Header Hashing

2016-04-12 Thread Timo Sirainen
I added it today: https://github.com/dovecot/core/commit/03af8e5325a7b4fec36414ac35949457bc426c0b > On 12 Apr 2016, at 23:46, Richard Laager wrote: > > We've completed our migration to Dovecot (yay!), so this isn't critical for > me any more. But this change might still be a useful addition to

Re: Plus addressing on Sentora using Postfix

2016-04-12 Thread Christian Kivalo
On 2016-04-12 14:56, Philip McGaw wrote: Dovecot.log Dovecot-info.log Dovecot-debug.log Are all devoid of information, the only log that seems to give anything is mail.log I edited the working dovecot config file to add in recipient_delimiter = + line. And it shows up when running Dovecot -n.

Re: mail-search backtrace

2016-04-12 Thread Timo Sirainen
On 09 Apr 2016, at 21:48, Hugh Bragg wrote: > > I'm repeatedly getting this error: > > Apr 07 04:37:27 imap(mymail@address): Panic: file mail-search.c: line 84 > (mail_search_arg_init): assertion failed: (arg->initialized.keywords == NULL) > Apr 07 04:37:27 imap(mymail@address): Error: Raw back

pop3 and dsync master-master replication issue causing duplicate delivery

2016-04-12 Thread Burak Seydioglu
Hello, I am having an issue with a dsync master-master replication setup. Messages are not being marked current or deleted during the first session causing duplicate delivery when replication is running. It takes two logins and delete commands to get rid of the message. Topology: mda01.dcacti

Re: doveadm sync ignores -u option

2016-04-12 Thread Aki Tuomi
On 12.04.2016 14:32, v...@vetienne.net wrote: 11 avril 2016 14:07 "Max" a écrit: Hi, Since I upgraded from 2.2.21 to 2.2.23, the user option -u seems to be ignored by doveadm sync, or at least it doesn't handle it correctly. I can confirm it breaks replication for me ( multiple user so i h

Re: antispam plugin, pipe backend, how to make it work?

2016-04-12 Thread Tom Hendrikx
On 12-04-16 20:14, Johannes Rohr wrote: > Hi, my setup is a dovecot 2.0.19 IMAP server on Ubuntu Precise with > the antispam plugin in version 2.0+20120225-2 and spamassassin at > version 3.2.2 > > I have been trying and failed to get the pipe backend of the antispam > plugin to work. Spamas

Different usernames for different login method

2016-04-12 Thread Luca Bertoncello
Hi again! With Dovecot 2.2.9 authenticating against the Active Directory I have following problem: - if I login using LOGIN, PLAIN or CRAM, the username is REALM\login (in my case: CCH\lucabert) - if I login using GSSAPI, the username is just login (in my case: lucabert) this makes the access

Re: antispam plugin, pipe backend, how to make it work?

2016-04-12 Thread Johannes Rohr
Hi Jürgen, what do you mean by "It's already integrated"? Of course I added the configuration, see my initial mail below. I still am struggling to understand what the reason for the wrapper script is and how the plugin is supposed to call he helper programme, is the message passed to it via

Re: Plus addressing on Sentora using Postfix

2016-04-12 Thread Christian Kivalo
On 2016-04-12 14:56, Philip McGaw wrote: Dovecot.log Dovecot-info.log Dovecot-debug.log Are all devoid of information, the only log that seems to give anything is mail.log Maybe you need to change some logging settings in dovecot, see http://wiki2.dovecot.org/Logging Is there some mail_debug

Re: antispam plugin, pipe backend, how to make it work?

2016-04-12 Thread J. Echter
dovecot 2.2.10 Am 12.04.2016 um 20:18 schrieb J. Echter: > Hi, > > here (Centos 7) its already integrated... > > Just add something like this: > > plugin { > > > antispam_mail_sendmail = /usr/bin/sa-learn > antispam_mail_sendmail_args = -u amavis > antispam_mail_spam = --spam > antis

antispam plugin, pipe backend, how to make it work?

2016-04-12 Thread Johannes Rohr
Hi, my setup is a dovecot 2.0.19 IMAP server on Ubuntu Precise with the antispam plugin in version 2.0+20120225-2 and spamassassin at version 3.2.2 I have been trying and failed to get the pipe backend of the antispam plugin to work. Spamassin by itself works, a manual call of sa-learn w

Re: antispam plugin, pipe backend, how to make it work?

2016-04-12 Thread J. Echter
Hi, here (Centos 7) its already integrated... Just add something like this: plugin { antispam_mail_sendmail = /usr/bin/sa-learn antispam_mail_sendmail_args = -u amavis antispam_mail_spam = --spam antispam_mail_notspam = --ham } to dovecot.conf Cheers Jürgen Am 12.04.2016 um 20:14

Problem setting owner

2016-04-12 Thread Luca Bertoncello
Hi list! I have a Dovecot 2.2.9 installed from Ubuntu-Repository. It uses LDAP to authenticate against an Active Directory controller. The authentication works, but it tries always to use the UID of the user for the mailbox... I already added: mail_uid = 1005 mail_gid = 8 in 10-

Re: sis deduplication broken from 2.2.16 upwards

2016-04-12 Thread Alexander Moisseev
On 11.03.2016 3:56, Timo Sirainen wrote: So, after the fix is applied, does dovecot silently delete the duplicated files, or is there a command that needs to be run manually? You'd have to do it manually in some way. A script that does something like: Go through all attachment directories and

Re: Slow reading of large dovecot-uidlist files

2016-04-12 Thread Bostjan Skufca
On 12 April 2016 at 14:04, Steffen Kaiser wrote: > > You could try to trace Dovecot and see if there are a lot of syscalls when > a new connection starts up, e.g. with strace or dtruss. Not that many, if I exclude reading the uidlist file contents. See the trace below. does your mailboxes chan

Re: Plus addressing on Sentora using Postfix

2016-04-12 Thread Philip McGaw
Dovecot.log Dovecot-info.log Dovecot-debug.log Are all devoid of information, the only log that seems to give anything is mail.log I edited the working dovecot config file to add in recipient_delimiter = + line. And it shows up when running Dovecot -n. Sent from my iPhone > On 11 Apr 2016,

Re: Slow reading of large dovecot-uidlist files

2016-04-12 Thread Steffen Kaiser
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Tue, 12 Apr 2016, Bostjan Skufca wrote: On 12 April 2016 at 10:23, A.L.E.C wrote: I don't know dovecot's code, but I suppose it uses uidlist file to get mailbox statistics that it returns as EXISTS, RECENT, UNSEEN, UIDNEXT, UIDVALIDITY, etc, wh

Re: doveadm sync ignores -u option

2016-04-12 Thread ve
11 avril 2016 14:07 "Max" a écrit: > Hi, > > Since I upgraded from 2.2.21 to 2.2.23, the user option -u seems to be ignored > by doveadm sync, or at least it doesn't handle it correctly. > I can confirm it breaks replication for me ( multiple user so i have to replicate through ssh by user ro

Re: fts-lucene with virtual folders

2016-04-12 Thread Dmitry Nezhevenko
On Tue, Apr 12, 2016 at 11:26:05AM +0300, Dmitry Nezhevenko wrote: > On Tue, Apr 12, 2016 at 11:05:08AM +0300, Dmitry Nezhevenko wrote: > > indexer-worker(dion): Warning: fts-lucene: Settings have changed, > > rebuilding index for mailbox > The root issue is that fts_lucene_settings_checksum read

Re: Slow reading of large dovecot-uidlist files

2016-04-12 Thread Bostjan Skufca
On 12 April 2016 at 10:23, A.L.E.C wrote: > I don't know dovecot's code, but I suppose it uses uidlist file to get > mailbox statistics that it returns as EXISTS, RECENT, UNSEEN, UIDNEXT, > UIDVALIDITY, etc, which are required by IMAP standard. I don't know, > maybe they could be stored in more o

Re: fts-lucene with virtual folders

2016-04-12 Thread Dmitry Nezhevenko
On Tue, Apr 12, 2016 at 11:05:08AM +0300, Dmitry Nezhevenko wrote: > Hi, > > It looks like I've found something strange. It looks like dovecot > updates fts-lucene index every time I'm opening virtual folder that > contains FTS query: > > indexer-worker(dion): Warning: fts-lucene: Settings have c

Re: Slow reading of large dovecot-uidlist files

2016-04-12 Thread A.L.E.C
On 04/10/2016 10:27 AM, Adrian Minta wrote: > It will be nice if the "SELECT MyMailbox" command will be "SELECT > mymailbox LIMIT 100" or something, to get the first files since only the > last messages are shown to the user. SELECTing a mailbox has nothing to do with FETCHing messages, so above d

fts-lucene with virtual folders

2016-04-12 Thread Dmitry Nezhevenko
Hi, It looks like I've found something strange. It looks like dovecot updates fts-lucene index every time I'm opening virtual folder that contains FTS query: indexer-worker(dion): Warning: fts-lucene: Settings have changed, rebuilding index for mailbox dovecot-virtual is pretty simple: