Re: [Dovecot] Couldn't drop privileges

2014-01-15 Thread CM Reddy
Thanks for your help. On Tue, Jan 14, 2014 at 6:51 AM, Joseph Tam wrote: > > From: CM Reddy > > userdb { >> args = username_format=%u /etc/dovecot/users >> driver = passwd-file >> } >> ... >> Log information: >> ... >> >> Jan 13 16:42:44 cmreddy-Lenovo-G500s dovecot: imap(armor5): Error:

Re: [Dovecot] Couldn't drop privileges

2014-01-13 Thread Joseph Tam
From: CM Reddy userdb { args = username_format=%u /etc/dovecot/users driver = passwd-file } ... Log information: ... Jan 13 16:42:44 cmreddy-Lenovo-G500s dovecot: imap(armor5): Error: user armor5: Couldn't drop privileges: User is missing GID (see mail_gid setting) Fairly self-explanator

Re: [Dovecot] Couldn't drop privileges

2014-01-13 Thread Pascal Volk
On 01/13/2014 11:22 AM CM Reddy wrote: > … > 2. Failed to Login command with an error. > … > Lenovo-G500s:~$ doveconf -n > # 2.2.10: /usr/local/etc/dovecot/dovecot.conf > # OS: Linux 3.8.0-29-generic x86_64 Ubuntu 12.04.3 LTS > … > passdb { > args = scheme=CRYPT username_format=%u /etc/dovecot/

Re: [Dovecot] Couldn't drop privileges

2013-08-15 Thread LuKreme
On 15 Aug 2013, at 14:37 , LuKreme wrote: > /home/user/Maildir, otoh, is correct. > > Should I simply mkdir a Maildir for every user and move everything into it? While that works, of course new mail uses the path from the sql database and puts mail into /usr/local/virtual/u...@example.com/ne

Re: [Dovecot] Couldn't drop privileges

2013-08-15 Thread LuKreme
On 15 Aug 2013, at 14:28 , LuKreme wrote: > but still having issues with blank mailboxes on the virtual users. OK, I am having blank mailboxes because dovecot is adding Maildir to the home for the virtual users: Debug: maildir++: root=/usr/local/virtual/lists@*munged*//Maildir, The correct d

Re: [Dovecot] Couldn't drop privileges

2013-08-15 Thread LuKreme
On 15 Aug 2013, at 14:18 , LuKreme wrote: > user_query = select 89 as uid, 125 as gid, '/usr/local/virtual/' as home, > concat('/usr/local/virtual/', maildir) from mailbox where username = '%u' user_query = select 89 as uid, 125 as gid, concat('/usr/local/virtual/', maildir) as home from mail

Re: [Dovecot] Couldn't drop privileges

2013-08-15 Thread LuKreme
On 15 Aug 2013, at 13:38 , LuKreme wrote: > select 89 as uid, 125 as gid, concat('/usr/local/virtual/', maildir) from > mailbox where username = '%u' user_query = select 89 as uid, 125 as gid, '/usr/local/virtual/' as home, concat('/usr/local/virtual/', maildir) from mailbox where username =

Re: [Dovecot] Couldn't drop privileges

2013-08-15 Thread Timo Sirainen
On 15.8.2013, at 22.38, LuKreme wrote: > select 89 as uid, 125 as gid, concat('/usr/local/virtual/', maildir) from > mailbox where username = '%u' concat('/usr/local/virtual/', maildir) as home from .. > Aug 15 13:34:05 imap(lists@*munged*): Error: user lists@*munged*: > Initialization failed

Re: [Dovecot] Couldn't drop privileges

2013-08-15 Thread LuKreme
On 15 Aug 2013, at 13:26 , LuKreme wrote: > What is not shown is the full path to the maildir, just the maildir value > returned from the sql query. It really really looks like this should be > working and like the > > userdb { > driver = static > args = uid=vpopmail gid=postfix home=/usr/

Re: [Dovecot] Couldn't drop privileges

2013-08-15 Thread LuKreme
On 15 Aug 2013, at 11:29 , LuKreme wrote: > attempts to login result in: > > dovecot: imap-login: Login: user=, method=PLAIN, > rip=ip.xx.yy.zz, lip=75.148.117.91, mpid=75104, TLS, > session= > dovecot: imap(lists@*munged*): Error: user lists@*munged*: Couldn't drop > privileges: User is mis