home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!mcsun!sun4nl!nikhefh!e07
- From: e07@nikhefh.nikhef.nl (Eric Wassenaar)
- Newsgroups: comp.mail.sendmail
- Subject: Re: IDA Sendmail does not check for aliases for fuzzy match names
- Keywords: ida sendmail fuzzy aliases
- Message-ID: <2025@nikhefh.nikhef.nl>
- Date: 23 Nov 92 12:16:17 GMT
- References: <1992Nov20.172728.25706@Synopsys.Com>
- Organization: Nikhef-H, Amsterdam (the Netherlands).
- Lines: 46
-
- In article <1992Nov20.172728.25706@Synopsys.Com>, arnold@synopsys.com (Arnold de Leon) writes:
- > When IDA matches a name for using the "FUZZY" code it sends
- > it directly for the mailbox corresponding to that login name.
- > No further alias expansion is done.
-
- sendmail should do an extra alias lookup in case the user was
- found via a gecos match. Below is an excerpt of what my sendmail
- does in this case. It requires adaptation of the finduser() routine
- to return a status indicating how the user was found.
-
- recipient.c:
- /*
- * pw != NULL
- * rcode == EX_OK if found via getpwnam()
- * rcode == EX_NOUSER if matched via gecos.
- * pw == NULL
- * rcode == EX_NOUSER if not matched at all.
- */
- pw = finduser(buf, &rcode);
- if (pw == NULL)
- {
- a->q_flags |= QDONTSEND|QBADADDR;
- giveresponse(rcode, m, CurEnv);
- }
- else
- {
- [ code deleted ]
-
- /* do extra alias lookup if found via gecos */
- if (rcode != EX_OK)
- alias(a, sendq);
-
- /* forward if still being sent */
- if (!bitset(QDONTSEND, a->q_flags))
- {
- if (!quoted)
- forward(a, sendq);
- }
- }
-
- Eric Wassenaar
- --
- Organization: NIKHEF-H, National Institute for Nuclear and High-Energy Physics
- Address: Kruislaan 409, P.O. Box 41882, 1009 DB Amsterdam, the Netherlands
- Phone: +31 20 592 5012, Home: +31 20 6909449, Telefax: +31 20 592 5155
- Internet: e07@nikhef.nl
-