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