On Fri, Nov 30, 2012 at 1:49 PM, Wietse Venema <wie...@porcupine.org> wrote:
> Dan Lists:
>> Nov 30 10:39:59 server postfix/local[50947]: warning: error looking up
>> passwd info for user: Invalid argument
>
> The getpwnam_r() SYSTEM LIBRARY ROUTINE reports an error,
> with errno set to EINVAL (Invalid argument).
>
> Find out why the SYSTEM LIBRARY ROUTINE reports this error.
>

If the user name is longer that 16 chars and the user does not exist,
getpwnam_r() returns EINVAL.  If the user exists, it works fine
regardless of the length.  I saw a report of this same behavior with
dovecot.  There is a patch to dovecot to fix it.

Does postfix need to treat the EINVAL as if the user does not exist?
Is there a way to change the behavior of getpwnam*?

Dan

Reply via email to