Changeset a11e412 for server/mail/postfix/postfix-config.xml
- Timestamp:
- 05/01/2003 11:38:41 PM (21 years ago)
- Branches:
- 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_0, v5_0-pre1, v5_1, v5_1-pre1, xry111/intltool, xry111/llvm18, xry111/soup3, xry111/test-20220226, xry111/xf86-video-removal
- Children:
- 176b211
- Parents:
- d3e69e6
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
server/mail/postfix/postfix-config.xml
rd3e69e6 ra11e412 1 1 <sect2> 2 <title>Configuring postfix</title>2 <title>Configuring <application>postfix</application></title> 3 3 4 4 <sect3><title>Config files</title> … … 10 10 <sect3><title>Configuration Information</title> 11 11 12 < para><screen><userinput>cat > /etc/aliases << "EOF"</userinput>12 <screen><userinput><command>cat > /etc/aliases << "EOF"</command> 13 13 # Begin /etc/aliases 14 14 … … 18 18 root: LOGIN 19 19 # End /etc/aliases 20 < userinput>EOF</userinput></screen></para>20 <command>EOF</command></userinput></screen> 21 21 22 22 <para>The <filename>/etc/aliases</filename> file that was just created, 23 23 the <filename>main.cf</filename> and the <filename>master.cf</filename> 24 must be personalized for your system. The <filename>aliases</filename> file needs your 25 non-root login identity so mail addressed to root can be forwarded to 26 you at the user level. The <filename>main.cf</filename> file needs your fully qualified 27 hostname. All of these edits can be done 28 with sed commands entered into the console with appropriate substitutions of 29 your non-root login name for [user] and your fully qualified hostname for 30 [localhost.localdomain]. You will find the <filename>main.cf</filename> file is self documenting, so load it into your editor to make the changes you need for your situation.</para> 24 must be personalized for your system. The <filename>aliases</filename> file 25 needs your non-root login identity so mail addressed to root can be forwarded 26 to you at the user level. The <filename>main.cf</filename> file needs your 27 fully qualified hostname. All of these edits can be done with sed commands 28 entered into the console with appropriate substitutions of your non-root 29 login name for <replaceable>[user]</replaceable> and your fully qualified 30 hostname for <replaceable>[localhost.localdomain]</replaceable>. You will 31 find the <filename>main.cf</filename> file 32 is self documenting, so load it into your editor to make the changes you need 33 for your situation.</para> 31 34 32 < para><screen><userinput>cp /etc/aliases /etc/aliases.bak35 <screen><userinput><command>cp /etc/aliases /etc/aliases.bak 33 36 cp /etc/postfix/main.cf /etc/postfix/main.cf.bak 34 37 cp /etc/postfix/master.cf /etc/postfix/master.cf.bak 35 sed "s/LOGIN/ [user]/" /etc/aliases.bak > /etc/aliases38 sed "s/LOGIN/<replaceable>[user]</replaceable>/" /etc/aliases.bak > /etc/aliases 36 39 sed "s/#myhostname = host.domain.tld/myhostname = \ 37 [localhost.localdomain]/" \40 <replaceable>[localhost.localdomain]</replaceable>/" \ 38 41 /etc/postfix/main.cf.bak > /etc/postfix/main.cf 39 42 /usr/bin/newaliases 40 /usr/sbin/postfix start</ userinput></screen></para></sect3>43 /usr/sbin/postfix start</command></userinput></screen></sect3> 41 44 42 45 <sect3><title>postfix init.d script</title> … … 44 47 <para>To automate the running of postfix, use following command to create the init.d script:</para> 45 48 46 < para><screen><userinput>cat > /etc/rc.d/init.d/postfix << "EOF"</userinput>49 <screen><userinput><command>cat > /etc/rc.d/init.d/postfix << "EOF"</command> 47 50 #!/bin/sh 48 51 # Begin $rc_base/init.d/postfix … … 84 87 85 88 # End $rc_base/init.d/postfix 86 < userinput>EOF87 chmod 755 /etc/rc.d/init.d/postfix</ userinput></screen></para>89 <command>EOF 90 chmod 755 /etc/rc.d/init.d/postfix</command></userinput></screen> 88 91 89 92 <para>Create the symbolic links to this file in the relevant 90 93 <filename>rc.d</filename> directory with the following commands: 91 94 92 <screen><userinput> cd /etc/rc.d/init.d &&95 <screen><userinput><command>cd /etc/rc.d/init.d && 93 96 ln -sf ../init.d/postfix ../rc0.d/K25postfix && 94 97 ln -sf ../init.d/postfix ../rc1.d/K25postfix && … … 97 100 ln -sf ../init.d/postfix ../rc4.d/S35postfix && 98 101 ln -sf ../init.d/postfix ../rc5.d/S35postfix && 99 ln -sf ../init.d/postfix ../rc6.d/K25postfix</ userinput></screen></para>102 ln -sf ../init.d/postfix ../rc6.d/K25postfix</command></userinput></screen></para> 100 103 </sect3> 101 104
Note:
See TracChangeset
for help on using the changeset viewer.