Stuart,

I'm starting it from the rc.d system.
After changing the login class from '_dovecot' to 'dovecot' it worked.
I wonder why it wouldn't accept '_dovecot' for a login class.
Best regards,
Nikola Gyurov


On Sat, Sep 21, 2013 at 10:06 PM, Stuart Henderson <[email protected]> wrote:
> On 2013-09-21, Nikola Gyurov <[email protected]> wrote:
>> Hey everyone,
>>
>> I'm running 5.4-current and using dovecot-2.2.5p0 from the default
>> package repository.
>>
>> When starting dovecot, it fails with multiple too many open files errors:
>> Sep 21 21:07:46 core dovecot: master: Dovecot v2.2.5 starting up
>> Sep 21 21:07:46 core dovecot: master: Error: service(director): pipe()
>> failed: Too many open files
>> Sep 21 21:07:46 core dovecot: master: Error: service(dict): pipe()
>> failed: Too many open files
>> Sep 21 21:07:46 core dovecot: master: Error: service(config): pipe()
>> failed: Too many open files
>> Sep 21 21:07:46 core dovecot: master: Error: service(auth): pipe()
>> failed: Too many open files
>> Sep 21 21:07:46 core dovecot: master: Error: service(auth-worker):
>> pipe() failed: Too many open files
>>
>> As per this:
>> http://www.openbsd.org/cgi-bin/cvsweb/ports/mail/dovecot/pkg/README-server?rev=1.1
>>
>> I've created a separate login class for dovecot (I'm not using the
>> login.conf.db db) with higher limits:
>> # tail -5 /etc/login.conf
>> # Dovecot
>> _dovecot:\
>>         :openfiles-cur=2048:\
>>         :openfiles-max=4096:\
>>         :tc=daemon:
>>
>> Changed the _dovecot user to be in it:
>> Login: _dovecot
>> Uid [#]: 518
>> Gid [# or name]: 518
>> Class: _dovecot
>> Home directory: /nonexistent
>> Shell: /sbin/nologin
>> Full Name: Dovecot Account
>>
>> Yet I'm still getting the same errors.
>> Any ideas?
>>
>> Best regards,
>> Nikola Gyurov
>>
>>
>
> How are you starting Dovecot? The login class addition is only used
> when starting via the rc.d system e.g. "/etc/rc.d/dovecot start"
> or adding dovecot to the pkg_scripts variable in /etc/rc.conf.local.

Reply via email to