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