Re: [Dovecot] Userdb passwd and 'nologin' users

2013-02-22 Thread Timo Sirainen
After thinking about this for a while, I think the best solution is simply to remove the shell check unconditionally. I'm not sure if anyone else except me ever wanted it (and I can live with a couple of unnecessary users getting mailboxes). Done for v2.2:

Re: [Dovecot] Userdb passwd and 'nologin' users

2013-02-01 Thread Ben Morrow
At 1AM +0200 on 1/02/13 you (Timo Sirainen) wrote: On 1.2.2013, at 0.35, Ben Morrow b...@morrow.me.uk wrote: I am running Dovecot with system users (userdb passwd), but some of those users don't have shell accounts on the IMAP server so their shell on that machine is set to

Re: [Dovecot] Userdb passwd and 'nologin' users

2013-02-01 Thread Ben Morrow
At 4AM +0100 on 1/02/13 you (Daniel Parthey) wrote: Hi Ben, Ben Morrow wrote: +if (set-check_nologin) { +/* skip entries that don't have a valid shell. + they're again probably not real users. */ +if (strcmp(pw-pw_shell,

[Dovecot] Userdb passwd and 'nologin' users

2013-01-31 Thread Ben Morrow
I am running Dovecot with system users (userdb passwd), but some of those users don't have shell accounts on the IMAP server so their shell on that machine is set to /usr/sbin/nologin. Currently I am using maildirs and this is not a problem, but I am in the process of switching to dbox which means

Re: [Dovecot] Userdb passwd and 'nologin' users

2013-01-31 Thread Timo Sirainen
On 1.2.2013, at 0.35, Ben Morrow b...@morrow.me.uk wrote: I am running Dovecot with system users (userdb passwd), but some of those users don't have shell accounts on the IMAP server so their shell on that machine is set to /usr/sbin/nologin. Currently I am using maildirs and this is not a

Re: [Dovecot] Userdb passwd and 'nologin' users

2013-01-31 Thread Daniel Parthey
Hi Ben, Ben Morrow wrote: +if (set-check_nologin) { +/* skip entries that don't have a valid shell. + they're again probably not real users. */ +if (strcmp(pw-pw_shell, /bin/false) == 0 || +strcmp(pw-pw_shell,