<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"></head><body><div>Could apparmor or selinux be causing this!</div><div><br></div><div><br></div><div><br></div><div id="composer_signature"><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">---<div>Aki Tuomi</div><div>Dovecot oy</div></div><div><br></div><div style="font-size:100%;color:#000000"><!-- originalMessage --><div>-------- Original message --------</div><div>From: Reuben Farrelly <reuben-dovecot@reub.net> </div><div>Date: 31/08/2018 16:50 (GMT+02:00) </div><div>To: Dovecot Mailing List <dovecot@dovecot.org> </div><div>Subject: Dovecot User Listing Error - getpwent() failed: Invalid Argument </div><div><br></div></div>Hi,<br><br>I'm running dovecot-2.3 git and seeing on 2 of my Dovecot installations, <br>the following message logged quite frequently:<br><br>Aug 31 16:55:53 lightning.reub.net dovecot[7698]: auth-worker(7707): <br>Error: getpwent() failed: Invalid argument<br>Aug 31 16:55:53 lightning.reub.net dovecot[7698]: replicator: Error: <br>User listing returned failure<br>Aug 31 16:55:53 lightning.reub.net dovecot[7698]: replicator: Error: <br>listing users failed, can't replicate existing data<br><br>It appears that this could be having an effect on replication, but it's <br>unclear because the secondary/replica doesn't see much traffic.<br><br>Authentication is via PAM and the system is Gentoo Linux x86_64. passb <br>driver = pam, userdb driver = static .<br><br>doveadm user -u '*' shows the system users listed twice like this (is <br>this a problem?) and then prints:<br><br>----<br>reuben<br>liam<br>reuben<br>liam<br><some other users><br>Error: User listing returned failure<br>Fatal: user listing failed<br>----<br><br>To me that doesn't look right.<br><br>Can anyone suggest what could be causing this? I don't recall seeing <br>this message some time ago so I suspect it's a recent change in either <br>dovecot, or pam or glibc etc..<br><br>Thanks,<br>Reuben<br></body></html>