On Sun, Sep 21, 2014 at 06:13:32PM +0100, Stuart Henderson wrote: > On 2014/09/21 16:06, list-openbsd-po...@jyborn.se wrote: > > I get this in /var/log/maillog when I start mutt: > > > > Sep 21 13:21:27 xxx dovecot: imap(yyy): Fatal: > > pool_system_realloc(4294967296): Out of memory > > Sep 21 13:21:30 xxx dovecot: imap(yyy): Fatal: master: service(imap): child > > 17371 returned error 83 (Out of memory (service imap { vsz_limit=4096 MB }, > > you may need to increase it) - set CORE_OUTOFMEM=1 environment to get core > > dump) > > > Ohhhh..... Just had a thought. You don't mention which versions of > anything you're using (hint: it's always a good idea to include dmesg!) > but if it's OpenBSD 5.5 then the diff below (or pull up getpwent.c > to r1.49) might well help. > > Index: src/lib/libc/gen/getpwent.c > diff -u src/lib/libc/gen/getpwent.c:1.48 src/lib/libc/gen/getpwent.c:1.49
This patch seems to have solved the memory problem! But now dovecot complains that my login is wrong. I'm using my regular passwd username/password, and I know that it is correct. I am connecting to localhost. I also tried a manual IMAP connection: $ telnet localhost 143 Trying 127.0.0.1... Connected to localhost. Escape character is '^]'. * OK [CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE IDLE STARTTLS AUTH=PLAIN] Dovecot ready. a1 login xxx yyy a1 NO [AUTHENTICATIONFAILED] Authentication failed. There is no entry in maillog when the authentication fails, but when I later end the imap connection I get this in maillog: Sep 21 23:22:31 zzz dovecot: imap-login: Aborted login (auth failed, 1 attempts in 11 secs): user=<xxx>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, secured, session=<f8Xx7ZkDugB/AAAB> Is there something special that needs to be done in OpenBSD to make dovecot use passwd for login? This is probably a FAQ somewhere, sorry for asking. My google skills failed me this time. I read the PasswordDatabase.txt and PasswordDatabase.BSDAuth.txt files in usr/local/share/doc/dovecot/wiki, but didn't get any clues from those files. I'm probably just too tired right now. Will try again tomorrow, just wanted to let you know that the patch had effect. Thanks! Peter