Re: [Dovecot] Dovecot "sleep" for short snapshots

2012-12-15 Thread Jack Bates
On 12/15/2012 1:52 AM, Peer Heinlein wrote: Making consistent backups from Dovecot with mdbox requires a snapshoted filesystem with (at least) a short Downtime for Dovecot. I'd like to avoid killing several thenthousand IMAP-sessions for 60 seconds. Users don't like that... And the admin dislak

Re: [Dovecot] BUG: mishandling of username if it's a keyword?

2012-12-14 Thread Jack Bates
#x27;t explicitly create such account. I'll get this fixed when I have a bit of time. The fix isn't as easy as I'd like and it affects a large part of the authentication.. On 14.12.2012, at 18.04, Jack Bates wrote: Dec 14 14:33:14 test2 dovecot: auth: Debug: master userdb out: USER

Re: [Dovecot] BUG: mishandling of username if it's a keyword?

2012-12-14 Thread Jack Bates
;home" is being left out. This is definitely an issue with auth userdb. This was on 2.1.12. I upgraded. Jack On 12/14/2012 10:00 AM, Jack Bates wrote: Additional info by switching the home= and uid= settings in the config. userdb { args = home=/nfs/maildir/vmail/%u uid=vmail

Re: [Dovecot] BUG: mishandling of username if it's a keyword?

2012-12-14 Thread Jack Bates
Additional info by switching the home= and uid= settings in the config. userdb { args = home=/nfs/maildir/vmail/%u uid=vmail gid=vmail mail_location=maildir:~/Maildir driver = static } We got the effective id, but then home was unset and the user became the home setting. lol Dec 14 15:5

[Dovecot] BUG: mishandling of username if it's a keyword?

2012-12-14 Thread Jack Bates
Dec 14 14:33:03 test2 dovecot: auth: Debug: auth client connected (pid=24143) Dec 14 14:33:14 test2 dovecot: auth: Debug: client in: AUTH#0111#011PLAIN#011service=pop3#011secured#011session=D6dl6dDQdAAB#011lip=::1#011rip=::1#011lport=110#011rport=38004#011resp= Dec 14 14:33:14

Re: [Dovecot] Add S= to maildirfile

2012-10-18 Thread Jack Bates
On 10/18/2012 11:22 AM, Robert Schetterer wrote: Am 18.10.2012 16:29, schrieb Alessio Cecchi: Hi, in some old Maildir/ I have file without the S= in file name. Is possibile to add the size to the file name with some tools like doveadm? Are there other methods to update these file? Thanks p

Re: [Dovecot] lmtp proxy logging

2012-10-17 Thread Jack Bates
nge it too much. You have already started xclient work in v2.2 which would necessitate a lot of changes to the lmtp/proxy code. I've actually debated backporting it to 2.1 for my own use. :) Jack On 10/15/2012 3:10 PM, Jack Bates wrote: On 10/15/2012 2:07 PM, Jack Bates wrote: On 10/

Re: [Dovecot] dovecot-core, dovecot-mysql for Debian squeeze

2012-10-17 Thread Jack Bates
On 10/17/2012 6:47 PM, Ricardo wrote: to install dovecot-core, dovecot-mysql, install it without problems is the version (2.1.7-2 ~ bpo60 +1) of both packages, now wanting to install dovecot-imapd dovecot-pop3d (version 1.2.15-7) breaks the dovecot-core, dovecot-mysql, apparently must be the sam

Re: [Dovecot] Dovecot: pipe() failed: Too many open files

2012-10-17 Thread Jack Bates
I'm using RHEL6 instead of ubuntu, but check the startup scripts. In RHEL's case, the following file is sourced, so I updated it instead of the startup scripts. cat /etc/sysconfig/dovecot # Here you can specify your dovecot command line options. # #OPTIONS="" ulimit -n 4096 ulimit -u 5120 In a

Re: [Dovecot] Per user quotas

2012-10-17 Thread Jack Bates
hange Also yes, I noticed the numbering and have corrected. Thanks for your quick reply. Dave -Original Message- From: dovecot-boun...@dovecot.org [mailto:dovecot-boun...@dovecot.org] On Behalf Of Jack Bates Sent: 17 October 2012 04:02 To: dovecot@dovecot.org Subject: Re: [Dovecot] Per us

Re: [Dovecot] dovecot died

2012-10-17 Thread Jack Bates
Read the wiki that was linked. It could be anything from ntpd/OS/hardware bug. It isn't uncommon for there to be TSC timing issues as well. I have a cutting edge server that has a bug that breaks TSC and causes timing issues. Luckily, my OS is relatively good at not stepping backwards in time.

Re: [Dovecot] Dovecot failed logins delay all logins

2012-10-17 Thread Jack Bates
On 10/17/2012 1:44 AM, Dominic Malolepszy wrote: I think I found a solution to this thanks to a post by Timo here: http://dovecot.org/list/dovecot/2011-December/062631.html service anvil { unix_listener anvil-auth-penalty { mode = 0 } } You can also leave IP based penalties and set your other

Re: [Dovecot] Per user quotas

2012-10-16 Thread Jack Bates
On 10/16/2012 11:39 AM, David Travers wrote: Hi All, I keep going round in circles with this. I have quotas up and running but would like to add a couple of per user exceptions but can't figure out how to do it! I am using Open Xchange community edition on top of dovecot and tha tis showing t

Re: [Dovecot] Difference between Indexing and Rescan in FTS

2012-10-16 Thread Jack Bates
On 10/16/2012 6:14 PM, Fred Kilbourn wrote: I've had squat running on dovecot 2.0 and have been updating all users mailbox indexes nighty via cron with this command: doveadm -v search -A text xyzzyx I've just updated to 2.1 and I'm migrating to lucene indexes, but reading the documentation

Re: [Dovecot] real_rip variable addition for dovecot 2.1.10

2012-10-16 Thread Jack Bates
Umm, yeah. Setting your rsyslog to pipe certain IP matches to another file really screws things up when you change the log to include that IP. Hours of work before I figured out that it was logging just fine but to another file. lol Jack On 10/16/2012 5:51 PM, Jack Bates wrote: Still have

Re: [Dovecot] real_rip variable addition for dovecot 2.1.10

2012-10-16 Thread Jack Bates
Still have some problems with the patch. will have to research it more. Worked fine on localhost, but isn't logging at all for foreign hosts in a production environment. Jack On 10/16/2012 3:43 PM, Jack Bates wrote: Timo, Please check the code. I didn't add it, but a real_li

[Dovecot] real_rip variable addition for dovecot 2.1.10

2012-10-16 Thread Jack Bates
p.patch dovecot: pop3-login: Login: user=, method=PLAIN, rip=192.168.1.5, lip=::1, pip=::1, mpid=8665, secured Jack Bates

Re: [Dovecot] Problem with quota update in dovecot 1.2

2012-10-16 Thread Jack Bates
On 10/16/2012 9:00 AM, tower wrote: Yes, now I see, that messages still is in folder from which I move it. In thunderbird I do drag and drop (FYI). Is there any switch in dovecot configuration which treats message as deleted from folder, from which I move that message? Not to my knowledge, bu

Re: [Dovecot] Problem with quota update in dovecot 1.2

2012-10-16 Thread Jack Bates
On 10/16/2012 8:39 AM, tower wrote: Hi A have a problem with quota2 table, working under postfixadmin. When I login into imap server with thunderbird client everything works fine, quota is update when i receive a message, but when I move message to trash or any other folder value for messages

Re: [Dovecot] lmtp proxy logging

2012-10-15 Thread Jack Bates
On 10/15/2012 2:07 PM, Jack Bates wrote: On 10/12/2012 2:40 AM, Timo Sirainen wrote: would probably complicate the code. I don't think this would be difficult to implement. Probably just a few lines of code. Yeah, could be useful. If there's no argument over the last emai

Re: [Dovecot] lmtp proxy logging

2012-10-15 Thread Jack Bates
On 10/12/2012 2:40 AM, Timo Sirainen wrote: would probably complicate the code. I don't think this would be difficult to implement. Probably just a few lines of code. Yeah, could be useful. Commented logs below. I did 3 different types of connections. Let me know what you think. Because I

Re: [Dovecot] iterate_query does not use userdb - mail_location not found

2012-10-11 Thread Jack Bates
On 10/11/2012 8:19 AM, dove...@freakout.de wrote: sql.conf: driver = mysql connect = host=much dbname=toarx user=exim password= default_pass_scheme = PLAIN password_query = select user as username, password, userdb_home, userdb_mail, userdb_quota_rule from vusers where email = '%u' user_

Re: [Dovecot] Irrelevant information filling logs

2012-10-10 Thread Jack Bates
On 10/10/2012 8:39 AM, 3.lis...@adminlinux.com.br wrote: Is there a way to send specific Dovecot errors on specific files or just discard them? syslog/rsyslog filters are the best method, in my opinion. This would allow you to filter to another file or discard things you aren't interested i

Re: [Dovecot] Fwd: Re: Dovecot doesnot disconnect at end of pop3 session

2012-10-10 Thread Jack Bates
On 10/10/2012 10:07 AM, Robert JR wrote: list command return msg number and size only. Thanks Below is the proper format you should see. The line with a period at the end is required to show that the list command has completed. If you do not get that, then the server hasn't successfully comp

Re: [Dovecot] Dovecot doesnot disconnect at end of pop3 session

2012-10-10 Thread Jack Bates
On 10/10/2012 9:40 AM, Robert JR wrote: telnet mymail.com 110 user username pass password list quit all commands work except the quit command, Dovecot hang at this point !!! Why Dovecot hang on receiving the Quit command !!! and doesnot disconnect !! Please include your dovecot version. A

Re: [Dovecot] I need a quota expert

2012-10-10 Thread Jack Bates
Looking at the wiki: http://wiki2.dovecot.org/Quota/Dict It appears that the conf files for dict are different than the sql files for auth. This is why you are getting error messages. The auth config needs the driver option, the dict config does not. Create a file specifically for dict and poi

[Dovecot] lmtp proxy logging

2012-10-10 Thread Jack Bates
The logging on lmtp and lmtp proxy is pretty limited from what I can see. It seems to handle errors, Connect, Disconnect, and in the case of lmtp delivery, it logs where an email is saved to. The lmtp may be enough, "connect, saved user, saved user..., disconnect", but I was curious if it is wo

Re: [Dovecot] LDA vs LMTP index files

2012-10-03 Thread Jack Bates
On 10/3/2012 10:03 AM, Charles Marcus wrote: On 2012-10-03 10:34 AM, l...@airstreamcomm.net wrote: In the docs it states that LDA " ...takes mail from anMTAand delivers it to a user's mailbox, while keeping Dovecot index files up to date." I am wondering if LMTP also interacts with the Doveco

Re: [Dovecot] LDA vs LMTP index files

2012-10-03 Thread Jack Bates
On 10/3/2012 9:34 AM, l...@airstreamcomm.net wrote: In the docs it states that LDA " ...takes mail from anMTAand delivers it to a user's mailbox, while keeping Dovecot index files up to date." I am wondering if LMTP also interacts with the Dovecot index files and keeps them up to date? Bra

Re: [Dovecot] possible nfs issue

2012-10-02 Thread Jack Bates
On 10/2/2012 4:39 PM, Cor Bosman wrote: Anyone else with NFS mailspools seeing this? Cor I haven't seen them yet, however, to help troubleshoot, see this link and follow it's links for more details on .nfs files http://wordpress.org/support/topic/how-can-i-prevent-unwanted-nfs-files-from

Re: [Dovecot] BUG to compile dovecot 2.1.10 on Debian 4.0, using gcc 4.1.2

2012-10-01 Thread Jack Bates
It looks like this might be a bug in glibc 2.3.3 http://sourceware.org/bugzilla/show_bug.cgi?id=1392 Jack On 10/1/2012 2:20 PM, Fabio Depin wrote: Hello, Today I needed to compile dovecot 2.1.10 on Debian 4.0, using gcc 4.1.2. When running 'make' getting the following error:

Re: [Dovecot] Logging IP address for failed login

2012-10-01 Thread Jack Bates
On 10/1/2012 3:36 PM, Scott Neville wrote: In /var/log/maillog I get lines like this: Oct 1 04:19:12 olive dovecot: auth: pam(marketing): unknown user Oct 1 04:19:17 olive dovecot: auth: pam(marketing): unknown user I'm guessing you are using a centos package. This may be package version s

Re: [Dovecot] Problem with process_limit

2012-10-01 Thread Jack Bates
On 10/1/2012 4:15 AM, FABIO FERRARI wrote: Hello, i have a problem with the process_limit configuration. Occasionally, it happens that the dovecot.log shows this line: master: Warning: service(imap): process_limit reached, client connections are being dropped So I checked, the process number,

Re: [Dovecot] Log NAT IP address?

2012-10-01 Thread Jack Bates
On 10/1/2012 2:58 AM, David Ledger wrote: At 09:33 -0500 30/9/12, Jack Bates wrote: On 9/30/2012 8:02 AM, Charles Marcus wrote: Hi Timo/everyone, Currently we are logging the remote IP, but is there a way to show the IP address that the NAT connection is coming from? The reason I ask is

Re: [Dovecot] Log NAT IP address?

2012-09-30 Thread Jack Bates
On 9/30/2012 8:02 AM, Charles Marcus wrote: Hi Timo/everyone, Currently we are logging the remote IP, but is there a way to show the IP address that the NAT connection is coming from? The reason I ask is, we are changing ISPs, and I would like to see in the logs when an external connection i

Re: [Dovecot] LTMP Proxy failure fix/hack

2012-09-28 Thread Jack Bates
On 9/28/2012 3:12 PM, Jack Bates wrote: Code needs to be written to handle the special case of us not having any proxy callbacks as they are all bad. Timo, please check and approve. This was diff'd on 2.1.10 on my test server (2.1.9 and 2.1.10 at least had this callback

Re: [Dovecot] LTMP Proxy fails when backend server connection refused

2012-09-28 Thread Jack Bates
On 9/28/2012 12:44 PM, Jack Bates wrote: On 9/28/2012 11:37 AM, Jack Bates wrote: On 9/27/2012 3:30 PM, Jack Bates wrote: Version: 2.1.9 Connecting directly to the proxy server on the LMTP port, issue lhlo, mail from, rcpt to, data. After the . closing of data, it just hangs there. The logs

Re: [Dovecot] LTMP Proxy fails when backend server connection refused

2012-09-28 Thread Jack Bates
On 9/28/2012 11:37 AM, Jack Bates wrote: On 9/27/2012 3:30 PM, Jack Bates wrote: Version: 2.1.9 Connecting directly to the proxy server on the LMTP port, issue lhlo, mail from, rcpt to, data. After the . closing of data, it just hangs there. The logs on the proxy server show: I am not sure

Re: [Dovecot] LTMP Proxy fails when backend server connection refused

2012-09-28 Thread Jack Bates
On 9/27/2012 3:30 PM, Jack Bates wrote: Version: 2.1.9 Connecting directly to the proxy server on the LMTP port, issue lhlo, mail from, rcpt to, data. After the . closing of data, it just hangs there. The logs on the proxy server show: Looking at dovecot's proxy code. Cal

[Dovecot] LTMP Proxy fails when backend server connection refused

2012-09-27 Thread Jack Bates
Version: 2.1.9 Connecting directly to the proxy server on the LMTP port, issue lhlo, mail from, rcpt to, data. After the . closing of data, it just hangs there. The logs on the proxy server show: Sep 27 19:55:12 proxy1 dovecot: lmtp(9398): Connect from 69.8.2.71 Sep 27 19:55:24 proxy1 dovecot