Index: openacs-4/packages/acs-core-docs/www/install-qmail.adp
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/acs-core-docs/www/install-qmail.adp,v
diff -u -r1.5 -r1.6
--- openacs-4/packages/acs-core-docs/www/install-qmail.adp 25 Apr 2018 08:38:27 -0000 1.5
+++ openacs-4/packages/acs-core-docs/www/install-qmail.adp 3 Sep 2024 15:37:32 -0000 1.6
@@ -1,7 +1,11 @@
-
-Install qmail. QMail is available as
+Install qmail. QMail is available as
standard Debian/Ubuntu package, rpms for Fedora/Redhat/CenTOS are
available from QMail wiki
page
Replace sendmail with qmail's wrapper. Replace sendmail with qmail's wrapper. Configure qmail - specifically, run the config script to set up
files in
[root qmail-1.03]#
rm -f /usr/bin/sendmail /usr/sbin/sendmail
+[root qmail-1.03]#
rm -f /usr/bin/sendmail /usr/sbin/sendmail
[root qmail-1.03]# ln -s /var/qmail/bin/sendmail /usr/sbin/sendmail
[root qmail-1.03]#
-rm -f /usr/bin/sendmail /usr/sbin/sendmail
-ln -s /var/qmail/bin/sendmail /usr/sbin/sendmail
+rm -f /usr/bin/sendmail /usr/sbin/sendmail
+ln -s /var/qmail/bin/sendmail /usr/sbin/sendmail
/var/qmail/control
specifying the computer's identity and which addresses it
should accept mail for. This command will automatically set up
-qmail correctly if you have correctly set a valid host nome. If
-not, you'll want to read /var/qmail/doc/INSTALL.ctl
to find out how
-to configure qmail.[root qmail-1.03]#
./config-fast
yourserver.test
+qmail correctly if you have correctly set a valid hostname. If not,
+you'll want to read /var/qmail/doc/INSTALL.ctl
to find out how
+to configure qmail.
[root qmail-1.03]#./config-fast yourserver.test
-Your fully qualified host name is yourserver.test. +Your fully qualified hostname is yourserver.test. Putting yourserver.test into control/me... Putting yourserver.test into control/defaultdomain... Putting yourserver.test into control/plusdomain... @@ -41,8 +45,8 @@ Now qmail will refuse to accept SMTP messages except to yourserver.test. Make sure to change rcpthosts if you add hosts to locals or virtualdomains! [root qmail-1.03]# -./config-fastyourserver.test
- +./config-fast yourserver.test +
All incoming mail that isn't for a specific user is handled
by the Configure qmail to use the Maildir delivery format (instead of
+chown -R alias.nofiles /var/qmail/alias/Maildiralias
user. This
includes all root mail. These commands prepare the alias user to
@@ -51,26 +55,26 @@
[root alias]# /var/qmail/bin/maildirmake ~alias/Maildir/
[root alias]# chown -R alias.nofiles /var/qmail/alias/Maildir
[root alias]#
-cd ~alias; touch .qmail-postmaster .qmail-mailer-daemon .qmail-root
+cd ~alias; touch .qmail-postmaster .qmail-mailer-daemon .qmail-root
chmod 644 ~alias/.qmail*
/var/qmail/bin/maildirmake ~alias/Maildir/
-chown -R alias.nofiles /var/qmail/alias/Maildir
-
Configure qmail to use the Maildir delivery format (instead of mbox), and install a version of the qmail startup script modified to use Maildir.
[root alias]#echo "./Maildir" > /var/qmail/bin/.qmail
[root alias]#cp /tmp/openacs-5.9.0/packages/acs-core-docs/www/files/qmail.rc.txt /var/qmail/rc
[root alias]#chmod 755 /var/qmail/rc
[root alias]# -echo "./Maildir" > /var/qmail/bin/.qmail +echo "./Maildir" > /var/qmail/bin/.qmail cp /tmp/openacs-5.9.0/packages/acs-core-docs/www/files/qmail.rc.txt /var/qmail/rc chmod 755 /var/qmail/rc - +
Set up the skeleton directory so that new users will be configured for qmail.
[root root]#/var/qmail/bin/maildirmake /etc/skel/Maildir
[root root]#echo "./Maildir/" > /etc/skel/.qmail
[root root]# -/var/qmail/bin/maildirmake /etc/skel/Maildir -echo "./Maildir/" > /etc/skel/.qmail +/var/qmail/bin/maildirmake /etc/skel/Maildir +echo "./Maildir/" > /etc/skel/.qmail
As recommended, we will run qmail with daemontools control
files. Create daemontools control directories, set up a daemontools
control script, copy the supervise control files, and set
@@ -92,7 +96,7 @@
[root root]# chmod 755 /var/qmail/supervise/qmail-smtpd/run
[root root]# chmod 755 /var/qmail/supervise/qmail-smtpd/log/run
[root root]# ln -s /var/qmail/supervise/qmail-send /var/qmail/supervise/qmail-smtpd /service
-[root root]# ln -s /var/qmail/supervise/qmail-send /var/qmail/supervise/qmail-smtpd /service
mkdir -p /var/qmail/supervise/qmail-send/log
+[root root]# ln -s /var/qmail/supervise/qmail-send /var/qmail/supervise/qmail-smtpd /service
mkdir -p /var/qmail/supervise/qmail-send/log
mkdir -p /var/qmail/supervise/qmail-smtpd/log
mkdir /var/log/qmail
chown qmaill /var/log/qmail
@@ -108,7 +112,7 @@
chmod 755 /var/qmail/supervise/qmail-smtpd/run
chmod 755 /var/qmail/supervise/qmail-smtpd/log/run
ln -s /var/qmail/supervise/qmail-send /var/qmail/supervise/qmail-smtpd /service
-
+
Wait ten seconds or so, and then verify that the four qmail processes are running. If uptimes don't rise above 1 second, this may indicate broken scripts that are continuously restarting.