xref: /freebsd/contrib/file/magic/Magdir/sendmail (revision 40427cca7a9ae77b095936fb1954417c290cfb17)
1b6cee71dSXin LI
2b6cee71dSXin LI#------------------------------------------------------------------------------
3*40427ccaSGordon Tetlow# $File: sendmail,v 1.10 2017/08/13 00:21:47 christos Exp $
4b6cee71dSXin LI# sendmail:  file(1) magic for sendmail config files
5b6cee71dSXin LI#
6b6cee71dSXin LI# XXX - byte order?
7b6cee71dSXin LI#
83e41d09dSXin LI# Update: Joerg Jenderek
93e41d09dSXin LI# GRR: this test is too general as it catches also
103e41d09dSXin LI# READ.ME.FIRST.AWP Sendmail frozen configuration
113e41d09dSXin LI# - version ====|====|====|====|====|====|====|====|====|====|====|====|===
123e41d09dSXin LI# Email_23_f217153422.ts Sendmail frozen configuration
133e41d09dSXin LI# - version \330jK\354
143e41d09dSXin LI0	byte	046
153e41d09dSXin LI# http://www.sendmail.com/sm/open_source/docs/older_release_notes/
163e41d09dSXin LI# freezed configuration file (dbm format?) created from sendmal.cf with -bz
173e41d09dSXin LI# by older sendmail. til version 8.6 support for frozen configuration files is removed
18*40427ccaSGordon Tetlow# valid version numbers look like "7.14.4" and should be similar to output of commands
193e41d09dSXin LI# "sendmail -d0 -bt < /dev/null |grep -i Version" or "egrep '^DZ' /etc/sendmail.cf"
203e41d09dSXin LI>16	regex/s	=^[0-78][0-9.]{4}	Sendmail frozen configuration
213e41d09dSXin LI# normally only /etc/sendmail.fc or /var/adm/sendmail/sendmail.fc
223e41d09dSXin LI!:ext fc
233e41d09dSXin LI>>16	string	>\0			- version %s
243e41d09dSXin LI0	short	0x271c
253e41d09dSXin LI# look for valid version number
263e41d09dSXin LI>16	regex/s	=^[0-78][0-9.]{4}	Sendmail frozen configuration
273e41d09dSXin LI!:ext fc
283e41d09dSXin 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