Mercurial > masqmail
annotate man/masqmail.aliases.5 @ 434:f2a7271746d1 default tip
Removes Freshmeat.net from the docs
The site, which was later renamed to freecode.com, is no longer
maintained (contains only a static copy).
author | markus schnalke <meillo@marmaro.de> |
---|---|
date | Sat, 07 Feb 2015 11:45:07 +0100 |
parents | 34c919a8d74e |
children |
rev | line source |
---|---|
431
34c919a8d74e
Bumps version number and updates Changelog and NEWS
markus schnalke <meillo@marmaro.de>
parents:
387
diff
changeset
|
1 .TH masqmail.aliases 5 2015-02-07 masqmail-0.3.5 "File Formats" |
34 | 2 |
0 | 3 .SH NAME |
4 masqmail.aliases \- masqmail alias file format | |
34 | 5 |
6 | |
0 | 7 .SH DESCRIPTION |
8 | |
34 | 9 This man page describes the format of the masqmail alias file. |
387
a408411ff8df
Added a glob-pattern aliasing facility.
markus schnalke <meillo@marmaro.de>
parents:
380
diff
changeset
|
10 It's usual location is \fI/etc/aliases\fR. |
a408411ff8df
Added a glob-pattern aliasing facility.
markus schnalke <meillo@marmaro.de>
parents:
380
diff
changeset
|
11 |
a408411ff8df
Added a glob-pattern aliasing facility.
markus schnalke <meillo@marmaro.de>
parents:
380
diff
changeset
|
12 There exists also a variant of this format for glob patterns. |
a408411ff8df
Added a glob-pattern aliasing facility.
markus schnalke <meillo@marmaro.de>
parents:
380
diff
changeset
|
13 It's used with the \fIglobalias_file\fP config option. |
a408411ff8df
Added a glob-pattern aliasing facility.
markus schnalke <meillo@marmaro.de>
parents:
380
diff
changeset
|
14 |
a408411ff8df
Added a glob-pattern aliasing facility.
markus schnalke <meillo@marmaro.de>
parents:
380
diff
changeset
|
15 The difference between the two formats are only on the left-hand side. |
a408411ff8df
Added a glob-pattern aliasing facility.
markus schnalke <meillo@marmaro.de>
parents:
380
diff
changeset
|
16 A normal alias file has a local_part there that gets string-compared |
a408411ff8df
Added a glob-pattern aliasing facility.
markus schnalke <meillo@marmaro.de>
parents:
380
diff
changeset
|
17 against the local part; |
a408411ff8df
Added a glob-pattern aliasing facility.
markus schnalke <meillo@marmaro.de>
parents:
380
diff
changeset
|
18 whereas a glob alias file has a glob pattern that is matched against |
a408411ff8df
Added a glob-pattern aliasing facility.
markus schnalke <meillo@marmaro.de>
parents:
380
diff
changeset
|
19 the whole address. The right-hand side of the two aliasing kinds |
a408411ff8df
Added a glob-pattern aliasing facility.
markus schnalke <meillo@marmaro.de>
parents:
380
diff
changeset
|
20 has the same format. |
34 | 21 |
0 | 22 |
23 .SH FILE FORMAT | |
24 | |
387
a408411ff8df
Added a glob-pattern aliasing facility.
markus schnalke <meillo@marmaro.de>
parents:
380
diff
changeset
|
25 Normal alias files consist of lines of the form: |
a408411ff8df
Added a glob-pattern aliasing facility.
markus schnalke <meillo@marmaro.de>
parents:
380
diff
changeset
|
26 |
a408411ff8df
Added a glob-pattern aliasing facility.
markus schnalke <meillo@marmaro.de>
parents:
380
diff
changeset
|
27 .RS |
0 | 28 local_part: item1, item2, ... |
387
a408411ff8df
Added a glob-pattern aliasing facility.
markus schnalke <meillo@marmaro.de>
parents:
380
diff
changeset
|
29 .RE |
a408411ff8df
Added a glob-pattern aliasing facility.
markus schnalke <meillo@marmaro.de>
parents:
380
diff
changeset
|
30 |
a408411ff8df
Added a glob-pattern aliasing facility.
markus schnalke <meillo@marmaro.de>
parents:
380
diff
changeset
|
31 Glob-pattern alias files consist of lines of the form: |
a408411ff8df
Added a glob-pattern aliasing facility.
markus schnalke <meillo@marmaro.de>
parents:
380
diff
changeset
|
32 |
a408411ff8df
Added a glob-pattern aliasing facility.
markus schnalke <meillo@marmaro.de>
parents:
380
diff
changeset
|
33 .RS |
a408411ff8df
Added a glob-pattern aliasing facility.
markus schnalke <meillo@marmaro.de>
parents:
380
diff
changeset
|
34 glob_pattern: item1, item2, ... |
a408411ff8df
Added a glob-pattern aliasing facility.
markus schnalke <meillo@marmaro.de>
parents:
380
diff
changeset
|
35 .RE |
a408411ff8df
Added a glob-pattern aliasing facility.
markus schnalke <meillo@marmaro.de>
parents:
380
diff
changeset
|
36 |
34 | 37 Items can be surrounded by double quotes `"'. |
38 If within the quotes other quotes are needed for an address they can be | |
39 escaped with a leading backslash `\\'. | |
0 | 40 |
387
a408411ff8df
Added a glob-pattern aliasing facility.
markus schnalke <meillo@marmaro.de>
parents:
380
diff
changeset
|
41 A leading backslash `\\' indicates that this address shall not be |
a408411ff8df
Added a glob-pattern aliasing facility.
markus schnalke <meillo@marmaro.de>
parents:
380
diff
changeset
|
42 further expanded. |
0 | 43 |
387
a408411ff8df
Added a glob-pattern aliasing facility.
markus schnalke <meillo@marmaro.de>
parents:
380
diff
changeset
|
44 A leading pipe symbol `|' indicates that the item shall be treated as a |
a408411ff8df
Added a glob-pattern aliasing facility.
markus schnalke <meillo@marmaro.de>
parents:
380
diff
changeset
|
45 pipe command. |
a408411ff8df
Added a glob-pattern aliasing facility.
markus schnalke <meillo@marmaro.de>
parents:
380
diff
changeset
|
46 The content of the message will then be sent to the standard input of the |
a408411ff8df
Added a glob-pattern aliasing facility.
markus schnalke <meillo@marmaro.de>
parents:
380
diff
changeset
|
47 command. |
34 | 48 The command will run under the user id and group id masqmail is running as. |
49 If quotes are needed, the pipe symbol must appear within the quotes. | |
0 | 50 |
51 Loops will be detected, the offending address will be ignored. | |
52 | |
34 | 53 Aliases will be expanded at delivery time. |
54 This means that if there is a message still in the queue and you change | |
55 any alias which matches one of the recipient addresses, | |
56 the change will have effect next time a delivery is attemped. | |
0 | 57 |
387
a408411ff8df
Added a glob-pattern aliasing facility.
markus schnalke <meillo@marmaro.de>
parents:
380
diff
changeset
|
58 There is no need to restart masqmail or run any command when the alias |
a408411ff8df
Added a glob-pattern aliasing facility.
markus schnalke <meillo@marmaro.de>
parents:
380
diff
changeset
|
59 file has been changed. (`masqmail -bi' is a no-op.) |
0 | 60 |
34 | 61 |
308 | 62 .SH EXAMPLE |
63 | |
387
a408411ff8df
Added a glob-pattern aliasing facility.
markus schnalke <meillo@marmaro.de>
parents:
380
diff
changeset
|
64 A normal alias file: |
a408411ff8df
Added a glob-pattern aliasing facility.
markus schnalke <meillo@marmaro.de>
parents:
380
diff
changeset
|
65 |
a408411ff8df
Added a glob-pattern aliasing facility.
markus schnalke <meillo@marmaro.de>
parents:
380
diff
changeset
|
66 .RS |
308 | 67 .nf |
68 # postmaster is required by RFC 2821 | |
69 postmaster: root | |
70 | |
71 # forward abuse mail to another address | |
72 abuse: abuse@example.org | |
73 | |
74 # copy root's mail also to meillo | |
75 root: \\root, meillo | |
76 | |
77 # pass mail to a script | |
78 foo: |/usr/bin/foo | |
79 .fi | |
387
a408411ff8df
Added a glob-pattern aliasing facility.
markus schnalke <meillo@marmaro.de>
parents:
380
diff
changeset
|
80 .RE |
a408411ff8df
Added a glob-pattern aliasing facility.
markus schnalke <meillo@marmaro.de>
parents:
380
diff
changeset
|
81 |
a408411ff8df
Added a glob-pattern aliasing facility.
markus schnalke <meillo@marmaro.de>
parents:
380
diff
changeset
|
82 |
a408411ff8df
Added a glob-pattern aliasing facility.
markus schnalke <meillo@marmaro.de>
parents:
380
diff
changeset
|
83 A glob-pattern alias file: |
a408411ff8df
Added a glob-pattern aliasing facility.
markus schnalke <meillo@marmaro.de>
parents:
380
diff
changeset
|
84 |
a408411ff8df
Added a glob-pattern aliasing facility.
markus schnalke <meillo@marmaro.de>
parents:
380
diff
changeset
|
85 .RS |
a408411ff8df
Added a glob-pattern aliasing facility.
markus schnalke <meillo@marmaro.de>
parents:
380
diff
changeset
|
86 .nf |
a408411ff8df
Added a glob-pattern aliasing facility.
markus schnalke <meillo@marmaro.de>
parents:
380
diff
changeset
|
87 # the postmaster for any domain on this host |
a408411ff8df
Added a glob-pattern aliasing facility.
markus schnalke <meillo@marmaro.de>
parents:
380
diff
changeset
|
88 postmaster@*: ken |
a408411ff8df
Added a glob-pattern aliasing facility.
markus schnalke <meillo@marmaro.de>
parents:
380
diff
changeset
|
89 |
a408411ff8df
Added a glob-pattern aliasing facility.
markus schnalke <meillo@marmaro.de>
parents:
380
diff
changeset
|
90 # split virtual domains |
a408411ff8df
Added a glob-pattern aliasing facility.
markus schnalke <meillo@marmaro.de>
parents:
380
diff
changeset
|
91 info@foo.example.org: doug |
a408411ff8df
Added a glob-pattern aliasing facility.
markus schnalke <meillo@marmaro.de>
parents:
380
diff
changeset
|
92 info@bar.example.org: rob |
a408411ff8df
Added a glob-pattern aliasing facility.
markus schnalke <meillo@marmaro.de>
parents:
380
diff
changeset
|
93 |
a408411ff8df
Added a glob-pattern aliasing facility.
markus schnalke <meillo@marmaro.de>
parents:
380
diff
changeset
|
94 # the order of entries is important |
a408411ff8df
Added a glob-pattern aliasing facility.
markus schnalke <meillo@marmaro.de>
parents:
380
diff
changeset
|
95 # this must be before the catch-all line |
a408411ff8df
Added a glob-pattern aliasing facility.
markus schnalke <meillo@marmaro.de>
parents:
380
diff
changeset
|
96 list\-*@example.org: |/path/to/some/script |
a408411ff8df
Added a glob-pattern aliasing facility.
markus schnalke <meillo@marmaro.de>
parents:
380
diff
changeset
|
97 |
a408411ff8df
Added a glob-pattern aliasing facility.
markus schnalke <meillo@marmaro.de>
parents:
380
diff
changeset
|
98 # catch-all address forwarded to extern |
a408411ff8df
Added a glob-pattern aliasing facility.
markus schnalke <meillo@marmaro.de>
parents:
380
diff
changeset
|
99 *@example.org: brian@other.host.net |
a408411ff8df
Added a glob-pattern aliasing facility.
markus schnalke <meillo@marmaro.de>
parents:
380
diff
changeset
|
100 .fi |
a408411ff8df
Added a glob-pattern aliasing facility.
markus schnalke <meillo@marmaro.de>
parents:
380
diff
changeset
|
101 .RE |
308 | 102 |
103 | |
0 | 104 .SH AUTHOR |
105 | |
34 | 106 Masqmail was written by Oliver Kurth. |
107 It is now maintained by Markus Schnalke <meillo@marmaro.de>. | |
0 | 108 |
387
a408411ff8df
Added a glob-pattern aliasing facility.
markus schnalke <meillo@marmaro.de>
parents:
380
diff
changeset
|
109 You will find the newest version of masqmail at |
a408411ff8df
Added a glob-pattern aliasing facility.
markus schnalke <meillo@marmaro.de>
parents:
380
diff
changeset
|
110 \fBhttp://marmaro.de/prog/masqmail/\fR. |
a408411ff8df
Added a glob-pattern aliasing facility.
markus schnalke <meillo@marmaro.de>
parents:
380
diff
changeset
|
111 There is also a mailing list, you will find information about |
a408411ff8df
Added a glob-pattern aliasing facility.
markus schnalke <meillo@marmaro.de>
parents:
380
diff
changeset
|
112 it at masqmail's main site. |
0 | 113 |
34 | 114 |
0 | 115 .SH BUGS |
116 | |
34 | 117 Please report bugs to the mailing list. |
118 | |
0 | 119 |
120 .SH SEE ALSO | |
121 | |
34 | 122 \fBmasqmail.conf(5)\fR, \fBmasqmail(8)\fR, |