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 at 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.
<!doctype html> <html> <head> <meta charset="UTF-8"> </head> <body> <div> <br> </div> <blockquote type="cite"> <div> On 22 February 2018 at 19:03 "@lbutlr" < <a href="mailto:kremels@kreme.com">kremels@kreme.com</a>> wrote: </div> <div> <br> </div> <div> <br> </div> <div> 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. </div> <div> <br> </div> <div> Since all the pam users login as 'user' and all the sql users login as <a href="mailto:'user@example.com">'user@example.com</a>' is it possible to tell dovecot which method to check based on the username pattern? </div> <div> <br> </div> <div> 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. </div> <div> <br> </div> </blockquote> <div> You can use username_filter setting on passdb block since 2.2.30 </div> <div class="io-ox-signature"> --- <br>Aki Tuomi </div> </body> </html>
On 2018-02-22 (10:06 MST), Aki Tuomi <aki.tuomi at dovecot.fi> wrote:> > You can use username_filter setting on passdb block since 2.2.30Excellent! 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?