1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
|
---|
3 | "http://www.oasis-open.org/docbook/xml/4.4/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-ftp "ftp://ftp.procmail.net/pub/procmail/procmail-&procmail-version;.tar.gz">
|
---|
9 | <!ENTITY procmail-md5sum "1678ea99b973eb77eda4ecf6acae53f1">
|
---|
10 | <!ENTITY procmail-size "226 KB">
|
---|
11 | <!ENTITY procmail-buildsize "1.7 MB">
|
---|
12 | <!ENTITY procmail-time "0.08 SBU">
|
---|
13 | ]>
|
---|
14 |
|
---|
15 | <sect1 id="procmail" xreflabel="Procmail-&procmail-version;">
|
---|
16 | <sect1info>
|
---|
17 | <othername>$LastChangedBy$</othername>
|
---|
18 | <date>$Date$</date>
|
---|
19 | </sect1info>
|
---|
20 | <?dbhtml filename="procmail.html"?>
|
---|
21 | <title>Procmail-&procmail-version;</title>
|
---|
22 | <indexterm zone="procmail">
|
---|
23 | <primary sortas="a-Procmail">Procmail</primary></indexterm>
|
---|
24 |
|
---|
25 | <sect2>
|
---|
26 | <title>Introduction to <application>Procmail</application></title>
|
---|
27 |
|
---|
28 | <para>The <application>Procmail</application> package contains an autonomous
|
---|
29 | mail processor. This is useful for filtering and sorting incoming mail.</para>
|
---|
30 |
|
---|
31 | <sect3><title>Package information</title>
|
---|
32 | <itemizedlist spacing='compact'>
|
---|
33 | <listitem><para>Download (HTTP): <ulink
|
---|
34 | url="&procmail-download-http;"/></para></listitem>
|
---|
35 | <listitem><para>Download (FTP): <ulink
|
---|
36 | url="&procmail-download-ftp;"/></para></listitem>
|
---|
37 | <listitem><para>Download MD5 sum: &procmail-md5sum;</para></listitem>
|
---|
38 | <listitem><para>Download size: &procmail-size;</para></listitem>
|
---|
39 | <listitem><para>Estimated disk space required:
|
---|
40 | &procmail-buildsize;</para></listitem>
|
---|
41 | <listitem><para>Estimated build time:
|
---|
42 | &procmail-time;</para></listitem></itemizedlist>
|
---|
43 | </sect3>
|
---|
44 |
|
---|
45 | </sect2>
|
---|
46 |
|
---|
47 | <sect2>
|
---|
48 | <title>Installation of <application>Procmail</application></title>
|
---|
49 |
|
---|
50 | <para>Install <application>Procmail</application> by running the following
|
---|
51 | commands as the root user:</para>
|
---|
52 |
|
---|
53 | <screen><userinput role='root'><command>make LOCKINGTEST=/tmp install &&
|
---|
54 | make install-suid</command></userinput></screen>
|
---|
55 |
|
---|
56 | </sect2>
|
---|
57 |
|
---|
58 | <sect2>
|
---|
59 | <title>Command explanations</title>
|
---|
60 |
|
---|
61 | <para><command>make LOCKINGTEST=/tmp install</command>: This prevents
|
---|
62 | <command>make</command> from asking you where to test file-locking
|
---|
63 | patterns.</para>
|
---|
64 |
|
---|
65 | <para><command>make install-suid</command>: Modifies permissions of
|
---|
66 | the installed files.</para>
|
---|
67 | </sect2>
|
---|
68 |
|
---|
69 | <sect2>
|
---|
70 | <title>Configuring <application>Procmail</application></title>
|
---|
71 |
|
---|
72 | <sect3 id="procmail-config"><title>Config files</title>
|
---|
73 | <para><filename>/etc/procmailrc</filename> and
|
---|
74 | <filename>~/.procmailrc</filename></para>
|
---|
75 | <indexterm zone="procmail procmail-config">
|
---|
76 | <primary sortas="e-AA.procmailrc">~/.procmailrc</primary></indexterm>
|
---|
77 | <indexterm zone="procmail procmail-config">
|
---|
78 | <primary sortas="e-etc-procmailrc">/etc/procmailrc</primary></indexterm>
|
---|
79 | </sect3>
|
---|
80 |
|
---|
81 | <sect3><title>Configuration Information</title>
|
---|
82 |
|
---|
83 | <para>Recipes have to be written and placed in your
|
---|
84 | <filename>~/.procmailrc</filename> for execution. The procmailex man
|
---|
85 | page is the starting place to learn how to write recipes.</para>
|
---|
86 | </sect3>
|
---|
87 |
|
---|
88 | </sect2>
|
---|
89 |
|
---|
90 | <sect2>
|
---|
91 | <title>Contents</title>
|
---|
92 |
|
---|
93 | <segmentedlist>
|
---|
94 | <segtitle>Installed Programs</segtitle>
|
---|
95 | <segtitle>Installed Libraries</segtitle>
|
---|
96 | <segtitle>Installed Directories</segtitle>
|
---|
97 |
|
---|
98 | <seglistitem>
|
---|
99 | <seg>formail, lockfile, mailstat and procmail</seg>
|
---|
100 | <seg>None</seg>
|
---|
101 | <seg>None</seg>
|
---|
102 | </seglistitem>
|
---|
103 | </segmentedlist>
|
---|
104 |
|
---|
105 | <variablelist>
|
---|
106 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
107 | <?dbfo list-presentation="list"?>
|
---|
108 |
|
---|
109 | <varlistentry id="formail">
|
---|
110 | <term><command>formail</command></term>
|
---|
111 | <listitem><para>is a filter that can be used to format mail into mailbox
|
---|
112 | format.</para>
|
---|
113 | <indexterm zone="procmail formail">
|
---|
114 | <primary sortas="b-formail">formail</primary>
|
---|
115 | </indexterm></listitem>
|
---|
116 | </varlistentry>
|
---|
117 |
|
---|
118 | <varlistentry id="lockfile">
|
---|
119 | <term><command>lockfile</command></term>
|
---|
120 | <listitem><para>is a utility that can lock a file for single use interactively
|
---|
121 | or in a script.</para>
|
---|
122 | <indexterm zone="procmail lockfile">
|
---|
123 | <primary sortas="b-lockfile">lockfile</primary>
|
---|
124 | </indexterm></listitem>
|
---|
125 | </varlistentry>
|
---|
126 |
|
---|
127 | <varlistentry id="mailstat">
|
---|
128 | <term><command>mailstat</command></term>
|
---|
129 | <listitem><para>prints a summary report of mail that has been filtered by
|
---|
130 | <command>procmail</command> since the last time <command>mailstat</command>
|
---|
131 | was ran.</para>
|
---|
132 | <indexterm zone="procmail mailstat">
|
---|
133 | <primary sortas="b-mailstat">mailstat</primary>
|
---|
134 | </indexterm></listitem>
|
---|
135 | </varlistentry>
|
---|
136 |
|
---|
137 | <varlistentry id="procmail-prog">
|
---|
138 | <term><command>procmail</command></term>
|
---|
139 | <listitem><para>is an autonomous mail processor. It performs all the functions
|
---|
140 | of an <acronym>MDA</acronym> (Mail Delivery Agent).</para>
|
---|
141 | <indexterm zone="procmail procmail-prog">
|
---|
142 | <primary sortas="b-procmail">procmail</primary>
|
---|
143 | </indexterm></listitem>
|
---|
144 | </varlistentry>
|
---|
145 | </variablelist>
|
---|
146 |
|
---|
147 | </sect2>
|
---|
148 |
|
---|
149 | </sect1>
|
---|
150 |
|
---|