source: server/mail/qmail/qmail-config.xml@ 4958384

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

edited >> to one > or &gt;&gt;

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

  • Property mode set to 100644
File size: 3.1 KB
Line 
1<sect2>
2<title>Configuring <application>qmail</application></title>
3
4<sect3><title>Config files</title>
5<para><filename>/etc/inetd.conf</filename> and boot scripts</para>
6</sect3>
7
8<sect3><title>Configuration Information</title>
9
10<para>If <command>inetd</command> is used, the following command will add the qmaild
11entry to <filename>/etc/inetd.conf</filename>: </para>
12
13<para><screen><userinput>echo "smtp stream tcp nowait qmaild /var/qmail/bin/tcp-env \
14tcp-env /var/qmail/bin/qmail-smtpd" &gt;&gt; /etc/inetd.conf</userinput></screen></para>
15
16<para>If <command>xinetd</command> is used, the following command will add the qmaild
17entry to <filename>/etc/xinetd.conf</filename>: </para>
18
19<screen><userinput><command>cat &gt;&gt; /etc/xinetd.conf &lt;&lt; "EOF"</command>
20service smtp
21{
22 disable = no
23 identifier = smtp-local
24 socket_type = stream
25 protocol = tcp
26 wait = no
27 user = qmaild
28 server = /var/qmail/bin/tcp-env
29 server_args = /var/qmail/bin/qmail-smtpd
30 env = RELAYCLIENT=
31 only_from = 127.0.0.1
32 log_on_failture += USERID
33}
34<command>EOF</command></userinput></screen>
35
36<para>To automate the running of <application>qmail</application>, use following command to
37create the init.d script:</para>
38
39<screen><userinput><command>cat &gt; /etc/rc.d/init.d/qmail &lt;&lt; "EOF"</command>
40#!/bin/sh
41# Begin $rc_base/init.d/qmail
42
43# Based on sysklogd script from LFS-3.1 and earlier.
44# Rewritten by Gerard Beekmans - gerard@linuxfromscratch.org
45
46source /etc/sysconfig/rc
47source $rc_functions
48
49case "$1" in
50
51 start)
52 echo "Starting Qmail..."
53 /var/qmail/rc &amp;
54 ;;
55
56 stop)
57 echo "Stopping Qmail..."
58 killall qmail-send
59 ;;
60
61 restart)
62 $0 stop
63 sleep 1
64 $0 start
65 ;;
66
67 *)
68 echo "Usage: $0 {start|stop|restart}"
69 exit 1
70 ;;
71esac
72
73# End $rc_base/init.d/qmail
74<command>EOF
75chmod 755 /etc/rc.d/init.d/qmail</command></userinput></screen>
76
77<para>Create the symbolic links to this file in the relevant
78<filename>rc.d</filename> directory with the following commands:</para>
79
80<screen><userinput><command>cd /etc/rc.d/init.d &amp;&amp;
81ln -sf ../init.d/qmail ../rc0.d/K25qmail &amp;&amp;
82ln -sf ../init.d/qmail ../rc1.d/K25qmail &amp;&amp;
83ln -sf ../init.d/qmail ../rc2.d/K25qmail &amp;&amp;
84ln -sf ../init.d/qmail ../rc3.d/S35qmail &amp;&amp;
85ln -sf ../init.d/qmail ../rc4.d/S35qmail &amp;&amp;
86ln -sf ../init.d/qmail ../rc5.d/S35qmail &amp;&amp;
87ln -sf ../init.d/qmail ../rc6.d/K25qmail</command></userinput></screen>
88
89</sect3>
90
91<sect3><title>Configuring mailers to work with qmail</title>
92<para>Configuration information for some commonly used MUAs can be
93found in the <filename>/var/qmail/doc/INSTALL.mbox</filename>
94file. Most MUAs can be configured to use qmail Mailbox format buy
95putting the following in <filename>~/.profile</filename>:</para>
96<para><screen><userinput>MAIL=$HOME/Mailbox; export MAIL
97</userinput></screen></para></sect3>
98
99</sect2>
Note: See TracBrowser for help on using the repository browser.