Mercurial > masqmail
view docs/old-manual/alias.html @ 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 | f6a6f55b7b9e |
children |
line wrap: on
line source
<HTML> <HEAD> <TITLE>MasqMail - Manual </TITLE> </HEAD> <BODY TEXT="#000000" LINK="#0000ff" BGCOLOR="#ffffff"> <center> <table width="80%"> <tr><td> <table width="100%" bgcolor="#0000aa" cellspacing=0 cellpadding=0> <tr> <td> <a href="manual.html"> <img width="20" src = "../images/u_arrow.gif" alt = "manual"> </a> </td> <td align=center width="100%"><font size="6" color = "#ffffff">Alias Format</font></td> <td> <a href="./options.html"> <img width="20" src = "../images/l_arrow.gif" alt = "Options"> </a> </td> <td> <a href="./config.html"> <img width="20" src = "../images/r_arrow.gif" alt = "Configuration"> </a> </td> </tr> </table> <p>The alias file consists of lines of the form:</p> <pre> local_part: item1, item2, ... </pre> <p>Items can be surrounded by quotes '"'. If within the quotes other quotes are needed for an address they can be escaped with a leading backslash '\'.</p> <p>A leading '\' indicates that this address shall not be further expanded.</p> <p>A leading pipe symbol '|' indicates that the item shall be treated as a pipe command. The content of the message will then be sent to the standard input of a command. The command will run under the user id and group id masqmail is running as. If quotes are needed, the pipe symbol must appear <i>within</i> the quotes.</p> <p>Loops will be detected, the offending address will be ignored.</p> <p>Aliases will be expanded at <i>delivery</i> time. This means that if there is a message still in the queue and you change any alias which matches one of the recipient addresses, the change will have effect next time a delivery is attemped.</p> <p>There is no need to restart masqmail or run any command when the alias file has been changed.</p> </td></tr> <tr><td> <p> <hr> <address><a href = "mailto:kurth@innominate.de">Oliver Kurth</a></address> Last modified: Tue May 30 15:19:57 CEST 2000 <br> This page was created using <a href="http://www.freddyfrog.com/hacks/genpage/">Genpage</a> - Version: 1.0.6 </p> </table> </center> </BODY> </HEAD>