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