Web Mail


Single IP

Project Links
resume
about me
about server
user land
webmail

Photo Albums
bpfountz
lpfountz
twice DIGITAL

Web Pages
bpfountz
lpfountz

Reviews
3054CB
Netgate Q&A
5354AP1 Aries2

You are visiting...
The DigitalPimp


created by:
 Ben Pfountz
Untitled Document
Setting Up qmail with auth and ssl

FreeBSD 4.6-RELEASE

The Digitalpimp Collection

Ben Pfountz

November 26, 2002

 

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:

OPTIONAL_MANPATH /var/qmail/man

 

 

To create a maildir:

/var/qmail/bin/maildirmake /usr/home/[user]/Maildir

 

 

To enable startup with inetd:

smtp stream tcp nowait/0/0 qmaild:qmail /var/qmail/bin/tcp-env tcp-env -R /var/qmail/bin/qmail-smtpd digitalpimp.princenet /usr/local/bin/checkpassword /usr/home/bpfountz/projects/digitalpimp/qmail_auth_check

 

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

tcp-env: 127.0.0.1 192.168.17. setenv RELAYCLIENT: 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

Install Notes
a7v bios
os notes
os install
kernel cfg
ports update
vinum
soft updates
quotas
public pmsns
firewall
named
ppp
dhcpd
samba
apache+modssl
mod_php5
proftpd
qmail
blackhole
courier-imap
shared-folders
sqwebmail
skeleton
dependencies
nut
automount
net-snmpd
mrtg
system update
system config
formt floppy
wireless IPsec
bdes cdrw's
MySQL
Cert Auth
CPES AD 1
CPES AD 2
CPES Grp Plcy
AD1 <-> AD2
AD Reference