All rights reserved.
1174 | Chapter 26: The X (Milters) Configuration Command
For example, the following three mc file lines define three possible external Milter
program hooks:
INPUT_MAIL_FILTER(`progA??, ``S=local:/var/run/f1.sock, F=R????)
INPUT_MAIL_FILTER(`progB??, ``S=inet6:999@localhost, F=T, T=S:1s;R:1s;E:5m????)
INPUT_MAIL_FILTER(`progC??, `S=inet:3333@localhost')
The first example shows how to attach to a Unix-domain socket in the /var/run
directory. The second example shows how to connect to an IPv6 socket on port 999
of the local host. The third example shows how to connect to an IPv4 socket on port
3333 of the local host. We will describe each equate in detail in the following three
sections, but first, the following details should be noted.
If any argument contains commas, such as the first two in the preceding code, that
argument must be surrounded by two single quotes.
If the = is missing from an equate, the following error is printed and sendmail exits:
cf file: line number Xname `=' expected
If the key letter prefixing the = character is not one of the three shown in Table 26-3
on page 1173, the following error is printed and sendmail exits:
cf file: line number Xname unknown filter equate badequate=
Note that the three external Milter programs will be used in the order declared. First,
progA will be contacted on a Unix-domain socket.
Pages:
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113