source: server/mail/postfix/postfix-config.xml@ 65df9fca

10.0 10.1 11.0 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 ken/refactor-virt krejzi/svn lazarus nosym perl-modules qt5new systemd-11177 systemd-13485 trunk v5_1 xry111/git-date xry111/git-date-for-trunk xry111/git-date-test
Last change on this file since 65df9fca was 65df9fca, checked in by Larry Lawrence <larry@…>, 17 years ago

grammar corrections

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

  • Property mode set to 100644
File size: 2.4 KB
Line 
1<sect2>
2<title>Configuring <application>Postfix</application></title>
3
4<sect3><title>Config files</title>
5<para><filename>/etc/aliases</filename>,
6<filename>/etc/postfix/main.cf</filename> and
7<filename>/etc/postfix/master.cf</filename></para>
8</sect3>
9
10<sect3><title>Configuration Information</title>
11
12<screen><userinput><command>cat &gt;&gt; /etc/aliases &lt;&lt; "EOF"</command>
13# Begin /etc/aliases
14
15MAILER-DAEMON: postmaster
16postmaster: root
17
18root: LOGIN
19# End /etc/aliases
20<command>EOF</command></userinput></screen>
21
22<note><para>To protect an existing <filename>/etc/aliases</filename>
23file, we will append these aliases to it if it exists. This file
24should be checked and duplicate aliases removed, if
25present.</para></note>
26
27<para>The <filename>/etc/aliases</filename> file that was just created
28or appended, the <filename>main.cf</filename> and the
29<filename>master.cf</filename>
30must be personalized for your system. The <filename>aliases</filename> file
31needs your non-root login identity so mail addressed to root can be forwarded
32to you at the user level. The <filename>main.cf</filename> file needs your
33fully qualified hostname. All of these edits can be done with sed commands
34entered into the console with appropriate substitutions of your non-root
35login name for <replaceable>[user]</replaceable> and your fully qualified
36hostname for <replaceable>[localhost.localdomain]</replaceable>. You will
37find the <filename>main.cf</filename> file
38is self documenting, so load it into your editor to make the changes you need
39for your situation.</para>
40
41<screen><userinput><command>cp /etc/aliases /etc/aliases.bak &amp;&amp;
42cp /etc/postfix/main.cf /etc/postfix/main.cf.bak &amp;&amp;
43sed "s/LOGIN/<replaceable>[user]</replaceable>/" /etc/aliases.bak > /etc/aliases &amp;&amp;
44sed "s/#myhostname = host.domain.tld/myhostname = \
45 <replaceable>[localhost.localdomain]</replaceable>/" \
46 /etc/postfix/main.cf.bak > /etc/postfix/main.cf &amp;&amp;
47/usr/bin/newaliases &amp;&amp;
48/usr/sbin/postfix start</command></userinput></screen></sect3>
49
50<sect3><title>Postfix init.d script</title>
51
52<para>To automate the running of Postfix at startup, install the <filename>/etc/rc.d/init.d/postfix</filename>
53init script included in the <xref linkend="intro-important-bootscripts"/> package.</para>
54
55<screen><userinput><command>make install-postfix</command></userinput></screen>
56
57</sect3>
58
59</sect2>
Note: See TracBrowser for help on using the repository browser.