1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
---|
4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
5 | %general-entities;
|
---|
6 |
|
---|
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">
|
---|
9 | <!ENTITY procmail-download-ftp "ftp://ftp.ucsb.edu/pub/mirrors/procmail/procmail-&procmail-version;.tar.gz">
|
---|
10 | <!ENTITY procmail-md5sum "1678ea99b973eb77eda4ecf6acae53f1">
|
---|
11 | <!ENTITY procmail-size "226 KB">
|
---|
12 | <!ENTITY procmail-buildsize "1.7 MB">
|
---|
13 | <!ENTITY procmail-time "less than 0.1 SBU">
|
---|
14 | ]>
|
---|
15 |
|
---|
16 | <sect1 id="procmail" xreflabel="Procmail-&procmail-version;">
|
---|
17 | <?dbhtml filename="procmail.html"?>
|
---|
18 |
|
---|
19 | <sect1info>
|
---|
20 | <othername>$LastChangedBy$</othername>
|
---|
21 | <date>$Date$</date>
|
---|
22 | </sect1info>
|
---|
23 |
|
---|
24 | <title>Procmail-&procmail-version;</title>
|
---|
25 |
|
---|
26 | <indexterm zone="procmail">
|
---|
27 | <primary sortas="a-Procmail">Procmail</primary>
|
---|
28 | </indexterm>
|
---|
29 |
|
---|
30 | <sect2 role="package">
|
---|
31 | <title>Introduction to Procmail</title>
|
---|
32 |
|
---|
33 | <para>The <application>Procmail</application> package contains an autonomous
|
---|
34 | mail processor. This is useful for filtering and sorting incoming mail.</para>
|
---|
35 |
|
---|
36 | &lfs77_checked;
|
---|
37 |
|
---|
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>
|
---|
59 |
|
---|
60 | <para condition="html" role="usernotes">User Notes:
|
---|
61 | <ulink url="&blfs-wiki;/procmail"/></para>
|
---|
62 |
|
---|
63 | </sect2>
|
---|
64 |
|
---|
65 | <sect2 role="installation">
|
---|
66 | <title>Installation of Procmail</title>
|
---|
67 |
|
---|
68 | <para>This package does not come with a test suite.</para>
|
---|
69 |
|
---|
70 | <para>Install <application>Procmail</application> by running the following
|
---|
71 | commands as the <systemitem class="username">root</systemitem> user:</para>
|
---|
72 |
|
---|
73 | <screen role='root'><userinput>sed -i 's/getline/get_line/' src/*.[ch] &&
|
---|
74 | make LOCKINGTEST=/tmp MANDIR=/usr/share/man install &&
|
---|
75 | make install-suid</userinput></screen>
|
---|
76 |
|
---|
77 | </sect2>
|
---|
78 |
|
---|
79 | <sect2 role="commands">
|
---|
80 | <title>Command Explanations</title>
|
---|
81 |
|
---|
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 |
|
---|
86 | <para><command>make LOCKINGTEST=/tmp install</command>: This prevents
|
---|
87 | <command>make</command> from asking you where to test file-locking
|
---|
88 | patterns.</para>
|
---|
89 |
|
---|
90 | <para><command>make install-suid</command>: Modifies permissions of
|
---|
91 | the installed files.</para>
|
---|
92 |
|
---|
93 | </sect2>
|
---|
94 |
|
---|
95 | <sect2 role="configuration">
|
---|
96 | <title>Configuring Procmail</title>
|
---|
97 |
|
---|
98 | <sect3 id="procmail-config">
|
---|
99 | <title>Config Files</title>
|
---|
100 |
|
---|
101 | <para><filename>/etc/procmailrc</filename> and
|
---|
102 | <filename>~/.procmailrc</filename></para>
|
---|
103 |
|
---|
104 | <indexterm zone="procmail procmail-config">
|
---|
105 | <primary sortas="e-AA.procmailrc">~/.procmailrc</primary>
|
---|
106 | </indexterm>
|
---|
107 |
|
---|
108 | <indexterm zone="procmail procmail-config">
|
---|
109 | <primary sortas="e-etc-procmailrc">/etc/procmailrc</primary>
|
---|
110 | </indexterm>
|
---|
111 |
|
---|
112 | </sect3>
|
---|
113 |
|
---|
114 | <sect3>
|
---|
115 | <title>Configuration Information</title>
|
---|
116 |
|
---|
117 | <para>Recipes have to be written and placed in
|
---|
118 | <filename>~/.procmailrc</filename> for execution. The procmailex man
|
---|
119 | page is the starting place to learn how to write recipes.
|
---|
120 | For additional information, see also
|
---|
121 | <ulink url="http://pm-doc.sourceforge.net/"/>.
|
---|
122 | </para>
|
---|
123 |
|
---|
124 | </sect3>
|
---|
125 |
|
---|
126 | </sect2>
|
---|
127 |
|
---|
128 | <sect2 role="content">
|
---|
129 | <title>Contents</title>
|
---|
130 |
|
---|
131 | <segmentedlist>
|
---|
132 | <segtitle>Installed Programs</segtitle>
|
---|
133 | <segtitle>Installed Libraries</segtitle>
|
---|
134 | <segtitle>Installed Directories</segtitle>
|
---|
135 |
|
---|
136 | <seglistitem>
|
---|
137 | <seg>formail, lockfile, mailstat and procmail</seg>
|
---|
138 | <seg>None</seg>
|
---|
139 | <seg>None</seg>
|
---|
140 | </seglistitem>
|
---|
141 | </segmentedlist>
|
---|
142 |
|
---|
143 | <variablelist>
|
---|
144 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
145 | <?dbfo list-presentation="list"?>
|
---|
146 | <?dbhtml list-presentation="table"?>
|
---|
147 |
|
---|
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>
|
---|
157 |
|
---|
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>
|
---|
168 |
|
---|
169 | <varlistentry id="mailstat">
|
---|
170 | <term><command>mailstat</command></term>
|
---|
171 | <listitem>
|
---|
172 | <para>prints a summary report of mail that has been filtered by
|
---|
173 | <command>procmail</command> since the last time <command>mailstat</command>
|
---|
174 | was ran.</para>
|
---|
175 | <indexterm zone="procmail mailstat">
|
---|
176 | <primary sortas="b-mailstat">mailstat</primary>
|
---|
177 | </indexterm>
|
---|
178 | </listitem>
|
---|
179 | </varlistentry>
|
---|
180 |
|
---|
181 | <varlistentry id="procmail-prog">
|
---|
182 | <term><command>procmail</command></term>
|
---|
183 | <listitem>
|
---|
184 | <para>is an autonomous mail processor. It performs all the functions
|
---|
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>
|
---|
192 |
|
---|
193 | </sect2>
|
---|
194 |
|
---|
195 | </sect1>
|
---|
196 |
|
---|