[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 |
|
---|
[c261b9c] | 7 | <!-- <!ENTITY procmail-download-http "http://www.ring.gr.jp/archives/net/mail/procmail/procmail-&procmail-version;.tar.gz"> -->
|
---|
[8558044] | 8 | <!ENTITY procmail-download-http "https://ftp.osuosl.org/pub/blfs/conglomeration/procmail/procmail-&procmail-version;.tar.gz">
|
---|
[2470be2d] | 9 | <!ENTITY procmail-download-ftp " ">
|
---|
| 10 | <!-- <!ENTITY procmail-download-ftp "ftp://ftp.informatik.rwth-aachen.de/pub/packages/procmail/procmail-&procmail-version;.tar.gz"> -->
|
---|
[55c657e] | 11 | <!ENTITY procmail-md5sum "1678ea99b973eb77eda4ecf6acae53f1">
|
---|
[d45e8c9] | 12 | <!ENTITY procmail-size "226 KB">
|
---|
| 13 | <!ENTITY procmail-buildsize "1.7 MB">
|
---|
[475078b] | 14 | <!ENTITY procmail-time "less than 0.1 SBU">
|
---|
[bfe245f] | 15 | ]>
|
---|
| 16 |
|
---|
[1708d1e9] | 17 | <sect1 id="procmail" xreflabel="Procmail-&procmail-version;">
|
---|
[97063a43] | 18 | <?dbhtml filename="procmail.html"?>
|
---|
[e6f1fd6] | 19 |
|
---|
[97063a43] | 20 | <sect1info>
|
---|
| 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 |
|
---|
[7c56ece] | 33 | <para>
|
---|
| 34 | The <application>Procmail</application> package contains an autonomous
|
---|
| 35 | mail processor. This is useful for filtering and sorting incoming mail.
|
---|
| 36 | </para>
|
---|
[e6f1fd6] | 37 |
|
---|
[9b8ff698] | 38 | &lfs112_checked;
|
---|
[d4796f8b] | 39 |
|
---|
[97063a43] | 40 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 41 | <itemizedlist spacing='compact'>
|
---|
| 42 | <listitem>
|
---|
[7c56ece] | 43 | <para>
|
---|
| 44 | Download (HTTP): <ulink url="&procmail-download-http;"/>
|
---|
| 45 | </para>
|
---|
[97063a43] | 46 | </listitem>
|
---|
| 47 | <listitem>
|
---|
[7c56ece] | 48 | <para>
|
---|
| 49 | Download (FTP): <ulink url="&procmail-download-ftp;"/>
|
---|
| 50 | </para>
|
---|
[97063a43] | 51 | </listitem>
|
---|
| 52 | <listitem>
|
---|
[7c56ece] | 53 | <para>
|
---|
| 54 | Download MD5 sum: &procmail-md5sum;
|
---|
| 55 | </para>
|
---|
[97063a43] | 56 | </listitem>
|
---|
| 57 | <listitem>
|
---|
[7c56ece] | 58 | <para>
|
---|
| 59 | Download size: &procmail-size;
|
---|
| 60 | </para>
|
---|
[97063a43] | 61 | </listitem>
|
---|
| 62 | <listitem>
|
---|
[7c56ece] | 63 | <para>
|
---|
| 64 | Estimated disk space required: &procmail-buildsize;
|
---|
| 65 | </para>
|
---|
[97063a43] | 66 | </listitem>
|
---|
| 67 | <listitem>
|
---|
[7c56ece] | 68 | <para>
|
---|
| 69 | Estimated build time: &procmail-time;
|
---|
| 70 | </para>
|
---|
[97063a43] | 71 | </listitem>
|
---|
| 72 | </itemizedlist>
|
---|
[e6f1fd6] | 73 |
|
---|
[ae60b0dd] | 74 | <bridgehead renderas="sect3">Additional Downloads</bridgehead>
|
---|
| 75 | <itemizedlist spacing="compact">
|
---|
| 76 | <listitem>
|
---|
| 77 | <para>
|
---|
| 78 | Required patch:
|
---|
| 79 | <ulink url="&patch-root;/procmail-&procmail-version;-consolidated_fixes-1.patch"/>
|
---|
| 80 | </para>
|
---|
| 81 | </listitem>
|
---|
| 82 | </itemizedlist>
|
---|
| 83 |
|
---|
[730a1810] | 84 | <bridgehead renderas="sect3">Procmail Dependencies</bridgehead>
|
---|
| 85 |
|
---|
| 86 | <bridgehead renderas="sect4">Recommended</bridgehead>
|
---|
| 87 | <para role="recommended">
|
---|
[beb65db] | 88 | A <xref linkend="server-mail"/> that installs sendmail
|
---|
[730a1810] | 89 | </para>
|
---|
| 90 |
|
---|
[a05e8c95] | 91 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
| 92 | <para role="optional">
|
---|
| 93 | <xref linkend="libnsl"/>
|
---|
| 94 | </para>
|
---|
| 95 |
|
---|
[061ec9d] | 96 | <para condition="html" role="usernotes">User Notes:
|
---|
| 97 | <ulink url="&blfs-wiki;/procmail"/></para>
|
---|
| 98 |
|
---|
[97063a43] | 99 | </sect2>
|
---|
[e6f1fd6] | 100 |
|
---|
[97063a43] | 101 | <sect2 role="installation">
|
---|
| 102 | <title>Installation of Procmail</title>
|
---|
[e6f1fd6] | 103 |
|
---|
[7c56ece] | 104 | <para>
|
---|
| 105 | This package does not come with a test suite.
|
---|
| 106 | </para>
|
---|
[5b06328] | 107 |
|
---|
[7c56ece] | 108 | <para>
|
---|
| 109 | Install <application>Procmail</application> by running the following
|
---|
| 110 | commands as the <systemitem class="username">root</systemitem> user:
|
---|
| 111 | </para>
|
---|
[e6f1fd6] | 112 |
|
---|
[ae60b0dd] | 113 | <screen role='root'><userinput>sed -i 's/getline/get_line/' src/*.[ch] &&
|
---|
| 114 | patch -Np1 -i ../procmail-&procmail-version;-consolidated_fixes-1.patch &&
|
---|
[80d6d7d5] | 115 |
|
---|
[ae60b0dd] | 116 | make LOCKINGTEST=/tmp MANDIR=/usr/share/man install &&
|
---|
[97063a43] | 117 | make install-suid</userinput></screen>
|
---|
[e6f1fd6] | 118 |
|
---|
[97063a43] | 119 | </sect2>
|
---|
[e6f1fd6] | 120 |
|
---|
[97063a43] | 121 | <sect2 role="commands">
|
---|
[e3353b3] | 122 | <title>Command Explanations</title>
|
---|
[e6f1fd6] | 123 |
|
---|
[7c56ece] | 124 | <para>
|
---|
| 125 | <command>sed -i 's/getline/get_line/' src/*.[ch]</command>: This renames
|
---|
| 126 | procmail's getline function to avoid conflict with the getline function
|
---|
| 127 | from <application>glibc</application>.
|
---|
| 128 | </para>
|
---|
[191ae95] | 129 |
|
---|
[7c56ece] | 130 | <para>
|
---|
| 131 | <command>make LOCKINGTEST=/tmp install</command>: This prevents
|
---|
| 132 | <command>make</command> from asking you where to test file-locking
|
---|
| 133 | patterns.
|
---|
| 134 | </para>
|
---|
[e6f1fd6] | 135 |
|
---|
[7c56ece] | 136 | <para>
|
---|
| 137 | <command>make install-suid</command>: Modifies permissions of
|
---|
| 138 | the installed files.
|
---|
| 139 | </para>
|
---|
[e6f1fd6] | 140 |
|
---|
[97063a43] | 141 | </sect2>
|
---|
[e6f1fd6] | 142 |
|
---|
[97063a43] | 143 | <sect2 role="configuration">
|
---|
| 144 | <title>Configuring Procmail</title>
|
---|
[e6f1fd6] | 145 |
|
---|
[97063a43] | 146 | <sect3 id="procmail-config">
|
---|
[e3353b3] | 147 | <title>Config Files</title>
|
---|
[e6f1fd6] | 148 |
|
---|
[7c56ece] | 149 | <para>
|
---|
| 150 | <filename>/etc/procmailrc</filename> and
|
---|
| 151 | <filename>~/.procmailrc</filename>
|
---|
| 152 | </para>
|
---|
[e6f1fd6] | 153 |
|
---|
[97063a43] | 154 | <indexterm zone="procmail procmail-config">
|
---|
| 155 | <primary sortas="e-AA.procmailrc">~/.procmailrc</primary>
|
---|
| 156 | </indexterm>
|
---|
[e6f1fd6] | 157 |
|
---|
[97063a43] | 158 | <indexterm zone="procmail procmail-config">
|
---|
| 159 | <primary sortas="e-etc-procmailrc">/etc/procmailrc</primary>
|
---|
| 160 | </indexterm>
|
---|
[e6f1fd6] | 161 |
|
---|
[97063a43] | 162 | </sect3>
|
---|
[e6f1fd6] | 163 |
|
---|
[97063a43] | 164 | <sect3>
|
---|
| 165 | <title>Configuration Information</title>
|
---|
[e6f1fd6] | 166 |
|
---|
[7c56ece] | 167 | <para>
|
---|
| 168 | Recipes have to be written and placed in
|
---|
| 169 | <filename>~/.procmailrc</filename> for execution. The procmailex man
|
---|
| 170 | page is the starting place to learn how to write recipes.
|
---|
| 171 | For additional information, see also
|
---|
| 172 | <ulink url="http://pm-doc.sourceforge.net/"/>.
|
---|
[0a4d3456] | 173 | </para>
|
---|
[e6f1fd6] | 174 |
|
---|
[97063a43] | 175 | </sect3>
|
---|
[e6f1fd6] | 176 |
|
---|
[97063a43] | 177 | </sect2>
|
---|
[e6f1fd6] | 178 |
|
---|
[97063a43] | 179 | <sect2 role="content">
|
---|
| 180 | <title>Contents</title>
|
---|
[e6f1fd6] | 181 |
|
---|
[97063a43] | 182 | <segmentedlist>
|
---|
| 183 | <segtitle>Installed Programs</segtitle>
|
---|
| 184 | <segtitle>Installed Libraries</segtitle>
|
---|
| 185 | <segtitle>Installed Directories</segtitle>
|
---|
[e6f1fd6] | 186 |
|
---|
[97063a43] | 187 | <seglistitem>
|
---|
| 188 | <seg>formail, lockfile, mailstat and procmail</seg>
|
---|
| 189 | <seg>None</seg>
|
---|
| 190 | <seg>None</seg>
|
---|
| 191 | </seglistitem>
|
---|
| 192 | </segmentedlist>
|
---|
[e6f1fd6] | 193 |
|
---|
[97063a43] | 194 | <variablelist>
|
---|
| 195 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 196 | <?dbfo list-presentation="list"?>
|
---|
| 197 | <?dbhtml list-presentation="table"?>
|
---|
[e6f1fd6] | 198 |
|
---|
[97063a43] | 199 | <varlistentry id="formail">
|
---|
| 200 | <term><command>formail</command></term>
|
---|
| 201 | <listitem>
|
---|
[7c56ece] | 202 | <para>
|
---|
[4c24eb0a] | 203 | is a filter that can be used to format mail into mailbox format
|
---|
[7c56ece] | 204 | </para>
|
---|
[97063a43] | 205 | <indexterm zone="procmail formail">
|
---|
| 206 | <primary sortas="b-formail">formail</primary>
|
---|
| 207 | </indexterm>
|
---|
| 208 | </listitem>
|
---|
| 209 | </varlistentry>
|
---|
[e6f1fd6] | 210 |
|
---|
[97063a43] | 211 | <varlistentry id="lockfile">
|
---|
| 212 | <term><command>lockfile</command></term>
|
---|
| 213 | <listitem>
|
---|
[7c56ece] | 214 | <para>
|
---|
| 215 | is a utility that can lock a file for single use interactively or
|
---|
[4c24eb0a] | 216 | in a script
|
---|
[7c56ece] | 217 | </para>
|
---|
[97063a43] | 218 | <indexterm zone="procmail lockfile">
|
---|
| 219 | <primary sortas="b-lockfile">lockfile</primary>
|
---|
| 220 | </indexterm>
|
---|
| 221 | </listitem>
|
---|
| 222 | </varlistentry>
|
---|
[e6f1fd6] | 223 |
|
---|
[97063a43] | 224 | <varlistentry id="mailstat">
|
---|
| 225 | <term><command>mailstat</command></term>
|
---|
| 226 | <listitem>
|
---|
[7c56ece] | 227 | <para>
|
---|
| 228 | prints a summary report of mail that has been filtered by
|
---|
| 229 | <command>procmail</command> since the last time
|
---|
[4c24eb0a] | 230 | <command>mailstat</command> was ran
|
---|
[7c56ece] | 231 | </para>
|
---|
[97063a43] | 232 | <indexterm zone="procmail mailstat">
|
---|
| 233 | <primary sortas="b-mailstat">mailstat</primary>
|
---|
| 234 | </indexterm>
|
---|
| 235 | </listitem>
|
---|
| 236 | </varlistentry>
|
---|
[e6f1fd6] | 237 |
|
---|
[97063a43] | 238 | <varlistentry id="procmail-prog">
|
---|
| 239 | <term><command>procmail</command></term>
|
---|
| 240 | <listitem>
|
---|
[7c56ece] | 241 | <para>
|
---|
| 242 | is an autonomous mail processor. It performs all the functions
|
---|
[4c24eb0a] | 243 | of an MDA (Mail Delivery Agent)
|
---|
[7c56ece] | 244 | </para>
|
---|
[97063a43] | 245 | <indexterm zone="procmail procmail-prog">
|
---|
| 246 | <primary sortas="b-procmail">procmail</primary>
|
---|
| 247 | </indexterm>
|
---|
| 248 | </listitem>
|
---|
| 249 | </varlistentry>
|
---|
| 250 | </variablelist>
|
---|
[e6f1fd6] | 251 |
|
---|
[97063a43] | 252 | </sect2>
|
---|
[e6f1fd6] | 253 |
|
---|
[f45b1953] | 254 | </sect1>
|
---|