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 -N -r1.5.2.9 -r1.5.2.10 --- openacs-4/packages/acs-core-docs/www/install-qmail.adp 27 Apr 2022 16:52:20 -0000 1.5.2.9 +++ openacs-4/packages/acs-core-docs/www/install-qmail.adp 13 Jul 2023 12:43:20 -0000 1.5.2.10 @@ -1,11 +1,12 @@ -{/doc/acs-core-docs {ACS Core Documentation}} {Install qmail (OPTIONAL)} +{/doc/acs-core-docs/ {ACS Core Documentation}} {Install qmail (OPTIONAL)} Install qmail (OPTIONAL)

@@ -14,12 +15,13 @@ want your OpenACS server to send and receive mail, and you don't want to use an alternate MTA.

  1. -Install qmail. QMail is available as -standard Debian/Ubuntu package, rpms for Fedora/Redhat/CenTOS are -available from QMail wiki +Install qmail. QMail is available +as standard Debian/Ubuntu package, rpms for Fedora/Redhat/CenTOS +are available from QMail wiki page

  2. -

    Replace sendmail with qmail's wrapper.

    [root qmail-1.03]# rm -f /usr/bin/sendmail /usr/sbin/sendmail
    +

    Replace sendmail with qmail's wrapper.

    +[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
    @@ -28,9 +30,10 @@
     files in /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
    +qmail correctly if you have correctly set a valid host name. 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
    +to configure qmail.

    +[root qmail-1.03]# ./config-fast yourserver.test
     
     Your fully qualified hostname is yourserver.test.
     Putting yourserver.test into control/me...
    @@ -46,7 +49,8 @@
     

    All incoming mail that isn't for a specific user is handled by the alias user. This includes all root mail. These commands prepare the alias user to -receive mail.

    [root qmail-1.03]# cd ~alias; touch .qmail-postmaster .qmail-mailer-daemon .qmail-root
    +receive mail.

    +[root qmail-1.03]# cd ~alias; touch .qmail-postmaster .qmail-mailer-daemon .qmail-root
     [root alias]# chmod 644 ~alias/.qmail*
     [root alias]# /var/qmail/bin/maildirmake ~alias/Maildir/
     [root alias]# chown -R alias.nofiles /var/qmail/alias/Maildir
    @@ -55,9 +59,10 @@
     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 +

    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
    +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]# 
    @@ -66,7 +71,8 @@
     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
    +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
    @@ -76,7 +82,8 @@
     control script, copy the supervise control files, and set
     permissions. The last line links the control directories to
     /service, which will cause supervise to detect them and execute the
    -run files, causing qmail to start.

    [root root]# mkdir -p /var/qmail/supervise/qmail-send/log
    +run files, causing qmail to start.

    +[root root]# mkdir -p /var/qmail/supervise/qmail-send/log
     [root root]# mkdir -p /var/qmail/supervise/qmail-smtpd/log
     [root root]# mkdir /var/log/qmail
     [root root]# chown qmaill /var/log/qmail
    @@ -112,14 +119,16 @@
     

    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. -In that case, start debugging by checking permissions.

    [root root]# qmailctl stat
    +In that case, start debugging by checking permissions.

    +[root root]# qmailctl stat
     /service/qmail-send: up (pid 32700) 430 seconds
     /service/qmail-send/log: up (pid 32701) 430 seconds
     /service/qmail-smtpd: up (pid 32704) 430 seconds
     /service/qmail-smtpd/log: up (pid 32705) 430 seconds
     messages in queue: 0
     messages in queue but not yet preprocessed: 0
    -[root root]#

    Further verify by sending and receiving email. Incoming mail for +[root root]# +

    Further verify by sending and receiving email. Incoming mail for root is stored in /var/qmail/alias/Maildir.