Re: last login tracking error

2018-05-25 Thread Aki Tuomi
Try adding no-unset to the dict parameter. Or use dedicated table for this information. dict:no-unset:sql Aki On 08.04.2018 00:07, David Mehler wrote: > Hello, > > I'm running dovecot 2.2 and trying to do last login tracking. I am > using a MySQL database. When a user logs in

last login tracking error

2018-04-07 Thread David Mehler
Hello, I'm running dovecot 2.2 and trying to do last login tracking. I am using a MySQL database. When a user logs in I get this in the log: 2018-04-07 16:55:14 imap(u...@example.com)<54415>: Error: last_login_dict: Failed to write value for user u...@example.com: dict-server retur

last login tracking

2018-03-07 Thread David Mehler
Hello, I've got dovecot going with postfix and MySQL database for user and domain storage. Dovecot handles the authentication. My last login is not working, does anyone have a table example and configs? I looked at the wiki page on the lastlogin plugin but obviously what I'm doing isn't working,

Re: [Dovecot] Last login tracking with login_executable

2010-11-06 Thread Denny Lin
On Thu, Oct 14, 2010 at 03:38:04PM +0100, Ed W wrote: > On 14/10/2010 15:04, Denny Lin wrote: > > > >I was wondering if it would be possible to read the username/password > >from a Dovecot config file (like userdb/passdb/quota/expire) instead of > >using my.cnf. > > In that case I think just crea

Re: [Dovecot] Last login tracking with login_executable

2010-10-14 Thread Ed W
On 14/10/2010 15:04, Denny Lin wrote: I was wondering if it would be possible to read the username/password from a Dovecot config file (like userdb/passdb/quota/expire) instead of using my.cnf. In that case I think just creating a script with the password in it, which is itself called from l

Re: [Dovecot] Last login tracking with login_executable

2010-10-14 Thread Timo Sirainen
On Thu, 2010-10-14 at 22:04 +0800, Denny Lin wrote: > I was wondering if it would be possible to read the username/password > from a Dovecot config file (like userdb/passdb/quota/expire) instead of > using my.cnf. See if something like this works: HOME=/etc/dovecot/mysql mysql ... And put the p

Re: [Dovecot] Last login tracking with login_executable

2010-10-14 Thread Denny Lin
Hi, On Thu, Oct 14, 2010 at 03:00:32PM +0100, Timo Sirainen wrote: > On Thu, 2010-10-14 at 09:55 +0100, Ed W wrote: > > > Is there any way to make Dovecot use the same username/password for > > > database access as userdb and passdb queries? Specifying the password > > > with -p doesn't seem like

Re: [Dovecot] Last login tracking with login_executable

2010-10-14 Thread Timo Sirainen
On Thu, 2010-10-14 at 09:55 +0100, Ed W wrote: > > Is there any way to make Dovecot use the same username/password for > > database access as userdb and passdb queries? Specifying the password > > with -p doesn't seem like a good idea, so I'm wondering if it can be > > handled by Dovecot directly.

Re: [Dovecot] Last login tracking with login_executable

2010-10-14 Thread Ed W
On 13/10/2010 13:14, Denny Lin wrote: Hi, I'm using Dovecot 1.2.14, and I've read PostLoginScripting on the wiki. Is there any way to make Dovecot use the same username/password for database access as userdb and passdb queries? Specifying the password with -p doesn't seem like a good idea, so

[Dovecot] Last login tracking with login_executable

2010-10-13 Thread Denny Lin
Hi, I'm using Dovecot 1.2.14, and I've read PostLoginScripting on the wiki. Is there any way to make Dovecot use the same username/password for database access as userdb and passdb queries? Specifying the password with -p doesn't seem like a good idea, so I'm wondering if it can be handled by Dov