opnsense-src/contrib/file/magic/Magdir/sendmail

38 lines
1.5 KiB
Text
Raw Normal View History

1996-01-23 07:29:07 -05:00
#------------------------------------------------------------------------------
2019-11-09 22:44:32 -05:00
# $File: sendmail,v 1.11 2019/04/19 00:42:27 christos Exp $
1996-01-23 07:29:07 -05:00
# sendmail: file(1) magic for sendmail config files
#
# XXX - byte order?
#
2017-09-17 11:57:06 -04:00
# Update: Joerg Jenderek
2016-04-18 00:43:03 -04:00
# GRR: this test is too general as it catches also
# READ.ME.FIRST.AWP Sendmail frozen configuration
# - version ====|====|====|====|====|====|====|====|====|====|====|====|===
# Email_23_f217153422.ts Sendmail frozen configuration
# - version \330jK\354
2017-09-17 11:57:06 -04:00
0 byte 046
2019-11-09 22:44:32 -05:00
# https://www.sendmail.com/sm/open_source/docs/older_release_notes/
2016-04-18 00:43:03 -04:00
# freezed configuration file (dbm format?) created from sendmal.cf with -bz
# by older sendmail. til version 8.6 support for frozen configuration files is removed
2017-09-17 11:57:06 -04:00
# valid version numbers look like "7.14.4" and should be similar to output of commands
# "sendmail -d0 -bt < /dev/null |grep -i Version" or "egrep '^DZ' /etc/sendmail.cf"
2016-04-18 00:43:03 -04:00
>16 regex/s =^[0-78][0-9.]{4} Sendmail frozen configuration
# normally only /etc/sendmail.fc or /var/adm/sendmail/sendmail.fc
!:ext fc
>>16 string >\0 - version %s
2017-09-17 11:57:06 -04:00
0 short 0x271c
2016-04-18 00:43:03 -04:00
# look for valid version number
>16 regex/s =^[0-78][0-9.]{4} Sendmail frozen configuration
!:ext fc
>>16 string >\0 - version %s
#------------------------------------------------------------------------------
# sendmail: file(1) magic for sendmail m4(1) files
#
# From Hendrik Scholz <hendrik@scholz.net>
# i.e. files in /usr/share/sendmail/cf/
#
0 string divert(-1)\n sendmail m4 text file