home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / mail / sendmail / 2852 < prev    next >
Encoding:
Internet Message Format  |  1992-11-23  |  1.8 KB

  1. Path: sparky!uunet!mcsun!sun4nl!nikhefh!e07
  2. From: e07@nikhefh.nikhef.nl (Eric Wassenaar)
  3. Newsgroups: comp.mail.sendmail
  4. Subject: Re: IDA Sendmail does not check for aliases for fuzzy match names
  5. Keywords: ida sendmail fuzzy aliases
  6. Message-ID: <2025@nikhefh.nikhef.nl>
  7. Date: 23 Nov 92 12:16:17 GMT
  8. References: <1992Nov20.172728.25706@Synopsys.Com>
  9. Organization: Nikhef-H, Amsterdam (the Netherlands).
  10. Lines: 46
  11.  
  12. In article <1992Nov20.172728.25706@Synopsys.Com>, arnold@synopsys.com (Arnold de Leon) writes:
  13. > When IDA matches a name for using the "FUZZY" code it sends
  14. > it directly for the mailbox corresponding to that login name.
  15. > No further alias expansion is done.
  16.  
  17. sendmail should do an extra alias lookup in case the user was
  18. found via a gecos match. Below is an excerpt of what my sendmail
  19. does in this case. It requires adaptation of the finduser() routine
  20. to return a status indicating how the user was found.
  21.  
  22. recipient.c:
  23.             /*
  24.              * pw != NULL
  25.              *    rcode == EX_OK if found via getpwnam()
  26.              *    rcode == EX_NOUSER if matched via gecos.
  27.              * pw == NULL
  28.              *    rcode == EX_NOUSER if not matched at all.
  29.              */
  30.             pw = finduser(buf, &rcode);
  31.             if (pw == NULL)
  32.             {
  33.                 a->q_flags |= QDONTSEND|QBADADDR;
  34.                 giveresponse(rcode, m, CurEnv);
  35.             }
  36.             else
  37.             {
  38.                 [ code deleted ]
  39.  
  40.                 /* do extra alias lookup if found via gecos */
  41.                 if (rcode != EX_OK)
  42.                     alias(a, sendq);
  43.  
  44.                 /* forward if still being sent */
  45.                 if (!bitset(QDONTSEND, a->q_flags))
  46.                 {
  47.                     if (!quoted)
  48.                         forward(a, sendq);
  49.                 }
  50.             }
  51.  
  52. Eric Wassenaar
  53. -- 
  54. Organization: NIKHEF-H, National Institute for Nuclear and High-Energy Physics
  55. Address: Kruislaan 409, P.O. Box 41882, 1009 DB Amsterdam, the Netherlands
  56. Phone: +31 20 592 5012, Home: +31 20 6909449, Telefax: +31 20 592 5155
  57. Internet: e07@nikhef.nl
  58.