source: server/mail/postfix/postfix-config.xml@ 23d784b

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 v5_1 xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since 23d784b was 1c4fc519, checked in by Larry Lawrence <larry@…>, 20 years ago

update to postfix-2.1.0

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

  • Property mode set to 100644
File size: 2.1 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; /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<para>The <filename>/etc/aliases</filename> file that was just created,
23the <filename>main.cf</filename> and the <filename>master.cf</filename>
24must be personalized for your system. The <filename>aliases</filename> file
25needs your non-root login identity so mail addressed to root can be forwarded
26to you at the user level. The <filename>main.cf</filename> file needs your
27fully qualified hostname. All of these edits can be done with sed commands
28entered into the console with appropriate substitutions of your non-root
29login name for <replaceable>[user]</replaceable> and your fully qualified
30hostname for <replaceable>[localhost.localdomain]</replaceable>. You will
31find the <filename>main.cf</filename> file
32is self documenting, so load it into your editor to make the changes you need
33for your situation.</para>
34
35<screen><userinput><command>cp /etc/aliases /etc/aliases.bak &amp;&amp;
36cp /etc/postfix/main.cf /etc/postfix/main.cf.bak &amp;&amp;
37sed "s/LOGIN/<replaceable>[user]</replaceable>/" /etc/aliases.bak > /etc/aliases &amp;&amp;
38sed "s/#myhostname = host.domain.tld/myhostname = \
39 <replaceable>[localhost.localdomain]</replaceable>/" \
40 /etc/postfix/main.cf.bak > /etc/postfix/main.cf &amp;&amp;
41/usr/bin/newaliases &amp;&amp;
42/usr/sbin/postfix start</command></userinput></screen></sect3>
43
44<sect3><title>Postfix init.d script</title>
45
46<para>To automate the running of Postfix at startup, install <filename>/etc/rc.d/init.d/postfix</filename>
47init script included in the <xref linkend="intro-important-bootscripts"/> package.</para>
48
49<screen><userinput><command>make install-postfix</command></userinput></screen>
50
51</sect3>
52
53</sect2>
Note: See TracBrowser for help on using the repository browser.