RE: First steps in Dovecot; IMAP not working

2016-10-17 Thread Moi
>Two things to check: > > # What does dovecot think user "mailtest" has? > doveadm user mailtest I get this: field value uid 1002 gid 8 home/home/mailtest mailmbox:~/mail:INBOX=/var/mail/mailtest system_groups_user mailtest > # The sticky bit should be set

Re: Dict proxy client returning empty string instead of multiline string

2016-10-17 Thread Aki Tuomi
> > > > On 10/16/2016 11:16 PM, Pierre Jaury wrote: > > > >> Hello, > > > >> > > > >> I am using a dict proxy for my sieve extdata plugin to access some > > > >> fields from an SQLite database (autoreply text and other > > > >> database-configured items). > > > >> > > >

Re: dovecot 2.2.25 BUG: local_name is not matching correctly

2016-10-17 Thread Aki Tuomi
On 13.10.2016 16:09, Arkadiusz Miśkiewicz wrote: Bug report: When using dovecot 2.2.25 SNI capability it doesn't always match proper vhost config. For example if we have such config: local_name imap.example.com { ssl_cert = Hi! Fixed in https://github.com/dovecot/core/commit/c19c44f87ef3f

Re: First steps in Dovecot; IMAP not working

2016-10-17 Thread Joseph Tam
Marnaud writes: "mailtest", the new user, is in group mail(8). In addition, I've added write permission for "others" to /var/mail. Now, I'm trying to send a message to "mailtest" from another, working, e-mail account and nothing happens. This time, "doveadm log errors" is empty. In short, I

Re: Massive LMTP Problems with dovecot

2016-10-17 Thread Timo Sirainen
On 17 Oct 2016, at 17:31, Ralf Hildebrandt wrote: > > * Ralf Hildebrandt : > >>> It seems to loop in sha1_loop & hash_format_loop >> >> The problem occurs in both 2.3 and 2.2 (I just updated to 2.3 to check). > > I'm seeing the first occurence of that problem on the 10th of october! > > I was

Re: Dict proxy client returning empty string instead of multiline string

2016-10-17 Thread Aki Tuomi
Sorry, sent the wrong version, please see amended one attached. Aki > On October 17, 2016 at 10:18 PM Aki Tuomi wrote: > > > Oh duh, it used datastack pool. Try again with the attached patch? Please > remember to clear the previous one out before trying. > > Aki > > > > > The trace is miss

Re: Dict proxy client returning empty string instead of multiline string

2016-10-17 Thread Aki Tuomi
Oh duh, it used datastack pool. Try again with the attached patch? Please remember to clear the previous one out before trying. Aki > > The trace is missing some symbols, I will debug tomorrow and see where > the call comes from exactly. > > Regards, > > > On 10/17/2016 06:23 PM, Aki Tuomi w

Re: Dict proxy client returning empty string instead of multiline string

2016-10-17 Thread Pierre Jaury
Thanks for your help, indeed duplicating the result sounds cleaner than duplicating before escaping. However, you patch still fails, when allocating in "pool_data_stack_malloc" this time. I get the following stack trace: Panic: pool_data_stack_malloc(): stack frame changed Error: Raw backtrace: /u

Re: Dict proxy client returning empty string instead of multiline string

2016-10-17 Thread Aki Tuomi
Hi! Looking at the code, I think the bug is that it just copies pointer to the value, it should, instead, duplicate the value to some memory region. Can you see if this following patch fixes it? Aki > On October 17, 2016 at 4:14 PM Pierre Jaury wrote: > > > Okay, it seems to me that the bug

sieve duplicate locking

2016-10-17 Thread Alexander 'Leo' Bergolth
Hi! Does the duplicate sieve plugin do any locking to avoid duplicate parallel delivery of the same message? I sometimes experience duplicate mail delivery of messages with the same message-id, despite the use of a sieve duplicate filter. According to the log files, those messages are delivered i

Re: Dict proxy client returning empty string instead of multiline string

2016-10-17 Thread Pierre Jaury
While trying to isolate properly and reproduce, I was able to trigger the same bug with the following code: struct dict *dict; char* dict_uri = "proxy::sieve"; char* key = "priv/key"; char* username = "ad...@domain.tld"; char* value, error; dict_drivers_register_builtin(); dict_init

Re: Dict proxy client returning empty string instead of multiline string

2016-10-17 Thread Pierre Jaury
Okay, it seems to me that the bug is due to "t_str_tabunescape" using the unsafe datastack ("t_strdup_noconst") while the string is actually returned in an async callback. Before it is handled by "client_dict_lookup", "client_dict_wait" actually fires some IO loops that are more than likely to cal

Re: logging TLS SNI hostname

2016-10-17 Thread KT Walrus
> On Oct 17, 2016, at 2:41 AM, Arkadiusz Miśkiewicz wrote: > > On Monday 30 of May 2016, Arkadiusz Miśkiewicz wrote: >> Is there a way to log SNI hostname used in TLS session? Info is there in >> SSL_CTX_set_tlsext_servername_callback, dovecot copies it to >> ssl_io->host. >> >> Unfortunately I

Re: Massive LMTP Problems with dovecot

2016-10-17 Thread Ralf Hildebrandt
* Ralf Hildebrandt : > > It seems to loop in sha1_loop & hash_format_loop > > The problem occurs in both 2.3 and 2.2 (I just updated to 2.3 to check). I'm seeing the first occurence of that problem on the 10th of october! I was using (prior to the 10th) : 2.3.0~alpha0-1~auto+371 On the 10th I

Re: Massive LMTP Problems with dovecot

2016-10-17 Thread Ralf Hildebrandt
* Ralf Hildebrandt : > * Ralf Hildebrandt : > > I attached gdb top a long running LMTP process: > > > > #0 sha1_loop (ctxt=0x7f3b1a4d7fa0, input=0x7f3b1a524860, len=0) at > > sha1.c:216 > >input_c = 0x7f3b1a524860 "\211PNG\r\n\032\n" > >gaplen = > >gapstart = > >

Re: Massive LMTP Problems with dovecot

2016-10-17 Thread Ralf Hildebrandt
* Ralf Hildebrandt : > I attached gdb top a long running LMTP process: > > #0 sha1_loop (ctxt=0x7f3b1a4d7fa0, input=0x7f3b1a524860, len=0) at sha1.c:216 >input_c = 0x7f3b1a524860 "\211PNG\r\n\032\n" >gaplen = >gapstart = >off = 0 >copysiz = > > #1 0x00

Re: Massive LMTP Problems with dovecot

2016-10-17 Thread Ralf Hildebrandt
I attached gdb top a long running LMTP process: #0 sha1_loop (ctxt=0x7f3b1a4d7fa0, input=0x7f3b1a524860, len=0) at sha1.c:216 input_c = 0x7f3b1a524860 "\211PNG\r\n\032\n" gaplen = gapstart = off = 0 copysiz = #1 0x7f3b19195b29 in hash_format_loop (forma

Re: Massive LMTP Problems with dovecot

2016-10-17 Thread Ralf Hildebrandt
> We'll need the `dovecot -n` output first. Here we go: > # 2.2.devel (933d16f): /etc/dovecot/dovecot.conf > # Pigeonhole version 0.4.devel (63f9b42) > # OS: Linux 3.13.0-98-generic x86_64 Ubuntu 14.04.5 LTS > default_vsz_limit = 2 G > lmtp_user_concurrency_limit = 1 > mail_attachment_dir =

Re: Massive LMTP Problems with dovecot

2016-10-17 Thread Stephan Bosch
Op 10/17/2016 om 3:24 PM schreef Ralf Hildebrandt: > Currently I'm having massive problems with LMTP delivery into dovcot. > dovecot/lmtp processes are piling up, eas using considerable amounts > of CPU: > > # ps auxwww|fgrep dove > > root 20537 0.0 0.0 18124 1196 ?Ss 15:18 0:00

Massive LMTP Problems with dovecot

2016-10-17 Thread Ralf Hildebrandt
Currently I'm having massive problems with LMTP delivery into dovcot. dovecot/lmtp processes are piling up, eas using considerable amounts of CPU: # ps auxwww|fgrep dove root 20537 0.0 0.0 18124 1196 ?Ss 15:18 0:00 /usr/sbin/dovecot -c /etc/dovecot/dovecot.conf dovecot 20541

Re: First steps in Dovecot; IMAP not working

2016-10-17 Thread Marnaud
Sorry, my previous message got mangled. I'm re-writing it, quoting manually. I apologize for the traffic. (Sorry I read this list in digest form so frequently I'm half a step behind.) No problem. No, it's quite explicit. User "webuser" has uid/gid = 1001(webuser)/1000(ftpusers). Your m

Re: First steps in Dovecot; IMAP not working

2016-10-17 Thread Marnaud
Le 14 octobre 2016 à 14:28, Joseph Tam a écrit: (Sorry I read this list in digest form so frequently I'm half a step behind.) No problem.   No, it's quite explicit. User "webuser" has uid/gid = 1001(webuser)/1000(ftpusers). Your mail spool has permission uid/gid = root(0)/mail(8), neither

Re: First steps in Dovecot; IMAP not working

2016-10-17 Thread Marnaud
Le 15 octobre 2016 à 07:35, mick crane a écrit: http://wiki.dovecot.org/FindMailLocation Ok, there are non-standard facts about my user. When I do: eval echo ~webuser I'm getting: /var/www/html/ This is because webuser is for an FTP account in that directory. I'm now trying with a "reg