3 ratfs \- mail address ratification file system
20 starts a process that mounts itself (see
27 is a persistent representation of the local network
28 configuration and spam blocking list. Without it
31 would need to reread and parse a multimegabyte list
32 of addresses and accounts.
35 serves a control file,
37 and several top level directories:
46 The control file is write only and accepts three
59 and sends debugging output to it.
62 closes the debug file and turns off debugging
67 serves a file for each IP range from which all mail
68 is trusted. The names of the files are CIDR blocks;
69 an IP address or an IP address followed by
73 is the number of bits to match.
74 To check if any IP address falls in a trusted
75 range, it is sufficient to open the file whose
76 name is the IP address.
79 contains only the file
81 an attempt to open the file 135.104.9.1 will
82 succeed while opening 10.1.1.1 will fail.
83 To determine the particular range matched,
88 field will be the matching CIDR range.
90 The trusted ranges come both from the
95 .BR /mail/lib/blocked )
96 and from creates, typically done by
104 whenever they are used to read someone's mail.
106 The remaining directories,
113 represent the contents of the
116 .BR /mail/lib/smtpd.conf.ext ).
117 Each contains two directories;
123 directory has the same open semantics as the
125 directory, i.e., to check if an IP address falls
126 in that category, try to open a file whose
127 name is the IP address.
130 directory is similar but is used for matching
131 strings. Each file in the directory represents
132 a regular expression. To see if one of the
133 strings matches one of the regular expressions,
134 try to open the file whose name is the string.
135 If it succeeds, then there is a regular expression
136 that matches. To determine the regular expression,
140 field will be the regular expression.
142 There is a direct mapping from entries in
151 A configuration file entry of the form:
155 corresponds to the file
156 .BR dial/ip/135.104.9.0#24 .
161 corresponds to the file
162 .BR block/account/.*!gre .
164 Both the configuration file and control file formats
168 .B /sys/src/cmd/ratfs