/
sigh.8
182 lines (182 loc) · 4.22 KB
/
sigh.8
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
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
'\" t
.\" Title: sigh
.\" Author: [see the "AUTHOR" section]
.\" Generator: DocBook XSL Stylesheets v1.79.1 <http://docbook.sf.net/>
.\" Date: 07/04/2016
.\" Manual: \ \&
.\" Source: \ \&
.\" Language: English
.\"
.TH "SIGH" "8" "07/04/2016" "\ \&" "\ \&"
.\" -----------------------------------------------------------------
.\" * Define some portability stuff
.\" -----------------------------------------------------------------
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.\" http://bugs.debian.org/507673
.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.ie \n(.g .ds Aq \(aq
.el .ds Aq '
.\" -----------------------------------------------------------------
.\" * set default formatting
.\" -----------------------------------------------------------------
.\" disable hyphenation
.nh
.\" disable justification (adjust text to left margin only)
.ad l
.\" -----------------------------------------------------------------
.\" * MAIN CONTENT STARTS HERE *
.\" -----------------------------------------------------------------
.SH "NAME"
sigh \- Sign emails with S/MIME
.SH "SYNOPSIS"
.sp
\fBsigh\fR [\fIOPTIONS\fR]
.SH "DESCRIPTION"
.sp
Sigh is a milter that checks the MAIL FROM command and searches in a simple map file \- a table \- for a S/MIME certificate and key\&. If found, the email will be signed\&. The milter ensures that an email only gets signed once, if it was not signed or encrypted elsewhere\&.
.sp
The files specified by the map file are required to be in PEM format\&. The keys must be unencrypted\&. A certificate may include intermediate certificates\&. For this, the file must have the main certificate and its intermediate certificates being concatenated in order, to have the resulting email signed correctly\&.
.sp
The format of the map file as well as possible options in the configuration file for the milter are described in the example files sigh\-example\&.cfg and mapfile\-example\&.txt\&.
.SH "OPTIONS"
.PP
\-\-config, \-c (/etc/sigh/sigh\&.cfg)
.RS 4
Specify a configuration file for this milter\&.
.RE
.PP
\-\-daemon, \-d
.RS 4
If the milter is compiled with daemon support, it forks itself into a daemon process\&. This option is not available on Apple OS X (or newer)\&.
.RE
.PP
\-\-debug
.RS 4
Enable debugging output to the console\&. Debugging is not written to the syslog file\&. You must start the milter in foreground, to get any output\&.
.RE
.PP
\-\-group, \-g (milter)
.RS 4
When the milter gets started, it drops its group privileges to this group\&.
.RE
.PP
\-\-pidfile, \-p
.RS 4
If the milter is started as a daemon, it can create a PID file for the init system\&. After shutdown, the file will be removed again\&.
.RE
.PP
\-\-socket, \-s (inet:4000@127\&.0\&.0\&.1)
.RS 4
The milter will create a TCP or unix socket for its MTA\&. The format for this parameter is as follows:
.sp
.if n \{\
.RS 4
.\}
.nf
For IPv4:
inet:port@address
.fi
.if n \{\
.RE
.\}
.sp
.if n \{\
.RS 4
.\}
.nf
For IPv6:
inet6:port@[address]
.fi
.if n \{\
.RE
.\}
.sp
.if n \{\
.RS 4
.\}
.nf
For unix\-socket:
unix:/path/to/socket
.fi
.if n \{\
.RE
.\}
.sp
.if n \{\
.RS 4
.\}
.nf
Example:
.fi
.if n \{\
.RE
.\}
.sp
.if n \{\
.RS 4
.\}
.nf
Listen on port 5678 on the IPv6 loopback address:
inet:5678@[::1]
.fi
.if n \{\
.RE
.\}
.RE
.PP
\-\-user, \-u (milter)
.RS 4
When the milter gets started, it drops its user privileges to this user\&.
.RE
.SH "EXAMPLES"
.sp
Start the milter in foreground with debugging turned on and create a unix socket:
.sp
.if n \{\
.RS 4
.\}
.nf
sigh \-\-debug \-\-config /etc/sigh/sigh\&.cfg \-\-socket unix:/var/run/sigh\&.sock
.fi
.if n \{\
.RE
.\}
.sp
Normal start:
.sp
.if n \{\
.RS 4
.\}
.nf
sigh \-\-daemon \-\-config /etc/sigh/sigh\&.cfg \-\-pidfile /run/sigh\&.pid
.fi
.if n \{\
.RE
.\}
.SH "EXIT STATUS"
.PP
\fB0\fR
.RS 4
Success
.RE
.PP
\fBnon 0\fR
.RS 4
Result of the underlying libmilter library
.RE
.SH "VERSION"
.sp
1607\&.1\&.0
.SH "BUGS"
.sp
For bugs please visit http://signing\-milter\&.org\&.
.SH "AUTHOR"
.sp
Sigh was written by Christian Roessner <c@roessner\&.co>
.SH "SEE ALSO"
.sp
/etc/sigh/sigh\-example\&.cfg, /etc/sigh/mapfile\-example\&.txt
.SH "RESOURCES"
.sp
project: https://signing\-milter\&.org