Found the problem. Solved
sudo ln -s /usr/local/Cellar/mysql/5.6.25/lib/libmysqlclient.18.dylib /usr/local/lib/libmysqlclient.18.dylib shown by error Jul 3 09:46:08 zeus dovecot[2223]: imap-login: Disconnected (disconnected before auth was ready, waited 24 secs): user=<>, rip=127.0.0.1, lip=127.0.0.1, TLS: Disconnected, session= Jul 3 09:46:14 zeus dovecot[2223]: auth: Error: dyld: Library not loaded: /usr/local/lib/libmysqlclient.18.dylib Jul 3 09:46:14 zeus dovecot[2223]: auth: Error: Referenced from: /usr/local/libexec/dovecot/auth Jul 3 09:46:14 zeus dovecot[2223]: auth: Error: Reason: image not found Jul 3 09:46:14 zeus dovecot[2223]: auth: Fatal: master: service(auth): child 44250 killed with signal 6 (core dumps disabled) Jul 3 09:46:14 zeus dovecot[112]: master: Error: service(auth): command startup failed, throttling for 60 secs Somewhere along the line, the link got removed ? Watch out for updates Robert Chalmers https://robert-chalmers.uk aut...@robert-chalmers.uk @R_A_Chalmers
Further errors showing up - as well as Warning: Auth process not responding, delayed sending initial response
Warning: Auth process not responding, delayed sending initial response Jul 3 09:46:08 zeus dovecot[2223]: imap-login: Disconnected (disconnected before auth was ready, waited 24 secs): user=<>, rip=127.0.0.1, lip=127.0.0.1, TLS: Disconnected, session= Jul 3 09:46:14 zeus dovecot[2223]: auth: Error: dyld: Library not loaded: /usr/local/lib/libmysqlclient.18.dylib Jul 3 09:46:14 zeus dovecot[2223]: auth: Error: Referenced from: /usr/local/libexec/dovecot/auth Jul 3 09:46:14 zeus dovecot[2223]: auth: Error: Reason: image not found Jul 3 09:46:14 zeus dovecot[2223]: auth: Fatal: master: service(auth): child 44250 killed with signal 6 (core dumps disabled) Jul 3 09:46:14 zeus dovecot[112]: master: Error: service(auth): command startup failed, throttling for 60 secs Robert Chalmers https://robert-chalmers.uk aut...@robert-chalmers.uk @R_A_Chalmers
Failing connections. Warning: Auth process not responding, delayed ..
can’t access mail after some upgrades. Everything else seems to be working - but dovecot seems to have caught a problem. Jul 3 09:03:35 zeus dovecot[310]: imap-login: Warning: Auth process not responding, delayed sending initial response (greeting): user=<>, rip=5.188.207.15, lip=192.168.0.15, session=<4Wk9wBNw1AAFvM8P> Jul 3 09:03:41 zeus dovecot[310]: imap-login: Warning: Auth process not responding, delayed sending initial response (greeting): user=<>, rip=127.0.0.1, lip=127.0.0.1, TLS, session= Jul 3 09:03:41 zeus dovecot[310]: imap-login: Warning: Auth process not responding, delayed sending initial response (greeting): user=<>, rip=127.0.0.1, lip=127.0.0.1, TLS, session=<8CagwBNwOwB/AAAB> Jul 3 09:03:41 zeus dovecot[310]: imap-login: Warning: Auth process not responding, delayed sending initial response (greeting): user=<>, rip=127.0.0.1, lip=127.0.0.1, TLS, session= Jul 3 09:03:41 zeus dovecot[310]: imap-login: Warning: Auth process not responding, delayed sending initial response (greeting): user=<>, rip=127.0.0.1, lip=127.0.0.1, TLS, session= Jul 3 09:03:42 zeus dovecot[310]: imap-login: Disconnected (disconnected before auth was ready, waited 17 secs): user=<>, rip=5.188.207.15, lip=192.168.0.15, session=<4Wk9wBNw1AAFvM8P> Can’t for the life of me see the problem robert$ dovecot -n # 2.2.16: /usr/local/etc/dovecot/dovecot.conf # OS: Darwin 17.6.0 x86_64 hfs auth_debug = yes auth_debug_passwords = yes auth_mechanisms = plain login auth_verbose = yes auth_verbose_passwords = plain default_internal_user = _dovecot default_login_user = _dovenull mail_debug = yes mail_location = maildir:/var/mail/vhosts/%d/%n mail_max_userip_connections = 30 mail_privileged_group = mail namespace inbox { inbox = yes location = mailbox Drafts { special_use = \Drafts } mailbox Junk { special_use = \Junk } mailbox Sent { special_use = \Sent } mailbox "Sent Messages" { special_use = \Sent } mailbox Trash { special_use = \Trash } prefix = separator = / } passdb { args = /usr/local/etc/dovecot/dovecot-sql.conf.ext driver = sql } passdb { args = %s driver = pam } postmaster_address = postmas...@quanio.net service auth-worker { user = vmail } service auth { executable = /usr/local/libexec/dovecot/auth unix_listener /var/spool/postfix/private/auth { group = _postfix mode = 0666 user = _postfix } unix_listener auth-userdb { mode = 0600 user = vmail } user = _dovecot } service imap-login { executable = /usr/local/libexec/dovecot/imap-login inet_listener imap { address = * port = 143 } inet_listener imaps { address = * port = 993 ssl = yes } process_limit = 128 } service imap { executable = /usr/local/libexec/dovecot/imap process_limit = 128 } service lmtp { unix_listener /var/spool/postfix/private/dovecot-lmtp { group = _postfix mode = 0660 user = _postfix } unix_listener lmtp { group = _postfix mode = 0600 user = _postfix } } service pop3-login { executable = /usr/local/libexec/dovecot/pop3-login inet_listener pop3 { address = * port = 110 } inet_listener pop3s { address = * port = 995 ssl = yes } process_limit = 128 } service pop3 { executable = /usr/local/libexec/dovecot/pop3 process_limit = 128 } ssl_cert = https://robert-chalmers.uk aut...@robert-chalmers.uk @R_A_Chalmers
Where exactly are these Junk]Trash etc folders stored?
These folders are stored somewhere .. but where? mailbox Trash { auto = no special_use = \Trash } mailbox Drafts { auto = no special_use = \Drafts } mailbox Sent { auto = subscribe # autocreate and autosubscribe the Sent mailbox special_use = \Sent } mailbox "Sent Messages" { auto = no special_use = \Sent } mailbox Spam { auto = create # autocreate Spam, but don't autosubscribe special_use = \Junk } mailbox virtual/All { # if you have a virtual "All messages" mailbox auto = no special_use = \All }
Re: Outlook Express with XP...
This is a fairly good explanation on the error http://www.massmailsoftware.com/smtp/554-5-7-1.php > On 2 Jun 2015, at 16:44, Noel wrote: > > Yes, dovecot handles the authentication, but the connection is > handled by postfix. We already know the authentication work since > you can receive mail, so the problem is either postfix or the client. > At any rate, this isn't a dovecot problem. > > > > -- Noel Jones > > > > On 6/2/2015 12:38 AM, SH Development wrote: >> Correct me if I’m wrong, but I thought Dovecot handled client >> authentication, and once authenticated handed off to postfix? >> >> >>> On Jun 1, 2015, at 10:05 PM, Noel wrote: >>> >>> On 6/1/2015 6:27 PM, SH Development wrote: Dovecot 2.0.9 I am able to connect successfully with Thunderbird, Win 8, Apple Mail, iPhone, iPad. Outlook Express on Win XP receives just fine, but will not send. I get a "Client host rejected: Access denied” message. I believe this is simply Postfix telling me the connection isn’t properly authenticated, as setting up the exact same credentials on another client (non OE) works. It is only with OE on XP that I am unable to send/authenticate. I have literally tried every combination of settings in OE and nothing works. What else might I need to enable to get this working? Using SSL, ports 993, 587 PLAINTEXT. >>> Sounds like a problem with postfix talking to your XP client, not a >>> dovecot problem. >>> >>> If you've changed the tls settings in postfix recently, you likely >>> broke compatibility with older clients. If you need further help, >>> feel free to ask on the postfix-users list. Be sure to include >>> "postconf -nf" and "postconf -Mf" output, along with related log >>> entries demonstrating the problem. >>> http://www.postfix.org/DEBUG_README.html#mail >>> >>> >>> -- Noel Jones >>> >>> >>> >>> dovecot -n as follows: # 2.0.9: /etc/dovecot/dovecot.conf # OS: Linux 2.6.32-504.16.2.el6.x86_64 x86_64 CentOS release 6.6 (Final) ext4 log_timestamp = "%Y-%m-%d %H:%M:%S " mail_location = maildir:/home/vmail/%d/%n/Maildir mail_max_userip_connections = 50 namespace { inbox = yes location = prefix = INBOX. separator = . type = private } passdb { args = /etc/dovecot/dovecot-sql.conf driver = sql } protocols = imap pop3 service auth { unix_listener /var/spool/postfix/private/auth { group = postfix mode = 0660 user = postfix } unix_listener auth-master { mode = 0600 user = vmail } user = root } ssl_ca = >>> ssl_cert = >>> ssl_key = >>> userdb { args = uid=5000 gid=5000 home=/home/vmail/%d/%n allow_all_users=yes driver = static } protocol lda { auth_socket_path = /var/run/dovecot/auth-master log_path = /home/vmail/dovecot-deliver.log postmaster_address = postmas...@starionhost.net } protocol pop3 { pop3_uidl_format = %08Xu%08Xv }
Re: Outlook Express with XP...
>>> Client host rejected: Access denied” This looks more like a system denial.. or could be a Blacklist denial of the host by spam filters.? > On 2 Jun 2015, at 06:38, SH Development wrote: > > Correct me if I’m wrong, but I thought Dovecot handled client authentication, > and once authenticated handed off to postfix? > > >> On Jun 1, 2015, at 10:05 PM, Noel wrote: >> >> On 6/1/2015 6:27 PM, SH Development wrote: >>> Dovecot 2.0.9 >>> >>> I am able to connect successfully with Thunderbird, Win 8, Apple Mail, >>> iPhone, iPad. >>> >>> Outlook Express on Win XP receives just fine, but will not send. I get a >>> "Client host rejected: Access denied” message. I believe this is simply >>> Postfix telling me the connection isn’t properly authenticated, as setting >>> up the exact same credentials on another client (non OE) works. It is only >>> with OE on XP that I am unable to send/authenticate. >>> >>> I have literally tried every combination of settings in OE and nothing >>> works. What else might I need to enable to get this working? >>> >>> Using SSL, ports 993, 587 PLAINTEXT. >> >> Sounds like a problem with postfix talking to your XP client, not a >> dovecot problem. >> >> If you've changed the tls settings in postfix recently, you likely >> broke compatibility with older clients. If you need further help, >> feel free to ask on the postfix-users list. Be sure to include >> "postconf -nf" and "postconf -Mf" output, along with related log >> entries demonstrating the problem. >> http://www.postfix.org/DEBUG_README.html#mail >> >> >> -- Noel Jones >> >> >> >> >>> >>> dovecot -n as follows: >>> >>> # 2.0.9: /etc/dovecot/dovecot.conf >>> # OS: Linux 2.6.32-504.16.2.el6.x86_64 x86_64 CentOS release 6.6 (Final) >>> ext4 >>> log_timestamp = "%Y-%m-%d %H:%M:%S " >>> mail_location = maildir:/home/vmail/%d/%n/Maildir >>> mail_max_userip_connections = 50 >>> namespace { >>> inbox = yes >>> location = >>> prefix = INBOX. >>> separator = . >>> type = private >>> } >>> passdb { >>> args = /etc/dovecot/dovecot-sql.conf >>> driver = sql >>> } >>> protocols = imap pop3 >>> service auth { >>> unix_listener /var/spool/postfix/private/auth { >>> group = postfix >>> mode = 0660 >>> user = postfix >>> } >>> unix_listener auth-master { >>> mode = 0600 >>> user = vmail >>> } >>> user = root >>> } >>> ssl_ca = >> ssl_cert = >> ssl_key = >> userdb { >>> args = uid=5000 gid=5000 home=/home/vmail/%d/%n allow_all_users=yes >>> driver = static >>> } >>> protocol lda { >>> auth_socket_path = /var/run/dovecot/auth-master >>> log_path = /home/vmail/dovecot-deliver.log >>> postmaster_address = postmas...@starionhost.net >>> } >>> protocol pop3 { >>> pop3_uidl_format = %08Xu%08Xv >>> }
Re: How do I fix this: master: Warning: fd limit (ulimit -n) is lower than required
Yes,tried a range from 100 to 1000, but the warning still happens, with varying outputs saying its either over or under. I'm looung for a way to set the limit when dovecot starts, or as part of the startup process actually. - From my iPhone. > On 16 May 2015, at 1:54 pm, Edgar Pettijohn III > wrote: > > >> On May 16, 2015, at 4:10 AM, Robert Chalmers wrote: >> >> I get this when I reload dovecot after any changes. How can I fix it? I >> can’t find any reference to it anywhere. >> >> >> master: Warning: fd limit (ulimit -n) is lower than required under max. load >> (256 < 1000), because of default_client_limit >> >> thanks >> Robert > > It may be easier for you to just adjust it in: > > dovecot/conf.d/10-master.conf > default_client_limit = 500 (to start with, you may need to adjust further)
Re: How do I fix this: master: Warning: fd limit (ulimit -n) is lower than required
That's my next question. 'The how' I'm on OSX 10.10.3, latest Dovecot. I need to either increase limit -n globally, or for Dovect at boot time. ulimit -n 4096 for example. I can set it in /etc/profile, but that seems like it my be a brute force method? Robert Sent from my iPad > On 16 May 2015, at 12:31 pm, Marcus Rueckert wrote: > >> On 2015-05-16 10:10:08 +0100, Robert Chalmers wrote: >> I get this when I reload dovecot after any changes. How can I fix it? I >> can’t find any reference to it anywhere. >> >> >> master: Warning: fd limit (ulimit -n) is lower than required under max. load >> (256 < 1000), because of default_client_limit > > Increase the ulimit before starting dovecot. the how depends on your > distro. > >darix > > -- > openSUSE - SUSE Linux is my linux > openSUSE is good for you > www.opensuse.org
How do I fix this: master: Warning: fd limit (ulimit -n) is lower than required
I get this when I reload dovecot after any changes. How can I fix it? I can’t find any reference to it anywhere. master: Warning: fd limit (ulimit -n) is lower than required under max. load (256 < 1000), because of default_client_limit thanks Robert
Dovecot is not reading connections from iOS devices correctly. Any ideas?
From the dovecot logs. dovecot-info.log May 11 09:27:45 imap-login: Info: Aborted login (no auth attempts in 0 secs): user=<>, rip=192.168.0.1, lip=192.168.0.15, session= dovecot-debug.log May 11 09:27:45 auth: Debug: auth client connected (pid=17388) When I try to connect using either the iOS Mail app, or Outlook mail app, nothing happens at al with ssl, and if I use plain login the iOS device tells me I have either the username or password wrong - which I haven't. Connection from Mac with MailMate works fine. iOS doesn't. so I'm stumped. I can't see why this is refusing the connection.
Re: What is this message in appfirewall.log telling me ? on OSX
On 11 May 2015, at 7:55, Muzaffer Tolga Ozses wrote: > I'm not 100% sure, but it looks like a client was denied connection. > > On 11 May 2015 at 09:53, Robert Chalmers wrote: > >> I'm on OS X >> >> What is this telling me? >> >> socketfilterfw[22097] : dovecot: Deny TCP CONNECT (in:7 out:0) >> >> >> Thanks >> Robert >> Is there something I can set to make that message more verbose? Author and Writer
What is this message in appfirewall.log telling me ? on OSX
I'm on OS X What is this telling me? socketfilterfw[22097] : dovecot: Deny TCP CONNECT (in:7 out:0) Thanks Robert
Fatal: Unknown scheme: SHA512-CRYPT. On a Mac-mini
Running postfix+dovecot+mysql on a mac-mini, and trying to solve this puzzle. Is this a Mac issue?, a MySQL issue? or something I haven't configured in? You can see from the output of the samples shows in the first case, that SHA512-CRYPT seems to be Unknown. The code I used is from a Linux based tutorial on setting up Postfix+Dovecot+MySQL on a site. Everything is generally going ok, apart from this bit. There are some others unknown as well. The codes used to create my database of passwords follows these output examples. MacMini:~ robert$ sudo doveadm pw -s SHA512-CRYPT -p 123456 Fatal: Unknown scheme: SHA512-CRYPT MacMini:~ robert$ sudo doveadm pw -s SHA512 -p 123456 {SHA512}ujJTh2rta8ItSm/1PYQGxq2GQZXtFEq1yHYhtsIztUi66uaVbfNG7IwX9eoQ817jy8UUeX7X3dMUVGTioLq0Ew== MacMini:~ robert$ sudo doveadm pw -s SHA256 -p 123456 {SHA256}jZae727K08KaOmKSgOaGzww/XVqGr/PKEgIMkjrcbJI= MacMini:~ robert$ sudo doveadm pw -s MD5 -p 123456 {MD5}$1$.mAQzPhO$6v/WxTUt.Y1lhopkMarEb0 MacMini:~ robert$ sudo doveadm pw -s MD5-CRYPT -p 123456 {MD5-CRYPT}$1$gNkYwx/o$3nQLmUIPOBmZdR/e/EXFV1 MacMini:~ robert$ sudo doveadm pw -s BLF-CRYPT -p 123456 Fatal: Unknown scheme: BLF-CRYPT MacMini:~ robert$ sudo doveadm pw -s SHA512 -p 1pass66U! {SHA512}EuuO6BAt+bgzXIOw7XIdiVBFwdEZ2tGqHOJ/DSTSkD+ikw7GQQo+KtHSta7p3KNv2AEVKtfOuyl5UeCEqnKogg== MacMini:~ robert$ sudo doveadm pw -s SHA256-CRYPT -p 1pass66U! Fatal: Unknown scheme: SHA256-CRYPT MacMini:~ robert$ mysql --version mysql Ver 14.14 Distrib 5.6.19, for osx10.9 (x86_64) using EditLine wrapper MacMini:~ robert$ cd My MySQL Version: mysql Ver 14.14 Distrib 5.6.19, for osx10.9 (x86_64) using EditLine wrapper The MySQL code used to create the user/password table. Which seems to work fine, and creates the table as it should - even though the resulting password doesn't appear to be quite right for SHA512-CRYPT INSERT INTO `mailserver`.`virtual_users` (`id`, `domain_id`, `password` , `email`) VALUES ('1', '1', ENCRYPT('firstpassword', CONCAT('$6$', SUBSTRING(SHA(RAND()), -16))), 'ema...@example.com'), ('2', '1', ENCRYPT('secondpassword', CONCAT('$6$', SUBSTRING(SHA(RAND()), -16))), 'ema...@example.com'); What it actually creates is this: This is not a SHA512-CRYPT password?? mysql> SELECT * FROM mailserver.virtual_users; 3 | 1 | $6jxK9DWPBrAc | rob...@zeus.example.com Just to be clear,. this is the section of the Dovecot configs that deals with handling this. BUT.. On the MAC-Mini, SHA512-CrYPT is unknown. # List of supported schemes is in # http://wiki2.dovecot.org/Authentication/PasswordSchemes # default_pass_scheme = SHA512-CRYPT So the question is, what Encryption should I be using, and is this an Apple thing, or a MySQL thing?
A question about Configure time options, and base directories and Defaults?
I originally downloaded the sources a few weeks ago, dovecot-2.2.16, and simply did a ./configure make make install I'm running OSX 10.10.3 on a mac-mini. Not being too sure that I was going to go ahead with this whole idea... in any event, I did. BUT... most documentation I come across as I search for answers refers to the base directories being below /etc - as in postfix actually. ie; /etc/dovecot /etc/postfix Which seems logical to me - and appears to be a "default" or standard, at least in most documentation. However, my cavaliere installation put everything below /usr/local, as in /usr/local/etc/dovecot Which has caused me no end of fiddling as I try and remember where things are when I'm working on config files. There even appears to be a /private/etc/dovecot folder, which I seem to have somehow created about a month ago??? but is empty anyway. So, on my Mac I now have these folders/directories. These may have been created by a previous attempt, or by an installation to CutedgeSystems Mailserve. Now redundant. /private/etc/dovecot < empty /private/etc/pam.d/dovecot <--- contains login, pop3, ssh etc etc /private/var/spool/postfix/private/dovecot <-- this is a link to the one just above ??? or the other one is a link to this? /usr/libexec/dovecot <-- this contains a link to dovecot-lda [dovecot-lda -> /usr/local/libexec/dovecot/dovecot-lda] that I put in myself because that's where dovecot was looking for it. = everything below this line is as a result of the installation from source /usr/local/cutedge/dovecot /usr/local/etc/dovecot /usr/local/include/dovecot /usr/local/lib/dovecot /usr/local/libexec/dovecot /usr/local/sbin/dovecot /usr/local/share/doc/dovecot /usr/local/var/lib/dovecot /usr/local/var/run/dovecot I see from this list in someone else's post, that it's obviously possible - and I should have remembered - to put the files where ever I want them. i.e. /etc/dovecot If I read this list right, it will put the installation into /etc/dovecot - with some in other, appropriate directories. NOT all below /user/local as I have done. --prefix=/usr \ --sysconfdir=/etc \ --libexecdir=\${prefix}/lib \ --localstatedir=/var \ --mandir=\${prefix}/share/man \ --infodir=\${prefix}/share/info \ --with-moduledir=\${prefix}/lib/dovecot/modules \ --disable-rpath \ --disable-static Now for the burning question. Is it possible now to re-configure, then reinstall into the more appropriate directories, then copy the configuration files over. Make the appropriate weeks, and remove the original /usr/local/ installation? Or is that just a step too far for the sake of what is essentially window dressing. The system I might add appears to be working as is? Thanks for any advice from the experts. (Sorry if the formatting in this post gets screwed up. It;s gmail;s web interface) Robert
Re: How do I compile passed driver for sql into Dovecot?
Sorry - I found the issue and dealt with it. Forgot about compiling it in and Configure time. Robert On Wed, Apr 29, 2015 at 2:57 PM, Robert Chalmers wrote: > I'm getting this error message when trying to run. > > > dovecot[1997]: auth: Fatal: Support not compiled in for passdb driver 'sql' > > > thanks > > Robert >