sendmail 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. #------------------------------------------------------------------------------
  2. # $File: sendmail,v 1.8 2015/11/11 15:27:03 christos Exp $
  3. # sendmail: file(1) magic for sendmail config files
  4. #
  5. # XXX - byte order?
  6. #
  7. # Update: Joerg Jenderek
  8. # GRR: this test is too general as it catches also
  9. # READ.ME.FIRST.AWP Sendmail frozen configuration
  10. # - version ====|====|====|====|====|====|====|====|====|====|====|====|===
  11. # Email_23_f217153422.ts Sendmail frozen configuration
  12. # - version \330jK\354
  13. 0 byte 046
  14. # http://www.sendmail.com/sm/open_source/docs/older_release_notes/
  15. # freezed configuration file (dbm format?) created from sendmal.cf with -bz
  16. # by older sendmail. til version 8.6 support for frozen configuration files is removed
  17. # valid version numbers look like "7.14.4" and should be simliar to output of commands
  18. # "sendmail -d0 -bt < /dev/null |grep -i Version" or "egrep '^DZ' /etc/sendmail.cf"
  19. >16 regex/s =^[0-78][0-9.]{4} Sendmail frozen configuration
  20. # normally only /etc/sendmail.fc or /var/adm/sendmail/sendmail.fc
  21. !:ext fc
  22. >>16 string >\0 - version %s
  23. 0 short 0x271c
  24. # look for valid version number
  25. >16 regex/s =^[0-78][0-9.]{4} Sendmail frozen configuration
  26. !:ext fc
  27. >>16 string >\0 - version %s
  28. #------------------------------------------------------------------------------
  29. # sendmail: file(1) magic for sendmail m4(1) files
  30. #
  31. # From Hendrik Scholz <hendrik@scholz.net>
  32. # i.e. files in /usr/share/sendmail/cf/
  33. #
  34. 0 string divert(-1)\n sendmail m4 text file