The DigitalPimp
Ben Pfountz |
Note: this port is also heavily patched for ssl and authentication.
Install checkpassword: cd /usr/ports/security/checkpassword make install make clean chmod 4710 /usr/local/bin/checkpassword chgrp qmail /usr/local/bin/checkpassword
Install port at the same time as disabling sendmail: cd /usr/ports/mail/qmail make cd work/qmail* patch < /usr/home/bpfountz/projects/digitalpimp/patches/qmail_auth_ssl/*.patch.txt make cd /usr/ports/mail/qmail make enable-qmail make clean
Add manuals to manpath: add to /etc/manpath.config:
To create a maildir: /var/qmail/bin/maildirmake /usr/home/[user]/Maildir
To enable startup with inetd:
Note: digitalpimp.princenet is my local hostname, use your own. Note: qmail_auth_check is just a script I wrote to limit users who can relay mail, you can instead use /usr/bin/true
To enable relaying from the LAN: add the following line to /etc/hosts.allow
Setup aliases for root, postmaster, mailer-daemon, etc: create .qmail-[alias] in /var/qmail/alias containing '&[username]'
Configure startup script: cp /var/qmail/boot/home /var/qmail/rc (or restore from backup cd) ln -s /var/qmail/rc /usr/local/etc/rc.d/qmail.sh
Control files: if you have control files on a backup cd, just restore them, otherwise:
if the installer doesn't create the correct control files, you can try this: /var/qmail/configure/qmail-config digitalpimp.princenet
Generate the ssl certificate: It is easiest to use the certificate generating script that comes with imapd-ssl: cd /usr/lib/courier-imap/share ./mkimapdcert cp imapd.pem /var/qmail/control/servercert.pem cd /var/qmail/control/ chown qmaild:qmail servercert.pem chmod 600 servercert.pem |
|