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

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

Billy edits qmail and samba, Larry adds resource to cdrecord

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

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