[Dovecot] Some question about "auth default",	"auth default_with_listener" and others
    Vitalij Satanivskij 
    satan at ukr.net
       
    Fri Mar  2 07:29:04 EET 2007
    
    
  
Hello,
Trying to set in dovecot.conf more than one auth section found that imap and pop3 auth process use bose of them.
Loooks like thay do in round-robin way or maybe another way.
Example of config:
auth default {
  mechanisms = plain
  passdb sql {                                                                                                                         
      
    args = /usr/local/etc/dovecot-mysql.conf                                                                                           
   
      }
    userdb prefetch {                                                                                                                  
     
 
    }
  user = root
  socket listen {
    master {
      path = /var/run/dovecot/auth-master
      mode = 0600
      user = dovecot
      group = dovecot
    }
  }
}
auth smtp_auth {
  mechanisms = login plain
  passdb sql {                                                                                                                        
       
    args = /usr/local/etc/smtp_auth.conf                                                                                              
      }
    userdb prefetch {                                                                                                                 
    }
  socket listen {
    client {
      user = mailnull # User running Dovecot LDA
      group = mail # Or alternatively mode 0660 + LDA user in this group
      path = /var/run/auth-smtp-plain
      mode = 0660
    }
  }
}
Main problem - dovecot-mysql.conf and smtp_auth.conf have doferent sql querys inside, and if user try to auth via pop3 service 
but thru the  "auth smtp_auth", than it's failed in any way.
Quetion - Is exist any way to limit default doecot auth process to use just "auth default" for authintification ? 
maybe some options like "services= POP3 IMAP" inside?
Or maybe there is anather way to do this ?
 
    
    
More information about the dovecot
mailing list