source: server/mail/qmail/qmail-config.xml@ 8e6d39f1

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 8e6d39f1 was 8e6d39f1, checked in by Larry Lawrence <larry@…>, 21 years ago

fix daemontools patch, daemontools-man-config

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

  • Property mode set to 100644
File size: 3.0 KB
RevLine 
[5e54414]1<sect2>
2<title>Configuring qmail</title>
3
4<sect3><title>Config files</title>
[8b220c27]5<para><userinput>/etc/inetd.conf</userinput> and <userinput>boot scripts</userinput></para>
[5e54414]6</sect3>
7
8<sect3><title>Configuration Information</title>
9
[e61e34e]10<para>If inetd is used, the following command will add the qmaild
11entry to <filename>/etc/inetd.conf</filename>: </para>
12
[7319b78]13<para><screen><userinput>echo "smtp stream tcp nowait qmaild /var/qmail/bin/tcp-env \
14tcp-env /var/qmail/bin/qmail-smtpd" >> /etc/inetd.conf</userinput></screen></para>
[f7f0d44]15
[e61e34e]16<para>If xinetd is used, the following command will add the qmaild
17entry to <filename>/etc/xinetd.conf</filename>: </para>
18
[677a0f7]19<para><screen><userinput>cat &gt;&gt; /etc/xinetd.conf &lt;&lt; "EOF"</userinput>
[e61e34e]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}
[677a0f7]34<userinput>EOF</userinput></screen></para>
[e61e34e]35
[f7f0d44]36<para>To automate the running of qmail, use following command to
37create the init.d script:</para>
38
[677a0f7]39<para><screen><userinput>cat &gt; /etc/rc.d/init.d/qmail &lt;&lt; "EOF"</userinput>
[f7f0d44]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..."
[896104b1]53 /var/qmail/rc &amp;
[f7f0d44]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
[677a0f7]74<userinput>EOF
[f7f0d44]75chmod 755 /etc/rc.d/init.d/qmail</userinput></screen></para>
76
77<para>Create the symbolic links to this file in the relevant rc.d directory with the following commands:
78
79<screen><userinput>cd /etc/rc.d/init.d &amp;&amp;
80ln -sf ../init.d/qmail ../rc0.d/K25qmail &amp;&amp;
81ln -sf ../init.d/qmail ../rc1.d/K25qmail &amp;&amp;
82ln -sf ../init.d/qmail ../rc2.d/K25qmail &amp;&amp;
83ln -sf ../init.d/qmail ../rc3.d/S35qmail &amp;&amp;
84ln -sf ../init.d/qmail ../rc4.d/S35qmail &amp;&amp;
85ln -sf ../init.d/qmail ../rc5.d/S35qmail &amp;&amp;
86ln -sf ../init.d/qmail ../rc6.d/K25qmail</userinput></screen></para>
87
[5e54414]88</sect3>
89
90<sect3><title>Configuring mailers to work with qmail</title>
91<para>Configuration information for some commonly used MUAs can be
92found in the <filename>/var/qmail/doc/INSTALL.mbox</filename>
93file. Most MUAs can be configured to use qmail Mailbox format buy
[8e6d39f1]94putting the following in <filename>~/.profile</filename>:</para>
[8b220c27]95<para><screen><userinput>MAIL=$HOME/Mailbox; export MAIL
[5e54414]96</userinput></screen></para></sect3>
97
98</sect2>
Note: See TracBrowser for help on using the repository browser.