Re: user password in mail-filter plugin

2016-02-10 Thread @bitkomplex
Am 05.02.2016 um 11:31 schrieb Thomas Möhle: > Am 05.02.2016 um 10:38 schrieb Timo Sirainen: >> >>> On 05 Feb 2016, at 00:54, Thomas Möhle wrote: >>> >>> Unfortunately it still doesn't work. The filter-script does not recieve >>> any data from that variable. >>> I tried replacing the %w with %u, t

Re: user password in mail-filter plugin

2016-02-05 Thread Thomas Möhle
> you did a > > doveadm auth cache flush > > to ensure the data is not taken from cache? I just tried it, just to make sure, but ince I'm restarting dovecot after any config change anyway, it didn't make a difference.

Re: user password in mail-filter plugin

2016-02-05 Thread Thomas Möhle
So let me show you my config, just to be sure: /etc/dovecot/conf.d/auth-sql.conf.ext: passdb { driver = sql override_fields = userdb_pass=%w args = /etc/dovecot/dovecot-sql.conf.ext } userdb { driver = prefetch result_success = continue } userdb { driver = sql args = /etc/dovecot/dov

Re: user password in mail-filter plugin

2016-02-05 Thread Thomas Möhle
Am 05.02.2016 um 10:38 schrieb Timo Sirainen: > >> On 05 Feb 2016, at 00:54, Thomas Möhle wrote: >> So, do I get this right? During login the content of dovecots %w variable is supposed to be stored in a userdb field, called userdb_pass, and the %{x} is supposed to get the content

Re: user password in mail-filter plugin

2016-02-05 Thread Steffen Kaiser
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Thu, 4 Feb 2016, Thomas Möhle wrote: Unfortunately it still doesn't work. The filter-script does not recieve any data from that variable. you did a doveadm auth cache flush to ensure the data is not taken from cache? - -- Steffen Kaiser --

Re: user password in mail-filter plugin

2016-02-05 Thread Timo Sirainen
> On 05 Feb 2016, at 00:54, Thomas Möhle wrote: > >>> So, do I get this right? During login the content of dovecots %w >>> variable is supposed to be stored in a userdb field, called userdb_pass, >>> and the %{x} is supposed to get the content of that field? >> >> Mostly, yes. You need the "pas

Re: user password in mail-filter plugin

2016-02-04 Thread Steffen Kaiser
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Thu, 4 Feb 2016, Thomas Möhle wrote: not sure, if %{userdb:pass} isn't read correctly, or if "override_fields = userdb_pass=%w" doesn't set it right. did you tried some alternate spelling? %{userdb_pass} %{userdb:userdb_pass} %{userdb_userdb_p

Re: user password in mail-filter plugin

2016-02-04 Thread Thomas Möhle
Am 04.02.2016 um 20:54 schrieb Timo Sirainen: > On 04 Feb 2016, at 19:41, Thomas Möhle wrote: >> >> Am 04.02.2016 um 17:43 schrieb Timo Sirainen: >>> On 04 Feb 2016, at 03:44, Thomas Möhle wrote: Hello, I would like to use the users password within a mail-filter script. D

Re: user password in mail-filter plugin

2016-02-04 Thread Timo Sirainen
On 04 Feb 2016, at 19:41, Thomas Möhle wrote: > > Am 04.02.2016 um 17:43 schrieb Timo Sirainen: >> On 04 Feb 2016, at 03:44, Thomas Möhle wrote: >>> >>> Hello, >>> >>> I would like to use the users password within a mail-filter script. >>> Dovecots %w variable is only available within dovecot-

Re: user password in mail-filter plugin

2016-02-04 Thread Thomas Möhle
Am 04.02.2016 um 17:43 schrieb Timo Sirainen: > On 04 Feb 2016, at 03:44, Thomas Möhle wrote: >> >> Hello, >> >> I would like to use the users password within a mail-filter script. >> Dovecots %w variable is only available within dovecot-auth, is there any >> way to access the password for a mail-

Re: user password in mail-filter plugin

2016-02-04 Thread Timo Sirainen
On 04 Feb 2016, at 03:44, Thomas Möhle wrote: > > Hello, > > I would like to use the users password within a mail-filter script. > Dovecots %w variable is only available within dovecot-auth, is there any > way to access the password for a mail-filter? Something like this should work in recent v

user password in mail-filter plugin

2016-02-03 Thread Thomas Möhle
Hello, I would like to use the users password within a mail-filter script. Dovecots %w variable is only available within dovecot-auth, is there any way to access the password for a mail-filter? Thanks, Thomas