home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / mail / sendmail / 2077 < prev    next >
Encoding:
Text File  |  1992-08-13  |  4.9 KB  |  122 lines

  1. Newsgroups: comp.mail.sendmail
  2. Path: sparky!uunet!harker.com!harker
  3. From: harker@harker.com (Robert Harker)
  4. Subject: Re: Perl Package to test Sendmail.cf?
  5. Message-ID: <1992Aug14.002450.2473@harker.com>
  6. Sender: news@harker.com
  7. Organization: Harker Systems, 1180 Hester Ave, San Jose, CA 95126
  8. References: <1992Aug12.120807.3834@grebyn.com> <1992Aug12.155740.17492@decuac.dec.com>
  9. Date: Fri, 14 Aug 1992 00:24:50 GMT
  10. Lines: 110
  11.  
  12. The perl script you are looking for is called "checksendmail" written by
  13. Gene Kim & Rob Kolstad & Jeff Polk and is available via anonymous FTP
  14. from boulder.colorado.edu in /pub/sendmail/checksendmail.shar (path name
  15. might be wrong).
  16.  
  17. check sendmail takes a list of addresses and first runs it through ruleset
  18. zero to determine which mailer is chosen for each address and what host and
  19. address gets passed to the specific mailer.  Then it passes all of the address
  20. through ththe sender and recipient rule sets for each mailer.  It then
  21. prints the results in a nice format.
  22.  
  23.  
  24. In article <1992Aug12.155740.17492@decuac.dec.com> avolio@dco.DEC.COM (Frederick M. Avolio) writes:
  25. >
  26. >Why is this better or different than testing sendmail using sendmail?
  27. >
  28.  
  29. checksendmail is a wonderfull program for checking a series of addresses.
  30.  
  31. sendmail -bt is very useful for debugging a specific rule or a specific
  32. address that is broken because it shows you all of the steps the address
  33. rewrite goes through.
  34.  
  35. checksendmail is better to test a range of your known addresses and
  36. address types (formats).  It tells you if all of the rules are doing
  37. the right thing as a whole.  Sample output is attached
  38.  
  39. One way I use it is to check that a new rewriting rule does not break
  40. other addresses in unexpected way.  I have the output before the new rule
  41. and the output after the new rule and I diff them to see what changes
  42.  
  43. Hope this helps
  44. Thanks in advance
  45. RLH
  46.  
  47. Robert Harker
  48. Harker Systems                Sun Sysadmin Consulting
  49. harker@harker.com            1180 Hester Ave
  50. apple!motcsd!harker!harker        San Jose, CA 95126
  51. {netcom,uunet}!harker!harker        408-295-9432
  52.  
  53.  
  54. Here is an example checksendmail address file:
  55.     # Dumb UUCP neighbor addresses should be forwarded to our UUCP neighbor
  56.     # as bang style addresses
  57.     dumbo!user
  58.     user@dumbo.uucp
  59.     # domain style addresses should be forwarded to our smart UUCP neighbor
  60.     # as domain style addresses
  61.     netcom!user
  62.     user@netcom.uucp
  63.     user@netcom
  64.     netcom!uucphost!user
  65.     # All other addresses should be forwarded to smart UUCP neighbor
  66.     # unchanged
  67.     uucphost!user
  68.     user@anything.dom
  69.  
  70. Here is the checksendmail output:
  71.     Mail address resolution
  72.     (ruleset zero, which mailer and what address gets passed)
  73.     dumbo!user                  --(dumbuu)-->  user[dumbo]
  74.     user@dumbo.uucp             --(dumbuu)-->  user[dumbo]
  75.     netcom!user                 --(smartu)-->  user[netcom]
  76.     user@netcom.uucp            --(smartu)-->  user[netcom]
  77.     user@netcom                 --(smartu)-->  user[netcom]
  78.     netcom!uucphost!user        --(smartu)-->  uucphost!user[netcom]
  79.     uucphost!user               --(smartu)-->  user@uucphost.uucp[uunet]
  80.     user@anything.dom           --(smartu)-->  user<@anything.dom>[uunet]
  81.  
  82.     `To' address transformations for mailer smartuucp:
  83.     dumbo!user                  ---->  user@dumbo.uucp
  84.     user@dumbo.uucp             ---->  user@dumbo.uucp
  85.     netcom!user                 ---->  user@netcom.uucp
  86.     user@netcom.uucp            ---->  user@netcom.uucp
  87.     user@netcom                 ---->  user@netcom
  88.     netcom!uucphost!user        ---->  uucphost!user@netcom.uucp
  89.     uucphost!user               ---->  user@uucphost.uucp
  90.     user@anything.dom           ---->  user@anything.dom
  91.  
  92.     `To' address transformations for mailer dumbuucp:
  93.     dumbo!user                  ---->  dumbo!user
  94.     user@dumbo.uucp             ---->  dumbo!user
  95.     netcom!user                 ---->  netcom!user
  96.     user@netcom.uucp            ---->  netcom!user
  97.     user@netcom                 ---->  netcom!user
  98.     netcom!uucphost!user        ---->  netcom!uucphost!user
  99.     uucphost!user               ---->  uucphost!user
  100.     user@anything.dom           ---->  anything.dom!user
  101.  
  102.     `From' address transformations for mailer smartuucp:
  103.     dumbo!user                  ---->  user@dumbo.uucp
  104.     user@dumbo.uucp             ---->  user@dumbo.uucp
  105.     netcom!user                 ---->  user@netcom.uucp
  106.     user@netcom.uucp            ---->  user@netcom.uucp
  107.     user@netcom                 ---->  user@netcom
  108.     netcom!uucphost!user        ---->  uucphost!user@netcom.uucp
  109.     uucphost!user               ---->  user@uucphost.uucp
  110.     user@anything.dom           ---->  user@anything.dom
  111.  
  112.     `From' address transformations for mailer dumbuucp:
  113.     dumbo!user                  ---->  widget!dumbo!user
  114.     user@dumbo.uucp             ---->  widget!dumbo!user
  115.     netcom!user                 ---->  widget!netcom!user
  116.     user@netcom.uucp            ---->  widget!netcom!user
  117.     user@netcom                 ---->  widget!netcom!user
  118.     netcom!uucphost!user        ---->  widget!netcom!uucphost!user
  119.     uucphost!user               ---->  widget!uucphost!user
  120.     user@anything.dom           ---->  widget!anything.dom!user
  121.  
  122.