LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 11-04-2010, 05:17 PM   #1
crnz
LQ Newbie
 
Registered: Oct 2010
Location: NZ
Distribution: CentOS 7
Posts: 8

Rep: Reputation: 0
New dovecot install - User not known to the underlying authentication module


Situation: fresh dovecot install. I have postfix successfully accepting and delivering mail to a virtual mailbox.

I'm trying to pop that mailbox, but it can't see it. I hope someone can point out where my config is wrong.

Code:
dovecot -n
# 1.0.7: /etc/dovecot.conf
protocols: pop3
login_dir: /var/run/dovecot/login
login_executable: /usr/libexec/dovecot/pop3-login
mail_location: mbox:/var/spool/mail/%d/%n
mail_executable: /usr/libexec/dovecot/pop3
mail_plugin_dir: /usr/lib64/dovecot/pop3
auth default:
  verbose: yes
  debug: yes
  debug_passwords: yes
  passdb:
    driver: pam
  userdb:
    driver: passwd
  userdb:
    driver: passwd-file
    args: scheme=PLAIN username_format=%n /etc/auth/%d-passwd
content of the (domain)-passwd file

Code:
]# cat /etc/auth/domain.com-passwd 
testuser:password:98:98::/home/user::INBOX=/var/spool/mail/vhosts/%d/%n
Keep in mind, postfix delivers successfully to /var/spool/mail/vhosts/%d/%n

The /var/log/secure logs I get say (trying both testuser and testuser@domain.com)

Code:
Nov  4 21:58:19 cloud dovecot-auth: pam_unix(dovecot:auth): check pass; user unknown
Nov  4 21:58:19 cloud dovecot-auth: pam_unix(dovecot:auth): authentication failure; logname= uid=0 euid=0 tty=dovecot ruser= rhost=::ffff:202.x.x.x 
Nov  4 21:58:19 cloud dovecot-auth: pam_succeed_if(dovecot:auth): error retrieving information about user testuser
Nov  4 21:58:35 cloud dovecot-auth: pam_unix(dovecot:auth): check pass; user unknown
Nov  4 21:58:35 cloud dovecot-auth: pam_unix(dovecot:auth): authentication failure; logname= uid=0 euid=0 tty=dovecot ruser= rhost=::ffff:202.x.x.x
Nov  4 21:58:35 cloud dovecot-auth: pam_succeed_if(dovecot:auth): error retrieving information about user testuser@domain.com
And /var/log/maillog says

Code:
Nov  4 21:58:09 cloud dovecot: auth(default): new auth connection: pid=30549
Nov  4 21:58:19 cloud dovecot: auth(default): client in: AUTH   1       PLAIN service=POP3     lip=::ffff:173.x.x.x       rip=::ffff:202.x.x.x      resp=AG51dABtaGFsbDY5Njk=
Nov  4 21:58:19 cloud dovecot: auth(default): pam(testuser,::ffff:202.x.x.x): lookup service=dovecot
Nov  4 21:58:21 cloud dovecot: auth(default): pam(testuser,::ffff:202.x.x.x): pam_authenticate() failed: User not known to the underlying authentication module
Nov  4 21:58:22 cloud dovecot: auth(default): client out: FAIL  1       user=testuser
Nov  4 21:58:35 cloud dovecot: auth(default): client in: AUTH   2       PLAIN service=POP3     lip=::ffff:173.x.x.x       rip=::ffff:202.x.x.x      resp=AG51dEBuYWtlZGtpd2kuY28ubnoAbWhhbGw2OTY5
Nov  4 21:58:35 cloud dovecot: auth(default): pam(testuser@domain.com,::ffff:202.x.x.x): lookup service=dovecot
Nov  4 21:58:37 cloud dovecot: auth(default): pam(testuser@domain.com,::ffff:202.x.x.x): pam_authenticate() failed: User not known to the underlying authentication module
Nov  4 21:58:38 cloud dovecot: auth(default): client out: FAIL  2       user=testuser@domain.com
I checked file permissions, paths...

I'm currently out of ideas
 
Old 11-04-2010, 05:24 PM   #2
crnz
LQ Newbie
 
Registered: Oct 2010
Location: NZ
Distribution: CentOS 7
Posts: 8

Original Poster
Rep: Reputation: 0
Hmmm, could the problem be here?


/etc/pam.d/dovecot

Code:
%PAM-1.0
auth       required     pam_nologin.so
auth       include      system-auth
account    include      system-auth
session    include      system-auth
 
Old 11-04-2010, 09:50 PM   #3
crnz
LQ Newbie
 
Registered: Oct 2010
Location: NZ
Distribution: CentOS 7
Posts: 8

Original Poster
Rep: Reputation: 0
I want to close this thread. I've moved on to a config quite different from this. Still struggling, but the questions are now different
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
OpenLDAP/Debian passwd: User not known to the underlying authentication module t0bias Linux - Server 1 03-05-2010 12:35 PM
openldap pam : User not known to the underlying authentication module piaf666 Linux - General 5 10-22-2008 02:11 AM
passwd: User not known to the underlying authentication module tinaa Linux - General 2 05-18-2008 10:54 AM
passwd: User not known to the underlying authentication module ar1 Linux - Security 5 04-09-2004 04:10 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 09:20 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration