[Dovecot] login processes from attacks staying for hours

2008-07-23 Thread Kai Schaetzl
I'm in the process of rolling out new setups with dovecot on CentOS 5.2 and I notice that dovecot doesn't handle the brute-force attacks too nice. I reduced the limit a bit to some reasonable looking value: login_max_processes_count = 32 to stop them earlier and the number of processes stops at

Re: [Dovecot] login processes from attacks staying for hours

2008-07-23 Thread Kai Schaetzl
Jack Stewart wrote on Wed, 23 Jul 2008 10:29:06 -0700: We you run 'netstat -tan' (or equivalent), what state are the packets in? If it is just a bunch of processes with no active connections then it should not be a big deal. Well, the point is they should not have been there ;-) The

Re: [Dovecot] stopping dovecot

2008-07-27 Thread Kai Schaetzl
Maarten Bezemer wrote on Sun, 27 Jul 2008 11:43:06 +0200 (CEST): It is normal for some services to terminate te main process, but leave active children alive. That may be so, but Timo claimed the opposite (as I read his response). I'm merely pointing out that I cannot see the behavior that

Re: [Dovecot] stopping dovecot

2008-07-27 Thread Kai Schaetzl
Timo Sirainen wrote on Sun, 27 Jul 2008 17:14:29 +0300: The behavior is controlled by shutdown_clients setting. I suppose you have it set to no? It's set to how dovecot.conf came: #shutdown_clients = yes If that indicates the default it is enabled. But it didn't work. The thread I started

Re: [Dovecot] POP3 locking

2008-07-30 Thread Kai Schaetzl
Matthias Andree wrote on Wed, 30 Jul 2008 09:59:33 +0200: setting pop3_lock_session=yes works as expected (ca. 1.1.2 from hg): but it seems to be off by default. From my dovecot.conf (1.07): #pop3_lock_session = no I think it should be on by default. Kai -- Kai Schätzl, Berlin, Germany Get

Does domain quota work and how?

2018-08-16 Thread Kai Schaetzl
Hello, I'm in the process of moving users from an old dovecot setup with system users to a modern virtual user setup. I can't find good documentation on domain quota. It is mentioned in the docs as quota2 = dict:domain:%d:proxy::quota_domain but not much more. Searching the mailing list or

Re: Does domain quota work and how?

2018-08-17 Thread Kai Schaetzl
Aki Tuomi wrote on Thu, 16 Aug 2018 21:03:44 +0300 (EEST): > Can you provide doveconf -n please? Thanks for the quick reply. I think I already provided the most relevant portions of config. I ran a doveconf -n and it doesn't reveal important information like sql setup. I'll do my best to sum

Re: systemd also listening on imaps port

2018-08-20 Thread Kai Schaetzl
Ok, thanks! Kai

Re: creation of ssl-parameters fails

2018-08-19 Thread Kai Schaetzl
Aki Tuomi wrote on Sun, 19 Aug 2018 18:21:31 +0300: > Just generate new parameters on some machine with good entropy source. So, if it fails to transform (although bigger) the machine hasn't enough entropy (because it's quite new?)? I'm generating now on the original machine from last year

Re: creation of ssl-parameters fails

2018-08-19 Thread Kai Schaetzl
Well, on that machine it took now more than an hour. But it created the same 769 bytes file as on the other machines. And, foreseeable, that one fails to transform as well. -rw-r--r-- 1 root root 360 Aug 7 2017 ssl-parameters.dat -rw-r--r-- 1 root root 769 Aug 19 19:25

creation of ssl-parameters fails

2018-08-19 Thread Kai Schaetzl
I did that the last time one year ago, now on another machine with the same software (Ubuntu 16.04) it fails. openssl dhparam 4096 > /var/lib/dovecot/ssl-parameters.dat dd if=/var/lib/dovecot/ssl-parameters.dat bs=1 skip=88 | openssl dhparam -inform der > /etc/dovecot/dh.pem last command fails

systemd also listening on imaps port

2018-08-20 Thread Kai Schaetzl
I noticed that most of the time with dovecot 2.3 I get this output, showing systemd listening on the port as well: lsof -i TCP:993 systemd 1 root 38u IPv4 3388360574 0t0 TCP *:imaps (LISTEN) systemd 1 root 41u IPv6 3388360575 0t0 TCP *:imaps (LISTEN) dovecot 11607 root

Re: Does domain quota work and how?

2018-08-20 Thread Kai Schaetzl
So, is this config correct for domain quota dictionary-based and how should it work? Kai

Re: creation of ssl-parameters fails

2018-08-20 Thread Kai Schaetzl
Aki Tuomi wrote on Sun, 19 Aug 2018 20:56:28 +0300 (EEST): > openssl gendh 4096 > params.pem Ok. I then misunderstood what's written at https://wiki.dovecot.org/SSL/DovecotConfiguration I thought I need to create dh.pem in two steps: 1. openssl dhparam 4096 >

Re: dovecot and postfix, help?

2018-08-18 Thread Kai Schaetzl
Christy S wrote on Fri, 17 Aug 2018 18:05:47 -0500: > I see the > connection in the log, but no errors. what do you see? And, also, what exactly do you want to do? (e.g. with what do you send which email from->to via what, how should this affect your server and what do you check on your

Re: Does domain quota work and how?

2018-09-01 Thread Kai Schaetzl
Kai Schaetzl wrote on Mon, 20 Aug 2018 13:32:59 +0200: > So, is this config correct for domain quota dictionary-based and how > should it work? Hello, resolving a problem and knowing that there is a problem are two different things. I would still like to know if this config is correct a

dsync mail from a remote server

2018-09-10 Thread Kai Schaetzl
I would like to transfer mail for some users from an old dovecot (with no doveadm) to a modern dovecot (2.3.2). I've read up on https://wiki2.dovecot.org/Tools/Doveadm/Sync https://wiki2.dovecot.org/Migration/Dsync and I'm not sure if I can use doveadm for this purpose. I need doveadm to login

Re: How to send mail to mailbox with disabled domain?

2018-09-11 Thread Kai Schaetzl
Gerald Galster wrote on Tue, 11 Sep 2018 20:49:17 +0200: > Is this a dovecot problem on your side? dovecot usually accepts mail > from MTA like postfix, so it would be better to remove example1.com from > postfix relaydomains (mailbox domains, alias domains, ...). Then there > is no delivery to

doveadm quota error output in some cases

2018-09-27 Thread Kai Schaetzl
I am testing a special setup on one machine where I want to put some local users that get mail locally to /home user directories via postfix transport map local: for historical and practical reasons. Other users are setup as virtual users. The local users are *also* setup as virtual users for

Re: doveadm quota error output in some cases

2018-10-05 Thread Kai Schaetzl
I changed this now to a more standard setup using a mysql passdb/userdb for virtual users and a passwordfile auth (auth-passwordfile.ext) as described in doc/wiki/AuthDatabase.PasswdFile.txt for a few other users. I'm still getting the same errors concerning dict access when running doveadmin

Re: split auth from other logging

2018-09-26 Thread Kai Schaetzl
I hoped I don't have to switch to syslog logging. Well, anyway. I changed 10-logging.conf: syslog_facility = uucp and commented out the other log lines. rsyslog.d/50-default.conf: uucp.debug -/var/log/dovecot/debug.log uucp.info

Re: split auth from other logging

2018-09-26 Thread Kai Schaetzl
Kai Schaetzl wrote on Wed, 26 Sep 2018 12:43:28 +0200: > But it logs only to /var/log/syslog It seems that "service rsyslog restart" doesn't correctly restart rsyslogd. You have to stop and start it. Then it picks up the changed config. Kai -- Get your web at Conactive Inte

Re: split auth from other logging

2018-09-26 Thread Kai Schaetzl
This works for splitting off lmtp traffic, for instance. syslog_facility = uucp rsyslog: :msg, contains, "lmtp(" -/var/log/dovecot/lmtp.log & stop uucp.=debug -/var/log/dovecot/debug.log uucp.=info -/var/log/dovecot/dovecot.log uucp.=warn

Re: split auth from other logging

2018-09-26 Thread Kai Schaetzl
I forgot to mention that you have to change owner for the /var/log/dovecot directory before rsyslog can log. Kai

Re: split auth from other logging

2018-09-26 Thread Kai Schaetzl
I'm not going to log dovecot to mail, that creates only the same mixup as before, even worse, now postfix and dovecot mixed. I had to stop/start (force-reload would also work) rsyslogd to pick up the changed config. A restart doesn't change the config as with other daemons. Now I can filter

split auth from other logging

2018-09-26 Thread Kai Schaetzl
Is there a way to split the auth logging (logins and failed logins) from the other logging that goes to info_log_path = /var/log/dovecot/dovecot.log ? This log gets a lot of other info as well, most notably the lmtp notifications about every filed mail (with no level stamping, btw). This makes

Re: Re: Panic…

2018-12-14 Thread Kai Schaetzl
Btw, what sizes are we talking about here? I assume it would be really huuuge? What's the max size of the .cache file and how many mails might create this size? Kai

Re: How to send mail to mailbox with disabled domain?

2018-09-17 Thread Kai Schaetzl
Thanks for all the replies. I didn't have time to reply earlier. I went with my first proposed solution. Everything else is simply too much hazzle. You would have to set this for every single exception/address/user and so on and you cannot be sure that it doesn't bite you some time later with a

How to send mail to mailbox with disabled domain?

2018-09-11 Thread Kai Schaetzl
Given the following: mailboxes: us...@example1.com us...@example1.com us...@example1.com etc. aliases: whate...@example1.com -> us...@example1.com whate...@example2.com -> us...@example1.com whate...@example3.com -> us...@example1.com Now the problem: example1.com MX goes elsewhere (doesn't