[bfe245f] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
[6732c094] | 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.5/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">
|
---|
[191ae95] | 8 | <!ENTITY procmail-download-ftp "ftp://ftp.psg.com/pub/unix/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 |
|
---|
[061ec9d] | 57 | <para condition="html" role="usernotes">User Notes:
|
---|
| 58 | <ulink url="&blfs-wiki;/procmail"/></para>
|
---|
| 59 |
|
---|
[97063a43] | 60 | </sect2>
|
---|
[e6f1fd6] | 61 |
|
---|
[97063a43] | 62 | <sect2 role="installation">
|
---|
| 63 | <title>Installation of Procmail</title>
|
---|
[e6f1fd6] | 64 |
|
---|
[5b06328] | 65 | <para>This package does not come with a test suite.</para>
|
---|
| 66 |
|
---|
[f314186c] | 67 | <para>Install <application>Procmail</application> by running the following
|
---|
[97063a43] | 68 | commands as the <systemitem class="username">root</systemitem> user:</para>
|
---|
[e6f1fd6] | 69 |
|
---|
[191ae95] | 70 | <screen role='root'><userinput>sed -i 's/getline/get_line/' src/*.[ch] &&
|
---|
| 71 | make LOCKINGTEST=/tmp install &&
|
---|
[97063a43] | 72 | make install-suid</userinput></screen>
|
---|
[e6f1fd6] | 73 |
|
---|
[97063a43] | 74 | </sect2>
|
---|
[e6f1fd6] | 75 |
|
---|
[97063a43] | 76 | <sect2 role="commands">
|
---|
[e3353b3] | 77 | <title>Command Explanations</title>
|
---|
[e6f1fd6] | 78 |
|
---|
[191ae95] | 79 | <para><command>sed -i 's/getline/get_line/' src/*.[ch]</command>: This renames
|
---|
| 80 | procmail's getline function to avoid conflict with the getline function from
|
---|
| 81 | <application>glibc</application>.</para>
|
---|
| 82 |
|
---|
[f314186c] | 83 | <para><command>make LOCKINGTEST=/tmp install</command>: This prevents
|
---|
| 84 | <command>make</command> from asking you where to test file-locking
|
---|
[97063a43] | 85 | patterns.</para>
|
---|
[e6f1fd6] | 86 |
|
---|
[97063a43] | 87 | <para><command>make install-suid</command>: Modifies permissions of
|
---|
| 88 | the installed files.</para>
|
---|
[e6f1fd6] | 89 |
|
---|
[97063a43] | 90 | </sect2>
|
---|
[e6f1fd6] | 91 |
|
---|
[97063a43] | 92 | <sect2 role="configuration">
|
---|
| 93 | <title>Configuring Procmail</title>
|
---|
[e6f1fd6] | 94 |
|
---|
[97063a43] | 95 | <sect3 id="procmail-config">
|
---|
[e3353b3] | 96 | <title>Config Files</title>
|
---|
[e6f1fd6] | 97 |
|
---|
[f314186c] | 98 | <para><filename>/etc/procmailrc</filename> and
|
---|
[97063a43] | 99 | <filename>~/.procmailrc</filename></para>
|
---|
[e6f1fd6] | 100 |
|
---|
[97063a43] | 101 | <indexterm zone="procmail procmail-config">
|
---|
| 102 | <primary sortas="e-AA.procmailrc">~/.procmailrc</primary>
|
---|
| 103 | </indexterm>
|
---|
[e6f1fd6] | 104 |
|
---|
[97063a43] | 105 | <indexterm zone="procmail procmail-config">
|
---|
| 106 | <primary sortas="e-etc-procmailrc">/etc/procmailrc</primary>
|
---|
| 107 | </indexterm>
|
---|
[e6f1fd6] | 108 |
|
---|
[97063a43] | 109 | </sect3>
|
---|
[e6f1fd6] | 110 |
|
---|
[97063a43] | 111 | <sect3>
|
---|
| 112 | <title>Configuration Information</title>
|
---|
[e6f1fd6] | 113 |
|
---|
[a41f643] | 114 | <para>Recipes have to be written and placed in
|
---|
[e3353b3] | 115 | <filename>~/.procmailrc</filename> for execution. The procmailex man
|
---|
[0a4d3456] | 116 | page is the starting place to learn how to write recipes.
|
---|
| 117 | For additional information, see also
|
---|
| 118 | <ulink url="http://pm-doc.sourceforge.net/pm-tips.html"/>.
|
---|
| 119 | </para>
|
---|
[e6f1fd6] | 120 |
|
---|
[97063a43] | 121 | </sect3>
|
---|
[e6f1fd6] | 122 |
|
---|
[97063a43] | 123 | </sect2>
|
---|
[e6f1fd6] | 124 |
|
---|
[97063a43] | 125 | <sect2 role="content">
|
---|
| 126 | <title>Contents</title>
|
---|
[e6f1fd6] | 127 |
|
---|
[97063a43] | 128 | <segmentedlist>
|
---|
| 129 | <segtitle>Installed Programs</segtitle>
|
---|
| 130 | <segtitle>Installed Libraries</segtitle>
|
---|
| 131 | <segtitle>Installed Directories</segtitle>
|
---|
[e6f1fd6] | 132 |
|
---|
[97063a43] | 133 | <seglistitem>
|
---|
| 134 | <seg>formail, lockfile, mailstat and procmail</seg>
|
---|
| 135 | <seg>None</seg>
|
---|
| 136 | <seg>None</seg>
|
---|
| 137 | </seglistitem>
|
---|
| 138 | </segmentedlist>
|
---|
[e6f1fd6] | 139 |
|
---|
[97063a43] | 140 | <variablelist>
|
---|
| 141 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 142 | <?dbfo list-presentation="list"?>
|
---|
| 143 | <?dbhtml list-presentation="table"?>
|
---|
[e6f1fd6] | 144 |
|
---|
[97063a43] | 145 | <varlistentry id="formail">
|
---|
| 146 | <term><command>formail</command></term>
|
---|
| 147 | <listitem>
|
---|
| 148 | <para>is a filter that can be used to format mail into mailbox format.</para>
|
---|
| 149 | <indexterm zone="procmail formail">
|
---|
| 150 | <primary sortas="b-formail">formail</primary>
|
---|
| 151 | </indexterm>
|
---|
| 152 | </listitem>
|
---|
| 153 | </varlistentry>
|
---|
[e6f1fd6] | 154 |
|
---|
[97063a43] | 155 | <varlistentry id="lockfile">
|
---|
| 156 | <term><command>lockfile</command></term>
|
---|
| 157 | <listitem>
|
---|
| 158 | <para>is a utility that can lock a file for single use interactively or in a
|
---|
| 159 | script.</para>
|
---|
| 160 | <indexterm zone="procmail lockfile">
|
---|
| 161 | <primary sortas="b-lockfile">lockfile</primary>
|
---|
| 162 | </indexterm>
|
---|
| 163 | </listitem>
|
---|
| 164 | </varlistentry>
|
---|
[e6f1fd6] | 165 |
|
---|
[97063a43] | 166 | <varlistentry id="mailstat">
|
---|
| 167 | <term><command>mailstat</command></term>
|
---|
| 168 | <listitem>
|
---|
[f314186c] | 169 | <para>prints a summary report of mail that has been filtered by
|
---|
[e6f1fd6] | 170 | <command>procmail</command> since the last time <command>mailstat</command>
|
---|
[97063a43] | 171 | was ran.</para>
|
---|
| 172 | <indexterm zone="procmail mailstat">
|
---|
| 173 | <primary sortas="b-mailstat">mailstat</primary>
|
---|
| 174 | </indexterm>
|
---|
| 175 | </listitem>
|
---|
| 176 | </varlistentry>
|
---|
[e6f1fd6] | 177 |
|
---|
[97063a43] | 178 | <varlistentry id="procmail-prog">
|
---|
| 179 | <term><command>procmail</command></term>
|
---|
| 180 | <listitem>
|
---|
[f314186c] | 181 | <para>is an autonomous mail processor. It performs all the functions
|
---|
[97063a43] | 182 | of an MDA (Mail Delivery Agent).</para>
|
---|
| 183 | <indexterm zone="procmail procmail-prog">
|
---|
| 184 | <primary sortas="b-procmail">procmail</primary>
|
---|
| 185 | </indexterm>
|
---|
| 186 | </listitem>
|
---|
| 187 | </varlistentry>
|
---|
| 188 | </variablelist>
|
---|
[e6f1fd6] | 189 |
|
---|
[97063a43] | 190 | </sect2>
|
---|
[e6f1fd6] | 191 |
|
---|
[f45b1953] | 192 | </sect1>
|
---|
| 193 |
|
---|