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