[Dovecot] Dovecot 1.2.x passwd and shadow auth w/ PAM

Steven King sking at kingrst.com
Wed May 11 01:14:16 EEST 2011


dovecot -n output

root at slacky:/usr/doc/dovecot-1.2.16/wiki# dovecot -n
# 1.2.16: /etc/dovecot.conf
# OS: Linux 2.6.33.4 x86_64 Slackware 13.1.0
log_path: /var/log/dovecot.log
info_log_path: /var/log/dovecot.log
protocols: imap pop3
ssl: no
disable_plaintext_auth: no
login_dir: /var/run/dovecot/login
login_executable(default): /usr/libexec/dovecot/imap-login
login_executable(imap): /usr/libexec/dovecot/imap-login
login_executable(pop3): /usr/libexec/dovecot/pop3-login
login_trusted_networks: 127.0.0.1
first_valid_gid: 500
mail_location: ~/mail
mail_executable(default): /usr/libexec/dovecot/imap
mail_executable(imap): /usr/libexec/dovecot/imap
mail_executable(pop3): /usr/libexec/dovecot/pop3
mail_plugin_dir(default): /usr/lib64/dovecot/imap
mail_plugin_dir(imap): /usr/lib64/dovecot/imap
mail_plugin_dir(pop3): /usr/lib64/dovecot/pop3
pop3_uidl_format(default): %08Xu%08Xv
pop3_uidl_format(imap): %08Xu%08Xv
pop3_uidl_format(pop3): %v.%u
lda:
   auth_socket_path: /var/run/dovecot/auth-master
auth default:
   user: nobody
   debug: yes
   debug_passwords: yes
   passdb:
     driver: shadow
   userdb:
     driver: passwd
   socket:
     type: listen
     client:
       path: /var/spool/postfix/private/auth
       mode: 432
       user: postfix
       group: postfix

On 5/10/11 6:10 PM, Timo Sirainen wrote:
> On 11.5.2011, at 1.07, Steven King wrote:
>
>> I'm trying to get authentication to work without PAM and just use the standard shadow and passwd files.
>>
>> auth default {
>>
>> userdb passwd {
>> }
>>
>> passdb shadow {
>> }
>>
>> }
> That's not dovecot -n output.
>
>> This seems to be valid code to use /etc/passwd and /etc/shadow.
> Maybe..
>
>> My linux distro is using Salted MD5. Though Dovecot keeps telling me that authentication failed. It doesn't give me any error messages regarding the config.
> Set auth_debug_passwords=yes. And show the exact log messages. And exact dovecot -n output.

-- 
Steve King

Senior Linux Engineer - Advance Internet, Inc.
Cisco Certified Network Associate
CompTIA Linux+ Certified Professional
CompTIA A+ Certified Professional



More information about the dovecot mailing list