-
Notifications
You must be signed in to change notification settings - Fork 1
/
sample.mc.in
executable file
·100 lines (86 loc) · 3.38 KB
/
sample.mc.in
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
dnl -------------------------------------------------------------------
dnl @PACKAGE_TARNAME@.mc
dnl -------------------------------------------------------------------
dnl Example configuration to be added to sendmail.mc.
dnl
dnl @package_copyright@
dnl
dnl $OpenBSD$
dnl
dnl -------------------------------------------------------------------
dnl Enable this for debug output from Sendmail.
dnl define(`confLOG_LEVEL', `14')dnl
dnl -------------------------------------------------------------------
dnl Enable this to see even more debug output.
dnl Defaults to confLOG_LEVEL.
dnl
dnl If Milter.LogLevel is greater-than:
dnl
dnl 0 Communication errors
dnl 8 Header & RCPT modification messages
dnl 9 Connect to info
dnl 10 Milter error return codes, abort messages
dnl 12 More return code info, connection/open errors
dnl 14 grey & rcpts info
dnl 17 Show headers & body sent to a milter.
dnl 18 Quit
dnl 21 Time a milter
dnl define(`confMILTER_LOG_LEVEL', 14)dnl
dnl -------------------------------------------------------------------
dnl The S= by default specifies a unix domain socket to be used between
dnl sendmail and the milter. It can also be an Internet domain socket.
dnl The accepted forms are:
dnl
dnl {unix|local}:/path/to/file A named pipe. (default)
dnl inet:port@{hostname|ip-address} An IPv4 socket.
dnl inet6:port@{hostname|ip-address} An IPv6 socket.
dnl
dnl Note that the F= says what to do with the message if the milter
dnl is not running.
dnl
dnl F=T Temporary fail connection if filter unavailable
dnl F=R Reject connection if filter unavailable
dnl
dnl If no F= specified and there is a problem with the milter, then
dnl the default is to continue normal handling, skipping the milter.
dnl
dnl Note that the T= specifies timeouts for communication. The
dnl following fields are defined:
dnl
dnl C Timeout for connecting to a filter. If set to zero (0),
dnl the system's connect() timeout will be used. Default: 5m
dnl S Timeout for sending information from the MTA to a
dnl filter. Default: 10s
dnl R Timeout for reading reply from the filter. Default: 10s
dnl E Overall timeout between sending end-of-message to filter
dnl and waiting for the final acknowledgment. Default: 5m
dnl
dnl So the Sendmail default values are equivalent to:
dnl
dnl T=C:5m;S=10s;R=10s;E:5m
dnl
INPUT_MAIL_FILTER(
`@PACKAGE_TARNAME@',
`S=unix:@snert_socket_file@, T=@snert_milter_t_equate@'
)dnl
dnl
dnl CORRECT macro definitions that include the default values, plus any
dnl additional values required by milter-sender or milter-greylist
dnl
dnl Defaults plus {client_resolve} for milter-sender.
dnl define(`confMILTER_MACROS_CONNECT', `j, _, {daemon_name},
dnl {if_name}, {if_addr}, {client_resolve}')
dnl Defaults plus {verify} for milter-sender, milter-greylist.
dnl define(`confMILTER_MACROS_HELO', `{tls_version}, {cipher},
dnl {cipher_bits}, {cert_subject}, {cert_issuer}, {verify}')
dnl Defaults
dnl define(`confMILTER_MACROS_ENVFROM', `i, {auth_type}, {auth_authen},
dnl {auth_ssf}, {auth_author}, {mail_mailer}, {mail_host}, {mail_addr}')
dnl Defaults plus {greylist} for milter-greylist.
dnl define(`confMILTER_MACROS_ENVRCPT', `{rcpt_mailer}, {rcpt_host},
dnl {rcpt_addr}, {greylist}')
dnl Defaults
dnl define(`confMILTER_MACROS_EOM', `{msg_id}')
dnl -------------------------------------------------------------------
dnl End @PACKAGE_TARNAME@.mc
dnl -------------------------------------------------------------------