Itamar Shtull-Trauring <[EMAIL PROTECTED]> wrote:
> How does sendmail check if a user exists or not? I have a buch of email
> accounts that worked fine till now, and suddenly sendmail claims that they
> don't exist - you can't send email to them. I can su into them, though, and
> they exist in /etc/passwd.
Sendmail uses the function finduser in recipient.c
>
> Why doesn't sendmail know they exist?
This is a realy far fetched attamept, but..
1. if the username contains '\0' then sendmail will not find it
2. if username is longer then MAXNAME (=256, unless chaned)
3. there is also a worning in the code saying
/* warning -- finduser may trash buf */
pw = finduser(buf, &fuzzy);
where buf in finduser is the name to match against.
HTH.
>
> --
> Itamar S.T. [EMAIL PROTECTED]
>
> =================================================================
> To unsubscribe, send mail to [EMAIL PROTECTED] with
> the word "unsubscribe" in the message body, e.g., run the command
> echo unsubscribe | mail [EMAIL PROTECTED]
=================================================================
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]