<html> <body> <h2>The slow.init script</h2> The <b>slow.init</b> file is used to start, stop, and restart the <b>slowmilt</b> daemon. It is suitable to install in, for example, <i>/etc/init.d</i>, or <i>/etc/rc.local</i>. The recommended proceedure is to copy or rename it in the /etc/mail/milter/slow directory, from <i>slow.init.pat</i> into <i>slow.init</i>. <p> Before you may use <b>slow.init</b> in production, you need to edit it and redefine its contents. <p> First you need to decide who is going to run it. If it is going to be run by <i>root</i>, you need to define two variables: <p><code><pre><menu> MILTERWHO=user MILTERRUNAS="su ${MILTERWHO} -c" </menu></pre></code> Here, <code>user</code> is the name of the user that the milter will run as. Note that the milter will refuse to run as <i>root</i>. <p> If you intend to run the milter by hand (as for testing), you may use the following macro definitions instead: <p><code><pre><menu> MILTERWHO=yourself MILTERRUNAS= </menu></pre></code> Here, <code>yourself</code> is your own login name. <p> In the event you chose to install the <b>slowmilt</b> system in a directory other than the default (/etc/mail/milter/slow), you will need to modify the following define with that new location: <p><code><pre><menu> MILTERDIR=/email/filters/slow </menu></pre></code> If you wish to give the <b>slowmilt</b> milter any command-line options at startup, you may define them with the following macro: <p><code><pre><menu> MILTERARGS="-Dsource" </menu></pre></code> Here, <code>-Dsource</code> causes the source file names and line numbers to be printed and logged as part of any error message or warning. <p> Other macros in the <b>slow.init</b> file are obvious from context and will likely never need to be changed. <p> The <b>slow.init</b> script take one of three arguements when it is run: <p> <a name="restart"><table border="1" cellpadding="3"></a> <tr bgcolor="lightgrey"><td>Command</td><td>Does What</td></tr> <tr><td align="center">start</td><td>Start the milter running. If it is already running, the new milter will fail to start because its port is already in use. Creates a semaphore file so that <b>slow.run</b> can detect a stop command.</td></tr> <tr><td align="center">stop</td><td>Stop the milter. If it is already stopped, this command will print an error. This command removes the semaphore file, then signals the milter to abort. The shutdown of the milter can take a few seconds.</td></tr> <tr><td align="center">restart</td><td>Restart the milter. This is the equalivent of stopping and starting the milter with the <b>stop</b> and <b>start</b> commands by hand.</td></tr> </table> <p> Once you've started the milter, never kill it by hand. If you do, the <b>slow.run</b> script will automatically restart it. Only use <b>slow.init stop</b> to stop the milter. <p> </body> </html>
# | Change | User | Description | Committed | |
---|---|---|---|---|---|
#2 | 4052 | bryan_costales |
Implimented: whitelisting AddMXHost for MX servers that lie Converted to thread safe DNS routines garbage collection RunAsUser and RunAsGroup for root startups rebuild the database summarize by IP number Finished all documentation. Moved release from alpha to beta |
||
#1 | 3998 | bryan_costales |
Brought the whole distribution up to V0.9 Added a huge abount of documentation. Added slowedit find Created startup scripts to launch for testing Fixed numerous bugs. Fixed a few portablity issues. Installed hooks for whitelisting and IP aliases. |