masqmail-0.2
view man/masqmail.aliases.5 @ 72:ad034b57f3b2
fixed Debian bug 536060 (log files are closed after SIGHUP receival)
Explanation:
When run in daemon mode, first the log files are opened. They get
assigned to the file descriptors 3 and 4 usually. Then std{in,out,err}
are closed. When SIGHUP comes in, all open files are closes and
masqmail reexecutes itself. The new masqmail instance opens the log
files at fd 0 and 1 now, but std{in,out,err} are closed afterwards,
thus the log files are closed.
The fix is to close the log files before std{in,out,err} are closed,
in case the log files have higher fds. After std{in,out,err} were
closed, the log files get opened again, now.
See also: http://bugs.debian.org/536060
author | meillo@marmaro.de |
---|---|
date | Wed, 16 Jun 2010 10:32:20 +0200 |
parents | 03817f849106 |
children | e01fed4846e4 |
line source
1 .TH masqmail.aliases 5 2010-05-07 masqmail-0.2.22 "File Formats"
3 .SH NAME
4 masqmail.aliases \- masqmail alias file format
7 .SH DESCRIPTION
9 This man page describes the format of the masqmail alias file.
10 Its usual location is \fI/etc/aliases\fR.
13 .SH FILE FORMAT
15 The alias file consists of lines of the form:
16 local_part: item1, item2, ...
17 Items can be surrounded by double quotes `"'.
18 If within the quotes other quotes are needed for an address they can be
19 escaped with a leading backslash `\\'.
21 A leading backslash `\\' indicates that this address shall not be further expanded.
23 A leading pipe symbol `|' indicates that the item shall be treated as a pipe command.
24 The content of the message will then be sent to the standard input of a command.
25 The command will run under the user id and group id masqmail is running as.
26 If quotes are needed, the pipe symbol must appear within the quotes.
28 Loops will be detected, the offending address will be ignored.
30 Aliases will be expanded at delivery time.
31 This means that if there is a message still in the queue and you change
32 any alias which matches one of the recipient addresses,
33 the change will have effect next time a delivery is attemped.
35 There is no need to restart masqmail or run any command when the alias file has been changed.
38 .SH AUTHOR
40 Masqmail was written by Oliver Kurth.
41 It is now maintained by Markus Schnalke <meillo@marmaro.de>.
43 You will find the newest version of masqmail at \fBhttp://prog.marmaro.de/masqmail/\fR.
44 There is also a mailing list, you will find information about it at masqmail's main site.
47 .SH BUGS
49 Please report bugs to the mailing list.
52 .SH SEE ALSO
54 \fBmasqmail.conf(5)\fR, \fBmasqmail(8)\fR,