Instructions for setting up DRAC under RH7.0 using sendmail + qmail-pop3d
NOTE: This page is outdated. Packages will be updated with more recent ones shortly (10/31/02)
REQUIRED PACKAGES
Standard RH7.0 distribution packages:
- xinetd (xinetd-2.1.8.9pre9-6.i386.rpm)
- db3-devel (db3-devel-3.1.14-6.i386.rpm)
- sendmail (sendmail-8.11.0-8.i386.rpm)
- portmap (portmap-4.0-29.i386.rpm)
Additional packages:
- drac (drac-1.11-1.i386.rpm)
- checkpassword w/drac (checkpassword-0.81-1.i386.rpm)
Optional packages:
- sendmail w/drac (sendmail-8.11.0-8.i386.rpm)
- qmail-pop3d w/log + status patch (qmail-1.03-1.i386.rpm)
- pine w/Maildir patch! (pine-4.30-2.i386.rpm)
PREPARATION & INSTALLATION
- Make sure you have all the prerequisite RH7 packages installed
(ie. 'rpm -q db3-devel', etc.) If any are missing, download and
install with 'rpm -Uvh {package_name}'.
- Download and install the additional packages above in the order
that they appear.
NOTE: This version of qmail will automatically install the necessary
xinetd startup file and restart the daemon. If xinetd is not already
running you will see "FAILED" on the shutdown part. This is fine.
GETTING SYSTEM READY & DRACD STARTUP
- Make sure that portmap is running ('/etc/rc.d/init.d/portmap status')
If portmap is not running, run '/etc/rc.d/init.d/portmap start'
- Test the daemon startup ('/etc/rc.d/init.d/dracd start')
Make sure that drac is running ('/etc/rc.d/init.d/dracd status')
- A new file should be created: /etc/mail/dracd.db
PREPARING SYSLOGD FOR POP3 LOGGING
- The vanilla checkpassword/qmail pop3 logging appears to be horribly
broken. If you are using the qmail binary package above, then make
the following changes to your /etc/syslog.conf file in order
to take advantage of the improved logging:
Modify: Add ',local0.none' as shown below:
# Log anything (except mail) of level info or higher.
# Don't log private authentication messages!
*.info;mail.none;authpriv.none,local0.none /var/log/messages
Modify: Add ',local0.none' as shown below:
# Everybody gets emergency messages, plus log them on another
# machine.
*.emerg,local0.none *
Add: Add the following lines at the end:
# POP3 Logging
local0.* /var/log/popper
NOTE: If you are already using local0 as a log facility on the machine
you are installing on, then you will have to grab the source RPM (also
in the redhat directory) and manually rebuild the qmail package.
- Restart your syslog daemon ('/etc/rc.d/init.d/syslogd restart')
PREPARING & TESTING THE POP3 SERVER
- Make sure TCP wrappers aren't blocking pop-3 (add a line
to /etc/hosts.allow: 'qmail-popup: ALL' if you get 'Connection closed
by foreign host.' when executing the next step below)
- Test pop-3 service and dracd updates by authing as a local user:
NOTE: You will type what appears in GREEN.
[root@spork qmail-1.03]# telnet localhost 110
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
+OK +OK <25620.976745105@localhost>
user foo
+OK
pass bar
+OK
quit
+OK
- 'ls -l /etc/mail/dracd.db' - time stamp should be same as current date
on machine ('date') now.
- Make sure that IP address that you checked from got into dracd.db:
[root@spork mail]# grep 127.0.0.1 dracd.db
Binary file dracd.db matches
SETTING UP SENDMAIL TO UTILIZE DRAC
- Please refer to the main page for this section.
TESTING SENDMAIL/POPPER WITH DRAC
- Ditto the above
NOTES
- The qmail RPM above ONLY contains the minimum files necessary for POP3
use. Since I only use the POP3 daemons (in order to use the Maildir
delivery format) I have not built the SMTP daemon. There is probably
better documentation for a full Qmail/DRAC setup on the DRAC home page.
- This version of qpop3d is patched to satisfy broken/non-RFC-compliant mail
readers whose status indicators do not work with the standard qmail. The
code for accomplishing this is in the patch included with the source RPM.
- See main page for complete set of notes
Colin Bloch [12/10/2000]