Authenticating pam and and sql
When a sql user logs in, dovecot always tries pam first (used for the local users with home directories) which generates a login failure in the log, before trying sql (virtual users) and allowing the user to login.
Since all the pam users login as 'user' and all the sql users login as 'user@example.com' is it possible to tell dovecot which method to check based on the username pattern?
It's not a big deal, but these errors show up when I am checking my maillog for problems, and I can't really exclude them since I do want to see actual login failures.
On 2018-02-22 (10:06 MST), Aki Tuomi <aki.tuomi@dovecot.fi> wrote:
You can use username_filter setting on passdb block since 2.2.30
Excellent! thanks.
username_filter = "!*@*"
looks like the right syntax to put in the driver=pam block.
…yes, that appears to do the job.
-- Would you say you worship Satan, or do you simply respect his no-nonsense approach to discipline?
participants (2)
-
@lbutlr
-
Aki Tuomi