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