Mercurial > masqmail
annotate man/masqmail.route.5 @ 314:e74ee75453db
small wording change
author | meillo@marmaro.de |
---|---|
date | Mon, 25 Apr 2011 15:14:04 +0200 |
parents | e230bcd0f1c6 |
children | d596ac8b5afb |
rev | line source |
---|---|
291
95d536599fd7
updated ChangeLog, NEWS and date/version in the man pages
markus schnalke <meillo@marmaro.de>
parents:
228
diff
changeset
|
1 .TH masqmail.route 5 2010-12-08 masqmail-0.3.1 "File Formats" |
34 | 2 |
0 | 3 .SH NAME |
4 masqmail.route \- masqmail route configuration file | |
34 | 5 |
6 | |
0 | 7 .SH DESCRIPTION |
8 | |
34 | 9 This man page describes the syntax of the route configuration files of \fBmasqmail (8)\fR. |
10 Their usual locations are in \fI/etc/masqmail/\fR. | |
0 | 11 |
311
e230bcd0f1c6
removed protocol option from route config
meillo@marmaro.de
parents:
291
diff
changeset
|
12 Mail will be sent with the SMTP protocol to its destination, unless |
e230bcd0f1c6
removed protocol option from route config
meillo@marmaro.de
parents:
291
diff
changeset
|
13 `pipe' is given. |
e230bcd0f1c6
removed protocol option from route config
meillo@marmaro.de
parents:
291
diff
changeset
|
14 In this case the message will be piped to the given program. |
e230bcd0f1c6
removed protocol option from route config
meillo@marmaro.de
parents:
291
diff
changeset
|
15 See option `pipe' below. |
0 | 16 |
311
e230bcd0f1c6
removed protocol option from route config
meillo@marmaro.de
parents:
291
diff
changeset
|
17 |
e230bcd0f1c6
removed protocol option from route config
meillo@marmaro.de
parents:
291
diff
changeset
|
18 .SH OPTIONS |
0 | 19 |
34 | 20 .TP |
21 \fBmail_host\fR = \fIstring\fR | |
0 | 22 |
34 | 23 This is preferably the mail server of your ISP. |
24 All outgoing messages will be sent to this host which will distribute them to their destinations. | |
25 If you do not set this mails will be sent directly. | |
26 Because the mail server is probably `near' to you, mail transfer will be much faster if you use it. | |
0 | 27 |
28 You can optionally give a port number following the host name and a colon, eg mail_host="mail.foo.com:25". | |
34 | 29 |
0 | 30 .TP |
34 | 31 \fBresolve_list\fR = \fIlist\fR |
0 | 32 |
34 | 33 Specify the method how the domain of the server is resolved. |
34 Possible values are dns_mx, dns_a, byname. | |
35 For `dns_mx', the domain is assumed to be an MX pointer to a list of host names, | |
36 these will be tried each in order (lowest preference value first, equal preference values in random order). | |
37 For `dns_a', the domain is assumed to be an A pointer. | |
38 For `byname', the library function \fBgethostbyname(3)\fR will be used. | |
0 | 39 |
40 The default is "dns_mx;dns_a;byname". | |
34 | 41 |
0 | 42 .TP |
34 | 43 \fBconnect_error_fail\fR = \fIboolean\fR |
0 | 44 |
34 | 45 If this is set, a connection error will cause a mail delivery to fail, ie. it will be bounced. |
46 If it is unset, it will just be defered. | |
0 | 47 |
34 | 48 Default is false. |
49 The reason for this is that masqmail is designed for non permanent internet connections, | |
50 where such errors may occur quite often, and a bounce would be annoying. | |
0 | 51 |
171
15b3c71254cb
documented the wrapper option of route files better
meillo@marmaro.de
parents:
142
diff
changeset
|
52 For the default local_net route it is set to true. |
34 | 53 |
0 | 54 .TP |
34 | 55 \fBhelo_name\fR = \fIstring\fR |
0 | 56 |
34 | 57 Set the name given with the HELO/EHLO command. If this is not set, |
58 \fBhost_name\fR from \fImasqmail.conf\fR will be used, | |
59 if the \fBdo_correct_helo\fR option (see below) is unset. | |
0 | 60 |
61 .TP | |
34 | 62 \fBdo_correct_helo\fR = \fIboolean\fR |
0 | 63 |
34 | 64 If this is set, masqmail tries to look up your host name as it appears |
65 on the internet and sends this in the HELO/EHLO command. | |
66 Some servers are so picky that they want this. | |
67 Which is really crazy. | |
68 It just does not make any sense to lie about ones own identity, | |
69 because it can always be looked up by the server. | |
70 Nobody should believe in the name given by HELO/EHLO anyway. | |
71 If this is not set, \fBhost_name\fR from \fImasqmail.conf\fR or as given with | |
72 the \fBhelo_name\fR (see above) will be used. | |
0 | 73 |
74 .TP | |
222 | 75 \fBinstant_helo\fR = \fIboolean\fR |
76 | |
77 If this is set, masqmail does not wait for the greeting of the SMTP server | |
78 after opening the connection. | |
79 Instead it says EHLO right away (ESMTP is assumed). | |
80 Use this option with wrappers that eat the 220 greeting of the SMTP server. | |
223 | 81 Common examples are STARTTLS wrappers, like `openssl s_client -starttls smtp ...'. |
222 | 82 |
83 If this option is set and a 220 greeting is received though, | |
84 everything should still work. | |
85 Please don't rely on that and keep in mind that RFC 2821 says that the client | |
86 SHOULD wait for the 220 greeting of the server. | |
87 | |
88 Default: false | |
89 | |
90 | |
91 .TP | |
34 | 92 \fBdo_pipelining\fR = \fIboolean\fR |
0 | 93 |
34 | 94 If this is set to false, masqmail will not use ESMTP PIPELINING, |
95 even if the server announces that it is able to cope with it. | |
96 Default is true. | |
0 | 97 |
34 | 98 You do not want to set this to false unless the mail setup on the |
99 remote server side is really broken. | |
100 Keywords: wingate. | |
0 | 101 |
102 .TP | |
34 | 103 \fBallowed_mail_locals\fR = \fIlist\fR |
104 | |
105 This is a semicolon `;' separated list of local parts which will be allowed | |
106 to send mail through this connection. | |
107 If unset and \fBnot_allowed_mail_locals\fR is also unset, all users are allowed. | |
0 | 108 |
109 .TP | |
34 | 110 \fBnot_allowed_mail_locals\fR = \fIlist\fR |
0 | 111 |
34 | 112 This is a semicolon `;' separated list of local parts which will be not allowed |
113 to send mail through this connection. | |
114 Local parts in this list will not be allowed to use this route even if they | |
115 are part of \fBallowed_mail_locals\fR (see above). | |
0 | 116 |
34 | 117 .TP |
118 \fBallowed_return_paths\fR = \fIlist\fR | |
119 | |
120 This is a semicolon `;' separated list of addresses. | |
141 | 121 Messages which have one of these addresses as the return path will be used using this route |
34 | 122 (if not also in \fBnot_allowed_return_paths\fR or an item in \fBnot_allowed_mail_locals\fR matches). |
0 | 123 |
34 | 124 Patterns containing `?' and `*' can be used. |
125 The special item "<>" matches the null sender address (eg. failure notices or delivery notifications). | |
0 | 126 |
34 | 127 .TP |
128 \fBnot_allowed_return_paths\fR = \fIlist\fR | |
0 | 129 |
34 | 130 This is a semicolon `;' separated list of addresses. |
141 | 131 Messages which have one of these addresses as the return path will not |
34 | 132 be used using this route (even if also in \fBallowed_return_paths\fR |
133 or an item in \fBallowed_mail_locals\fR matches). | |
0 | 134 |
34 | 135 Patterns containing `?' and `*' can be used. |
136 The special item "<>" matches the null sender address (eg. failure notices or delivery notifications). | |
137 | |
0 | 138 .TP |
34 | 139 \fBallowed_rcpt_domains\fR = \fIlist\fR |
0 | 140 |
34 | 141 A list of recipient domains where mail will be sent to. |
142 This is for example useful if you use this route configuration when connected to another LAN via ppp. | |
143 Patterns containing `?' and `*' can be used. | |
144 | |
0 | 145 .TP |
34 | 146 \fBnot_allowed_rcpt_domains\fR = \fIlist\fR |
0 | 147 |
34 | 148 A list of recipient domains where mail will not be sent to. |
149 This is for example useful if you send mail directly (\fBmail_host\fR is not set) | |
150 and you know of hosts that will not accept mail from you because they use a dialup list | |
151 (eg. \fBhttp://maps.vix.com/dul/\fR). | |
152 If any domain matches both \fBallowed_rcpt_domains\fR and \fBnot_allowed_rcpt_domains\fR, | |
153 mail will not be sent to this domain. | |
154 Patterns containing `?' and `*' can be used. | |
0 | 155 |
34 | 156 .TP |
157 \fBset_h_from_domain\fR = \fIstring\fR | |
0 | 158 |
34 | 159 Replace the domain part in `From:' headers with this value. |
160 This may be useful if you use a private, outside unknown address on your local LAN | |
141 | 161 and want this to be replaced by the domain of the address of your email address on the internet. |
34 | 162 Note that this is different to \fBset_return_path_domain\fR, see below. |
0 | 163 |
164 .TP | |
138
80b207e8b8af
documented, yet undocumented, set_h_reply_to_domain config option
meillo@marmaro.de
parents:
95
diff
changeset
|
165 \fBset_h_reply_to_domain\fR = \fIstring\fR |
80b207e8b8af
documented, yet undocumented, set_h_reply_to_domain config option
meillo@marmaro.de
parents:
95
diff
changeset
|
166 |
80b207e8b8af
documented, yet undocumented, set_h_reply_to_domain config option
meillo@marmaro.de
parents:
95
diff
changeset
|
167 Same as \fBset_h_from_domain\fP, but for the `Reply-To' header. |
80b207e8b8af
documented, yet undocumented, set_h_reply_to_domain config option
meillo@marmaro.de
parents:
95
diff
changeset
|
168 |
80b207e8b8af
documented, yet undocumented, set_h_reply_to_domain config option
meillo@marmaro.de
parents:
95
diff
changeset
|
169 .TP |
34 | 170 \fBset_return_path_domain\fR = \fIstring\fR |
0 | 171 |
34 | 172 Sets the domain part of the envelope from address. |
173 Some hosts check whether this is the same as the net the connection is coming from. | |
174 If not, they reject the mail because they suspect spamming. | |
175 It should be a valid address, because some mail servers also check that. | |
176 You can also use this to set it to your usual address on the internet | |
177 and put a local address only known on your LAN in the configuration of your mailer. | |
178 Only the domain part will be changed, the local part remains unchanged. | |
179 Use \fBmap_return_path_addresses\fR for rewriting local parts. | |
0 | 180 |
34 | 181 .TP |
182 \fBmap_h_from_addresses\fR = \fIlist\fR | |
183 | |
184 This is similar to \fBset_h_from_domain\fR, but more flexible. | |
185 Set this to a list which maps local parts to a full RFC 822 compliant email address, | |
186 the local parts (the keys) are separated from the addresses (the values) by colons (`:'). | |
0 | 187 |
188 Example: | |
223 | 189 .nf |
0 | 190 map_h_from_addresses = "john: John Smith <jsmith@mail.academic.edu>; charlie: Charlie Miller <cmiller@mx.commercial.com>" |
223 | 191 .fi |
0 | 192 |
193 You can use patterns, eg. * as keys. | |
34 | 194 |
0 | 195 .TP |
34 | 196 \fBmap_h_reply_to_addresses\fR = \fIlist\fR |
0 | 197 |
34 | 198 Same as \fBmap_h_from_addresses\fR, but for the `Reply-To:' header. |
0 | 199 |
200 .TP | |
34 | 201 \fBmap_h_mail_followup_to_addresses\fR = \fIlist\fR |
0 | 202 |
34 | 203 Same as \fBmap_h_from_addresses\fR, but for the `Mail-Followup-To:' header. |
204 Useful when replying to mailing lists. | |
0 | 205 |
206 .TP | |
34 | 207 \fBmap_return_path_addresses\fR = \fIlist\fR |
0 | 208 |
34 | 209 This is similar to \fBset_return_path_domain\fR, but more flexible. |
210 Set this to a list which maps local parts to a full RFC 821 compliant email address, | |
211 the local parts (the keys) are separated from the addresses (the values) by colons (`:'). | |
212 Note that this option takes RFC 821 addresses while \fBmap_h_from_addresses\fR takes RFC 822 addresses. | |
213 The most important difference is that RFC 821 addresses have no full name. | |
0 | 214 |
215 Example: | |
223 | 216 .nf |
0 | 217 map_return_path_addresses = "john: <jsmith@mail.academic.edu>; charlie: <cmiller@mx.commercial.com>" |
223 | 218 .fi |
0 | 219 |
220 You can use patterns, eg. * as keys. | |
34 | 221 |
0 | 222 .TP |
34 | 223 \fBexpand_h_sender_address\fR = \fIboolean\fR |
0 | 224 |
34 | 225 This sets the domain of the sender address as given by the Sender: header |
226 to the same address as in the envelope return path address | |
227 (which can be set by either \fBset_return_path_domain\fR or \fBmap_return_path_addresses\fR). | |
228 This is for mail clients (eg. Microsoft Outlook) which use this address as the sender address. | |
229 Though they should use the From: address, see RFC 821. | |
230 If \fBfetchmail(1)\fR encounters an unqualified Sender: address, | |
231 it will be expanded to the domain of the pop server, which is almost never correct. | |
232 Default is true. | |
233 | |
0 | 234 .TP |
34 | 235 \fBexpand_h_sender_domain\fR = \fIboolean\fR |
0 | 236 |
34 | 237 Like \fBexpand_h_sender_address\fR, but sets the domain only. |
238 Deprecated, will be removed in a later version. | |
239 | |
0 | 240 .TP |
34 | 241 \fBlast_route\fR = \fIboolean\fR |
0 | 242 |
34 | 243 If this is set, a mail which would have been delivered using this route, |
244 but has failed temporarily, will not be tried to be delivered using the next route. | |
0 | 245 |
34 | 246 If you have set up a special route with filters using the lists `allowed_rcpt_domains', |
247 `allowed_return_paths', and `allowed_mail_locals' or their complements (not_), | |
248 and the mail passing these rules should be delivered using this route only, | |
249 you should set this to `true'. | |
250 Otherwise the mail would be passed to the next route (if any), | |
251 unless that route has rules which prevent that. | |
0 | 252 |
253 Default is false. | |
34 | 254 |
0 | 255 .TP |
34 | 256 \fBauth_name\fR = \fIstring\fR |
0 | 257 |
34 | 258 Set the authentication type for ESMTP AUTH authentication. |
259 Currently only `cram-md5' and `login' are supported. | |
260 | |
0 | 261 .TP |
34 | 262 \fBauth_login\fR = \fIstring\fR |
0 | 263 |
24 | 264 Your account name for ESMTP AUTH authentication. |
34 | 265 |
0 | 266 .TP |
34 | 267 \fBauth_secret\fR = \fIstring\fR |
0 | 268 |
24 | 269 Your secret for ESMTP AUTH authentication. |
34 | 270 |
0 | 271 .TP |
34 | 272 \fBwrapper\fR = \fIcommand\fR |
0 | 273 |
34 | 274 If set, instead of opening a connection to a remote server, |
275 \fIcommand\fR will be called and all traffic will be piped to its stdin and from its stdout. | |
276 Purpose is to tunnel ip traffic, eg. for ssl. | |
0 | 277 |
223 | 278 Example for SMTP over SSL tunneling: |
279 .nf | |
280 wrapper="/usr/bin/openssl s_client \-quiet \-connect mail.gmx.net:465 2>/dev/null" | |
281 .fi | |
0 | 282 |
223 | 283 SMTP over SSL is supported since masqmail-0.1.8. |
284 It is marked obsolete by the IETF but is still in use. | |
285 | |
171
15b3c71254cb
documented the wrapper option of route files better
meillo@marmaro.de
parents:
142
diff
changeset
|
286 |
223 | 287 Example for encryption with STARTTLS (RFC-3207): |
288 .nf | |
289 # don't forget the instant_helo, otherwise it won't work | |
290 instant_helo=true | |
291 wrapper="/usr/bin/openssl s_client \-quiet \-starttls smtp \-connect mail.gmx.net:25 2>/dev/null" | |
292 .fi | |
171
15b3c71254cb
documented the wrapper option of route files better
meillo@marmaro.de
parents:
142
diff
changeset
|
293 |
223 | 294 This is supported since masqmail-0.2.28. |
295 STARTTLS supersedes SMTP over SSL. | |
180
1472a6a73b1c
do *not* use the openssl option -crlf in a wrapper command
meillo@marmaro.de
parents:
171
diff
changeset
|
296 |
1472a6a73b1c
do *not* use the openssl option -crlf in a wrapper command
meillo@marmaro.de
parents:
171
diff
changeset
|
297 Note for openssl: |
1472a6a73b1c
do *not* use the openssl option -crlf in a wrapper command
meillo@marmaro.de
parents:
171
diff
changeset
|
298 Ensure that stderr is redirected. |
1472a6a73b1c
do *not* use the openssl option -crlf in a wrapper command
meillo@marmaro.de
parents:
171
diff
changeset
|
299 Do *not* use \-crlf in the wrapper command, because masqmail does already insert CRLF. |
1472a6a73b1c
do *not* use the openssl option -crlf in a wrapper command
meillo@marmaro.de
parents:
171
diff
changeset
|
300 However, you might want to specify \-crlf if you want to test your wrapper command |
1472a6a73b1c
do *not* use the openssl option -crlf in a wrapper command
meillo@marmaro.de
parents:
171
diff
changeset
|
301 interactively on the command line. |
34 | 302 |
0 | 303 .TP |
34 | 304 \fBpipe\fR = \fIcommand\fR |
0 | 305 |
34 | 306 \fIcommand\fR will be called and the message will be piped to its stdin. |
307 Purpose is to use gateways to uucp, fax, sms or whatever else. | |
0 | 308 |
34 | 309 You can use variables to give as arguments to the command, |
310 these are the same as for the mda in the main configuration, see \fBmasqmail.conf(5)\fR. | |
311 | |
0 | 312 .TP |
34 | 313 \fBpipe_fromline = \fIboolean\fR |
0 | 314 |
311
e230bcd0f1c6
removed protocol option from route config
meillo@marmaro.de
parents:
291
diff
changeset
|
315 Only if `pipe' is used. |
e230bcd0f1c6
removed protocol option from route config
meillo@marmaro.de
parents:
291
diff
changeset
|
316 A from line will be prepended to the output stream whenever a pipe command is called. |
34 | 317 Default is false. |
0 | 318 |
319 .TP | |
34 | 320 \fBpipe_fromhack = \fIboolean\fR |
0 | 321 |
311
e230bcd0f1c6
removed protocol option from route config
meillo@marmaro.de
parents:
291
diff
changeset
|
322 Only if `pipe' is used. |
e230bcd0f1c6
removed protocol option from route config
meillo@marmaro.de
parents:
291
diff
changeset
|
323 Each line beginning with `From ' is replaced with `>From ' whenever a pipe command is called. |
34 | 324 You probably want this if you have set \fBpipe_fromline\fR above. |
325 Default is false. | |
0 | 326 |
34 | 327 |
0 | 328 .SH AUTHOR |
329 | |
34 | 330 Masqmail was written by Oliver Kurth. |
331 It is now maintained by Markus Schnalke <meillo@marmaro.de>. | |
0 | 332 |
95
e01fed4846e4
masqmail's homepage moved prog.marmaro.de/masqmail -> marmaro.de/prog/masqmail
meillo@marmaro.de
parents:
57
diff
changeset
|
333 You will find the newest version of masqmail at \fBhttp://marmaro.de/prog/masqmail/\fR. |
26
607221b0dac1
added myself as maintainer; updated URL of the website
meillo@marmaro.de
parents:
24
diff
changeset
|
334 There is also a mailing list, you will find information about it at masqmail's main site. |
0 | 335 |
34 | 336 |
0 | 337 .SH BUGS |
338 | |
34 | 339 Please report bugs to the mailing list. |
0 | 340 |
341 .SH SEE ALSO | |
342 | |
192 | 343 \fBmasqmail(8)\fR, \fBmasqmail.conf(5)\fR |