SPEC Community

Product Support => SPECvirt_sc2013 => Topic started by: tdeneau on January 27, 2017, 11:39:28 AM

Title: Mailserver pam_unix authentication failure with dovecot
Post by: tdeneau on January 27, 2017, 11:39:28 AM
I had no further trouble with load generation of mailserver data on the VMs.
However, since then I wanted to set up things on a different OS (this is on bare metal rather than a VM, but I have been told that should not matter).  When I run /opt/SPECimap/load_init.sh I see the following errors reported by "service dovecot status -l".  As far as I can tell the test users are set up correctly in /etc/passwd and referred to in /etc/dovecot/passwd.dovecot .  The UIDs in /etc/passwd are different than the working VM /etc/passwd but I did not expect that would make a difference?

Can anyone explain the authentication failures?


# service dovecot status -l
Redirecting to /bin/systemctl status  -l dovecot.service
● dovecot.service - Dovecot IMAP/POP3 email server
   Loaded: loaded (/usr/lib/systemd/system/dovecot.service; enabled; vendor preset: disabled)
   Active: active (running) since Fri 2017-01-27 09:34:32 CST; 57min ago
  Process: 17460 ExecStartPre=/usr/libexec/dovecot/prestartscript (code=exited, status=0/SUCCESS)
 Main PID: 17466 (dovecot)
   CGroup: /system.slice/dovecot.service
           ├─17466 /usr/sbin/dovecot -F
           ├─17468 dovecot/imap-login
           ├─17469 dovecot/anvil
           ├─17470 dovecot/log
           ├─17472 dovecot/imap-login
           ├─17473 dovecot/imap-login
           ├─17474 dovecot/imap-login
           ├─17475 dovecot/imap-login
           ├─17476 dovecot/imap-login
           ├─17477 dovecot/imap-login
           ├─17478 dovecot/imap-login
           ├─17479 dovecot/imap-login
           ├─17480 dovecot/imap-login
           ├─17481 dovecot/config
           └─17482 dovecot/auth

Jan 27 09:35:17 hp-2p-001 auth[17694]: pam_unix(dovecot:auth): authentication failure; logname= uid=0 euid=0 tty=dovecot ruser=test341 rhost\
=10.236.118.221  user=test341
Jan 27 09:35:17 hp-2p-001 auth[17697]: pam_unix(dovecot:auth): authentication failure; logname= uid=0 euid=0 tty=dovecot ruser=test357 rhost\
=10.236.118.221  user=test357
...
Title: Re: Mailserver pam_unix authentication failure with dovecot
Post by: AnoopGupta on February 01, 2017, 01:50:25 PM
We typically use text authentication instead of the pam authentication. Is your VM and bare metal OS the same?

Please follow the ExampleVM scripts and documentation. Please ensure firewall and selinux are disabled.