user password in mail-filter plugin

Timo Sirainen tss at iki.fi
Thu Feb 4 16:43:11 UTC 2016


On 04 Feb 2016, at 03:44, Thomas Möhle <thomas at bitkomplex.de> 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 versions:

passdb {
  ..
  override_fields = userdb_pass=%w
}

plugin {
  mail_filter = mail-filter %{userdb:pass}
}



More information about the dovecot mailing list