[bfe245f] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
[ff769b8c] | 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
|
---|
[bfe245f] | 4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
| 5 | %general-entities;
|
---|
| 6 |
|
---|
| 7 | <!ENTITY procmail-download-http "http://www.procmail.org/procmail-&procmail-version;.tar.gz">
|
---|
| 8 | <!ENTITY procmail-download-ftp "ftp://ftp.procmail.net/pub/procmail/procmail-&procmail-version;.tar.gz">
|
---|
[55c657e] | 9 | <!ENTITY procmail-md5sum "1678ea99b973eb77eda4ecf6acae53f1">
|
---|
[d45e8c9] | 10 | <!ENTITY procmail-size "226 KB">
|
---|
| 11 | <!ENTITY procmail-buildsize "1.7 MB">
|
---|
| 12 | <!ENTITY procmail-time "0.08 SBU">
|
---|
[bfe245f] | 13 | ]>
|
---|
| 14 |
|
---|
[1708d1e9] | 15 | <sect1 id="procmail" xreflabel="Procmail-&procmail-version;">
|
---|
[97063a43] | 16 | <?dbhtml filename="procmail.html"?>
|
---|
[e6f1fd6] | 17 |
|
---|
[97063a43] | 18 | <sect1info>
|
---|
| 19 | <othername>$LastChangedBy$</othername>
|
---|
| 20 | <date>$Date$</date>
|
---|
| 21 | </sect1info>
|
---|
[e6f1fd6] | 22 |
|
---|
[97063a43] | 23 | <title>Procmail-&procmail-version;</title>
|
---|
[e6f1fd6] | 24 |
|
---|
[97063a43] | 25 | <indexterm zone="procmail">
|
---|
| 26 | <primary sortas="a-Procmail">Procmail</primary>
|
---|
| 27 | </indexterm>
|
---|
[e6f1fd6] | 28 |
|
---|
[97063a43] | 29 | <sect2 role="package">
|
---|
| 30 | <title>Introduction to Procmail</title>
|
---|
[e6f1fd6] | 31 |
|
---|
[f314186c] | 32 | <para>The <application>Procmail</application> package contains an autonomous
|
---|
[97063a43] | 33 | mail processor. This is useful for filtering and sorting incoming mail.</para>
|
---|
[e6f1fd6] | 34 |
|
---|
[97063a43] | 35 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 36 | <itemizedlist spacing='compact'>
|
---|
| 37 | <listitem>
|
---|
| 38 | <para>Download (HTTP): <ulink url="&procmail-download-http;"/></para>
|
---|
| 39 | </listitem>
|
---|
| 40 | <listitem>
|
---|
| 41 | <para>Download (FTP): <ulink url="&procmail-download-ftp;"/></para>
|
---|
| 42 | </listitem>
|
---|
| 43 | <listitem>
|
---|
| 44 | <para>Download MD5 sum: &procmail-md5sum;</para>
|
---|
| 45 | </listitem>
|
---|
| 46 | <listitem>
|
---|
| 47 | <para>Download size: &procmail-size;</para>
|
---|
| 48 | </listitem>
|
---|
| 49 | <listitem>
|
---|
| 50 | <para>Estimated disk space required: &procmail-buildsize;</para>
|
---|
| 51 | </listitem>
|
---|
| 52 | <listitem>
|
---|
| 53 | <para>Estimated build time: &procmail-time;</para>
|
---|
| 54 | </listitem>
|
---|
| 55 | </itemizedlist>
|
---|
[e6f1fd6] | 56 |
|
---|
[97063a43] | 57 | </sect2>
|
---|
[e6f1fd6] | 58 |
|
---|
[97063a43] | 59 | <sect2 role="installation">
|
---|
| 60 | <title>Installation of Procmail</title>
|
---|
[e6f1fd6] | 61 |
|
---|
[f314186c] | 62 | <para>Install <application>Procmail</application> by running the following
|
---|
[97063a43] | 63 | commands as the <systemitem class="username">root</systemitem> user:</para>
|
---|
[e6f1fd6] | 64 |
|
---|
[97063a43] | 65 | <screen role='root'><userinput>make LOCKINGTEST=/tmp install &&
|
---|
| 66 | make install-suid</userinput></screen>
|
---|
[e6f1fd6] | 67 |
|
---|
[97063a43] | 68 | </sect2>
|
---|
[e6f1fd6] | 69 |
|
---|
[97063a43] | 70 | <sect2 role="commands">
|
---|
[e3353b3] | 71 | <title>Command Explanations</title>
|
---|
[e6f1fd6] | 72 |
|
---|
[f314186c] | 73 | <para><command>make LOCKINGTEST=/tmp install</command>: This prevents
|
---|
| 74 | <command>make</command> from asking you where to test file-locking
|
---|
[97063a43] | 75 | patterns.</para>
|
---|
[e6f1fd6] | 76 |
|
---|
[97063a43] | 77 | <para><command>make install-suid</command>: Modifies permissions of
|
---|
| 78 | the installed files.</para>
|
---|
[e6f1fd6] | 79 |
|
---|
[97063a43] | 80 | </sect2>
|
---|
[e6f1fd6] | 81 |
|
---|
[97063a43] | 82 | <sect2 role="configuration">
|
---|
| 83 | <title>Configuring Procmail</title>
|
---|
[e6f1fd6] | 84 |
|
---|
[97063a43] | 85 | <sect3 id="procmail-config">
|
---|
[e3353b3] | 86 | <title>Config Files</title>
|
---|
[e6f1fd6] | 87 |
|
---|
[f314186c] | 88 | <para><filename>/etc/procmailrc</filename> and
|
---|
[97063a43] | 89 | <filename>~/.procmailrc</filename></para>
|
---|
[e6f1fd6] | 90 |
|
---|
[97063a43] | 91 | <indexterm zone="procmail procmail-config">
|
---|
| 92 | <primary sortas="e-AA.procmailrc">~/.procmailrc</primary>
|
---|
| 93 | </indexterm>
|
---|
[e6f1fd6] | 94 |
|
---|
[97063a43] | 95 | <indexterm zone="procmail procmail-config">
|
---|
| 96 | <primary sortas="e-etc-procmailrc">/etc/procmailrc</primary>
|
---|
| 97 | </indexterm>
|
---|
[e6f1fd6] | 98 |
|
---|
[97063a43] | 99 | </sect3>
|
---|
[e6f1fd6] | 100 |
|
---|
[97063a43] | 101 | <sect3>
|
---|
| 102 | <title>Configuration Information</title>
|
---|
[e6f1fd6] | 103 |
|
---|
[f314186c] | 104 | <para>Recipes have to be written and placed in your
|
---|
[e3353b3] | 105 | <filename>~/.procmailrc</filename> for execution. The procmailex man
|
---|
[97063a43] | 106 | page is the starting place to learn how to write recipes.</para>
|
---|
[e6f1fd6] | 107 |
|
---|
[97063a43] | 108 | </sect3>
|
---|
[e6f1fd6] | 109 |
|
---|
[97063a43] | 110 | </sect2>
|
---|
[e6f1fd6] | 111 |
|
---|
[97063a43] | 112 | <sect2 role="content">
|
---|
| 113 | <title>Contents</title>
|
---|
[e6f1fd6] | 114 |
|
---|
[97063a43] | 115 | <segmentedlist>
|
---|
| 116 | <segtitle>Installed Programs</segtitle>
|
---|
| 117 | <segtitle>Installed Libraries</segtitle>
|
---|
| 118 | <segtitle>Installed Directories</segtitle>
|
---|
[e6f1fd6] | 119 |
|
---|
[97063a43] | 120 | <seglistitem>
|
---|
| 121 | <seg>formail, lockfile, mailstat and procmail</seg>
|
---|
| 122 | <seg>None</seg>
|
---|
| 123 | <seg>None</seg>
|
---|
| 124 | </seglistitem>
|
---|
| 125 | </segmentedlist>
|
---|
[e6f1fd6] | 126 |
|
---|
[97063a43] | 127 | <variablelist>
|
---|
| 128 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 129 | <?dbfo list-presentation="list"?>
|
---|
| 130 | <?dbhtml list-presentation="table"?>
|
---|
[e6f1fd6] | 131 |
|
---|
[97063a43] | 132 | <varlistentry id="formail">
|
---|
| 133 | <term><command>formail</command></term>
|
---|
| 134 | <listitem>
|
---|
| 135 | <para>is a filter that can be used to format mail into mailbox format.</para>
|
---|
| 136 | <indexterm zone="procmail formail">
|
---|
| 137 | <primary sortas="b-formail">formail</primary>
|
---|
| 138 | </indexterm>
|
---|
| 139 | </listitem>
|
---|
| 140 | </varlistentry>
|
---|
[e6f1fd6] | 141 |
|
---|
[97063a43] | 142 | <varlistentry id="lockfile">
|
---|
| 143 | <term><command>lockfile</command></term>
|
---|
| 144 | <listitem>
|
---|
| 145 | <para>is a utility that can lock a file for single use interactively or in a
|
---|
| 146 | script.</para>
|
---|
| 147 | <indexterm zone="procmail lockfile">
|
---|
| 148 | <primary sortas="b-lockfile">lockfile</primary>
|
---|
| 149 | </indexterm>
|
---|
| 150 | </listitem>
|
---|
| 151 | </varlistentry>
|
---|
[e6f1fd6] | 152 |
|
---|
[97063a43] | 153 | <varlistentry id="mailstat">
|
---|
| 154 | <term><command>mailstat</command></term>
|
---|
| 155 | <listitem>
|
---|
[f314186c] | 156 | <para>prints a summary report of mail that has been filtered by
|
---|
[e6f1fd6] | 157 | <command>procmail</command> since the last time <command>mailstat</command>
|
---|
[97063a43] | 158 | was ran.</para>
|
---|
| 159 | <indexterm zone="procmail mailstat">
|
---|
| 160 | <primary sortas="b-mailstat">mailstat</primary>
|
---|
| 161 | </indexterm>
|
---|
| 162 | </listitem>
|
---|
| 163 | </varlistentry>
|
---|
[e6f1fd6] | 164 |
|
---|
[97063a43] | 165 | <varlistentry id="procmail-prog">
|
---|
| 166 | <term><command>procmail</command></term>
|
---|
| 167 | <listitem>
|
---|
[f314186c] | 168 | <para>is an autonomous mail processor. It performs all the functions
|
---|
[97063a43] | 169 | of an MDA (Mail Delivery Agent).</para>
|
---|
| 170 | <indexterm zone="procmail procmail-prog">
|
---|
| 171 | <primary sortas="b-procmail">procmail</primary>
|
---|
| 172 | </indexterm>
|
---|
| 173 | </listitem>
|
---|
| 174 | </varlistentry>
|
---|
| 175 | </variablelist>
|
---|
[e6f1fd6] | 176 |
|
---|
[97063a43] | 177 | </sect2>
|
---|
[e6f1fd6] | 178 |
|
---|
[f45b1953] | 179 | </sect1>
|
---|
| 180 |
|
---|