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