source: server/mail/postfix.xml@ 5cd0959d

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 6.0 6.1 6.2 6.2.0 6.2.0-rc1 6.2.0-rc2 6.3 6.3-rc1 6.3-rc2 6.3-rc3 7.10 7.4 7.5 7.6 7.6-blfs 7.6-systemd 7.7 7.8 7.9 8.0 8.1 8.2 8.3 8.4 9.0 9.1 basic bdubbs/svn elogind gnome kde5-13430 kde5-14269 kde5-14686 kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts krejzi/svn lazarus lxqt nosym perl-modules plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition systemd-11177 systemd-13485 trunk upgradedb xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since 5cd0959d was 5cd0959d, checked in by Archaic <archaic@…>, 20 years ago

Resetting keywords

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@2592 af4574ff-66df-0310-9fd7-8a98e5e911e0

  • Property mode set to 100644
File size: 10.0 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
3 "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd" [
4 <!ENTITY % general-entities SYSTEM "../../general.ent">
5 %general-entities;
6
7<!ENTITY postfix-download-http "http://www.mirrorspace.org/postfix/official/postfix-&postfix-version;.tar.gz">
8<!ENTITY postfix-download-ftp "ftp://ftp.porcupine.org/mirrors/postfix-release/official/postfix-&postfix-version;.tar.gz">
9<!ENTITY postfix-size "1.9 MB">
10<!ENTITY postfix-buildsize "81 MB">
11<!ENTITY postfix-time "0.29 SBU">
12
13]>
14
15<sect1 id="postfix" xreflabel="Postfix-&postfix-version;">
16<sect1info>
17<othername>$LastChangedBy$</othername>
18<date>$Date$</date>
19</sect1info>
20<?dbhtml filename="postfix.html"?>
21<title>Postfix-&postfix-version;</title>
22
23<sect2>
24<title>Introduction to Postfix</title>
25
26<para>The <application>Postfix</application> package contains a Mail
27Transport Agent (<acronym>MTA</acronym>). This is useful for sending email
28to other users of your host machine. It can also be configured to be a
29central mail server for your domain, a mail relay agent or simply a mail
30delivery agent to your local Internet Service Provider
31(<acronym>ISP</acronym>).</para>
32
33<sect3><title>Package information</title>
34<itemizedlist spacing='compact'>
35<listitem><para>Download (HTTP): <ulink
36url="&postfix-download-http;"/></para></listitem>
37<listitem><para>Download (FTP): <ulink
38url="&postfix-download-ftp;"/></para></listitem>
39<listitem><para>Download size: &postfix-size;</para></listitem>
40<listitem><para>Estimated Disk space required:
41&postfix-buildsize;</para></listitem>
42<listitem><para>Estimated build time:
43&postfix-time;</para></listitem></itemizedlist>
44</sect3>
45
46<sect3><title><application>Postfix</application> dependencies</title>
47<sect4><title>Required</title>
48<para><xref linkend="db"/></para></sect4>
49<sect4><title>Optional</title>
50<para><xref linkend="pcre"/>, <xref linkend="cyrus-sasl"/> and <xref linkend="mysql"/></para></sect4>
51</sect3>
52
53</sect2>
54
55<sect2>
56<title>Installation of <application>Postfix</application></title>
57
58<para>Before you compile the program, you need to create users and groups that
59will be expected to be in place when the install script executes. Add the
60users and groups with the following commands:</para>
61
62<screen><userinput><command>groupadd postfix &amp;&amp;
63groupadd postdrop &amp;&amp;
64groupadd -g 65534 nogroup &amp;&amp;
65useradd -c postfix -d /dev/null -g postfix -s /bin/false postfix &amp;&amp;
66useradd -c nobody -d /home -g nogroup -s /bin/bash -u 65534 nobody &amp;&amp;
67chown postfix:postfix /var/mail</command></userinput></screen>
68
69<para>Install <application>postfix</application> by running the following commands:</para>
70
71<screen><userinput><command>make &amp;&amp;
72sh postfix-install daemon_directory=/usr/sbin \
73 manpage_directory=/usr/share/man \
74 sample_directory=/usr/share/doc/postfix \
75 -non-interactive</command></userinput></screen>
76
77<para>The final installation step is to install the program's documentation with
78the following commands:</para>
79
80<screen><userinput><command>install -d /usr/share/doc/postfix &amp;&amp;
81cp -rf html/* /usr/share/doc/postfix</command></userinput></screen>
82
83</sect2>
84
85<sect2>
86<title>Command explanations</title>
87
88<para><command>sh postfix-install ... -non-interactive</command> : This keeps
89the install script from asking any questions, thereby accepting default
90destination directories in all but the three cases explicitly mention.</para>
91
92<para><command>make CCARGS="$CCARGS -DHAS_MYSQL
93-I/usr/include/mysql" \</command></para>
94<para><command>AUXLIBS="$AUXLIBS -L/usr/lib/mysql -lmysqlclient -lz
95-l"</command> : This will allow you to build postfix with MySQL
96support.</para>
97
98</sect2>
99
100<sect2>
101<title>Configuring <application>Postfix</application></title>
102
103<sect3><title>Config files</title>
104<para><filename>/etc/aliases</filename>,
105<filename>/etc/postfix/main.cf</filename> and
106<filename>/etc/postfix/master.cf</filename></para>
107</sect3>
108
109<sect3><title>Configuration Information</title>
110
111<screen><userinput><command>cat &gt;&gt; /etc/aliases &lt;&lt; "EOF"</command>
112# Begin /etc/aliases
113
114MAILER-DAEMON: postmaster
115postmaster: root
116
117root: LOGIN
118# End /etc/aliases
119<command>EOF</command></userinput></screen>
120
121<note><para>To protect an existing <filename>/etc/aliases</filename> file, the
122above command appends these aliases to it if it exists. This file should be
123checked and duplicate aliases removed, if present.</para></note>
124
125<para>The <filename>/etc/aliases</filename> file that was just created or
126appended, the <filename>main.cf</filename> and the
127<filename>master.cf</filename> must be personalized for your system. The
128<filename>aliases</filename> file needs your non-root login identity so mail
129addressed to root can be forwarded to you at the user level. The
130<filename>main.cf</filename> file needs your fully qualified hostname. All of
131these edits can be done with sed commands entered into the console with
132appropriate substitutions of your non-root login name for
133<replaceable>[user]</replaceable> and your fully qualified hostname for
134<replaceable>[localhost.localdomain]</replaceable>. You will find the
135<filename>main.cf</filename> file is self documenting, so load it into your
136editor to make the changes you need for your situation.</para>
137
138<screen><userinput><command>sed -i "s/LOGIN/<replaceable>[user]</replaceable>/" /etc/aliases &amp;&amp;
139sed -i "s/#myhostname = host.domain.tld/myhostname = \
140 <replaceable>[localhost.localdomain]</replaceable>/" /etc/postfix/main.cf &amp;&amp;
141/usr/bin/newaliases &amp;&amp;
142/usr/sbin/postfix start</command></userinput></screen></sect3>
143
144<sect3><title>Postfix init.d script</title>
145
146<para>To automate the running of Postfix at startup, install the <filename>/etc/rc.d/init.d/postfix</filename>
147init script included in the <xref linkend="intro-important-bootscripts"/> package.</para>
148
149<screen><userinput><command>make install-postfix</command></userinput></screen>
150
151</sect3>
152
153</sect2>
154
155<sect2>
156<title>Contents</title>
157
158<para>The <application>Postfix</application> package contains
159<command>bounce</command>, <command>cleanup</command>,
160<command>error</command>, <command>flush</command>,
161<command>lmtp</command>, <command>local</command>,
162<command>mailq</command>, <command>master</command>,
163<command>newaliases</command>, <command>nqmgr</command>,
164<command>pickup</command>, <command>pipe</command>,
165<command>postalias</command>, <command>postcat</command>,
166<command>postconf</command>, <command>postdrop</command>,
167<command>postfix</command>, <command>postkick</command>,
168<command>postlock</command>, <command>postlog</command>,
169<command>postmap</command>, <command>postqueue</command>,
170<command>postsuper</command>, <command>qmgr</command>,
171<command>qmqpd</command>, <command>sendmail</command>,
172<command>showq</command>, <command>smtp</command>,
173<command>smtpd</command>, <command>spawn</command>,
174<command>trivial-rewrite</command>, and <command>virtual</command>.</para>
175
176</sect2>
177
178<sect2><title>Description</title>
179
180<sect3><title>postfix</title>
181<para><command>postfix</command> is the program that starts and stops the mail delivery system.</para></sect3>
182
183<sect3><title>master</title>
184<para><command>master</command> is the resident process that runs
185<filename>bounce</filename>, <filename>cleanup</filename>,
186<filename>error</filename>, <filename>flush</filename>,
187<filename>lmtp</filename>, <filename>local</filename>,
188<filename>nqmgr</filename>, <filename>pickup</filename>,
189<filename>pipe</filename>, <filename>qmgr</filename>,
190<filename>qmqpd</filename>, <filename>showq</filename>,
191<filename>smtp</filename>, <filename>smtpd</filename>,
192<filename>spawn</filename>, <filename>trivial-rewrite</filename> and
193<filename>virtual</filename> on demand. These programs are not designed to
194work as user commands.</para></sect3>
195
196<sect3><title>postqueue</title>
197<para><command>postqueue</command> implements the
198<application>Postfix</application> user interface for
199queue management. It implements all the operations that are traditionally
200available via the <command>sendmail</command> command.</para></sect3>
201
202<sect3><title>sendmail</title>
203<para><command>sendmail</command> implements the
204<application>Postfix</application> to
205<application>Sendmail</application> compatibility interface.
206<filename class="symlink">mailq</filename> and <filename
207class="symlink">newaliases</filename> are symlinks to
208<command>sendmail</command>.</para></sect3>
209
210<sect3><title>showq</title>
211<para><command>showq</command> will emulate the <filename
212class="symlink">mailq</filename> command when the
213<application>Postfix</application> mail system is
214not running.</para></sect3>
215
216<sect3><title>postsuper</title>
217<para><command>postsuper</command> does maintenance jobs on the
218<application>Postfix</application> queue.</para></sect3>
219
220<sect3><title>postalias</title>
221<para><command>postalias</command> creates, queries or updates
222<application>Postfix</application> alias
223databases.</para></sect3>
224
225<sect3><title>postcat</title>
226<para><command>postcat</command> prints the contents of a
227<application>Postfix</application> queue file in human-readable
228form.</para></sect3>
229
230<sect3><title>postconf</title>
231<para><command>postconf</command> prints or changes the value of configuration
232parameters.</para></sect3>
233
234<sect3><title>postdrop</title>
235<para><command>postdrop</command> creates a file in the maildrop directory and
236copies its standard input to the file.</para></sect3>
237
238<sect3><title>postkick</title>
239<para><command>postkick</command> makes the mail system private
240<acronym>IPC</acronym> accessible for use in shell
241scripts.</para></sect3>
242
243<sect3><title>postlock</title>
244<para><command>postlock</command> locks a file for exclusive access and
245executes a command on that file.</para></sect3>
246
247<sect3><title>postlog</title>
248<para><command>postlog</command> implements a logging interface for use in
249shell scripts.</para></sect3>
250
251<sect3><title>postmap</title>
252<para><command>postmap</command> creates, queries or updates
253<application>Postfix</application> lookup tables.</para></sect3>
254
255</sect2>
256
257</sect1>
258
Note: See TracBrowser for help on using the repository browser.