Here is the detailed installation instructions from my own installation on
FreeBSD!

Now for the people who has trouble, I will help as much as I can if there
are problems in these instructions.

I also think that this might be included in vpopmail distribution. I came
to 0.0.6 version of this document while fixing the mistakes in it though
:) I am almost certain that I eliminated all the mistakes I did.

Now my mail server has been working for 1 month with 8000 thousand users
and 600 domains. I know its not much but a good test platform. Nobody
complained about anything so far.

The document contains, installation of
vpopmail, qmailadmin, vqadmin, courier-imap, qmailmrtg, isoqlog,
smtp-auth-tls, blah blah :) 

Evren
Vpopmail+FreeBSD with SSL/MySQL - Installation Instructions

V0.0.1  -       Initial Version
V0.0.2  -       Changed Courier-IMAP startup to Daemontools
V0.0.3  -       Added missing parts about Courier-IMAP Daemontools
                integration
v0.0.4  -       Added more info about certificates...
v0.0.5  -       Changed patches required for SMTP-TLS-AUTH
                Previous patches caused SIGBUS errors.
v0.0.6  -       Changed vchkpw smtp-auth stuff to be more secure

------------------------------------------------------------------------------------

First of all, we will install apache13-modssl which is required for
use of utilities like Qmailadmin, Vqadmin and Sqwebmail.

#cd /usr/ports/www/apache13-modssl
#make install && clean

Add to newsyslog.conf that we can rotate the apache logs.

/etc/newsyslog.conf additions...
------------------------------------------------------------------------------------
#my additions
/var/log/httpd-access.log               640  1     500  *     Z  /var/run/httpd.pid 1
/var/log/httpd-error.log                640  1     500  *     Z  /var/run/httpd.pid 1
/var/log/ssl_engine_log                 640  1     500  *     Z  /var/run/httpd.pid 1
/var/log/ssl_request_log                640  1     500  *     Z  /var/run/httpd.pid 1

------------------------------------------------------------------------------------

Also make empty cgi-bin and data directories
#cd /usr/local/www
#rm cgi-bin
#mkdir cgi-bin
#rm data
#mkdir data

Next, we will install qmail, this is little bit tricky if you want
to authenticate some users (instead of apop etc.) before accepting smtp
deliveries and use ssl. We must patch qmail that it will authenticate users.
If you want to install a virus scanning program such as Amavis
then you should use WITH_QMAILQUEUE_PATCH=yes. 

#cd /usr/ports/mail/qmail
#make configure WITH_QMAILQUEUE_PATCH=yes

Then download the following patches

http://inoa.net/qmail/qmail-1.03-tls.patch
http://members.elysium.pl/brush/qmail-smtpd-auth/dist/qmail-smtpd-auth-0.31.tar.gz

into /usr/ports/mail/qmail-tls/work/qmail-1.03

#cd work/qmail-1.03/
#fetch http://inoa.net/qmail/qmail-1.03-tls.patch
#fetch 
http://members.elysium.pl/brush/qmail-smtpd-auth/dist/qmail-smtpd-auth-0.31.tar.gz
#tar zxvf qmail-smtpd-auth-0.31.tar.gz 
#mv qmail-smtpd-auth-0.31/* .

First apply the auth patch!!!

#patch < auth.patch 
#patch < qmail-1.03-tls.patch

The first part of starttls patch will fail but its ok.

#make clean
#cd ../..
#make install WITH_QMAILQUEUE_PATCH=yes && make clean

The mailer.conf should be changed so that the system programs will use qmail

#cp work/mailer.conf.sample /etc/mail/mailer.conf

Make a certificate:

#openssl req -new -x509 -nodes -days 3650 -out /var/qmail/control/servercert.pem 
-keyout /var/qmail/control/servercert.pem

then create /var/qmail/rc file (dont forget to chmod 755)

/var/qmail/rc text...
------------------------------------------------------------------------------------
#! /bin/sh

#PATH=/var/qmail/bin:/usr/local/bin:/usr/bin:/bin
#export PATH

case "$1" in
    start)
        echo -n "Starting qmail: svscan"
        cd /var/qmail/supervise
        env - PATH="/var/qmail/bin:/usr/local/bin:/usr/bin:/bin" svscan &
        echo $! > /var/run/svscan.pid
        echo "."
    ;;
    stop)
        echo -n "Stopping qmail: svscan"
        kill `cat /var/run/svscan.pid`
        echo -n " qmail"
        svc -dx /var/qmail/supervise/*
        killall qmail-send
        echo -n " logging"
        svc -dx /var/qmail/supervise/*/log
        echo "."
    ;;
    stat)
        cd /var/qmail/supervise
        svstat * */log
    ;;
    doqueue|alrm)
        echo "Sending ALRM signal to qmail-send."
        svc -a /var/qmail/supervise/qmail-send
    ;;
    queue)
        qmail-qstat
        qmail-qread
    ;;
    reload|hup)
        echo "Sending HUP signal to qmail-send."
        svc -h /var/qmail/supervise/qmail-send
        echo "Sending HUP signal to qmail-pop3d."
        svc -h /var/qmail/supervise/qmail-pop3d
    ;;
    pause)
        echo "Pausing qmail-send"
        svc -p /var/qmail/supervise/qmail-send 
        echo "Pausing qmail-smtpd"
        svc -p /var/qmail/supervise/qmail-smtpd
        echo "Pausing qmail-pop3d"
        svc -p /var/qmail/supervise/qmail-pop3d
    ;;
    cont)
        echo "Continuing qmail-send"
        svc -c /var/qmail/supervise/qmail-send
        echo "Continuing qmail-smtpd"
        svc -c /var/qmail/supervise/qmail-smtpd
        echo "Continuing qmail-pop3d"
        svc -c /var/qmail/supervise/qmail-pop3d
    ;;
    restart)
        echo "Restarting qmail:"
        echo "* Stopping qmail-smtpd."
        svc -d /var/qmail/supervise/qmail-smtpd
        echo "* Sending qmail-send SIGTERM and restarting."
        svc -t /var/qmail/supervise/qmail-send 
        echo "* Restarting qmail-smtpd."
        svc -u /var/qmail/supervise/qmail-smtpd
        echo "* Sending qmail-pop3d SIGTERM and restarting."
        svc -t /var/qmail/supervise/qmail-pop3d
    ;;
    cdb)
        tcprules /usr/local/vpopmail/etc/tcp.smtp.cdb 
/usr/local/vpopmail/etc/tcp.smtp.tmp < /usr/local/vpopmail/etc/tcp.smtp
        echo "Reloaded /usr/local/vpopmail/etc/tcp.smtp.cdb"
        chmod 644 /usr/local/vpopmail/etc/tcp.smtp.cdb
    ;;   
    *)
        echo "Usage: $0
{start|stop|restart|doqueue|reload|stat|pause|cont|cdb|queue}"
    exit 1
esac
exit 0
------------------------------------------------------------------------------------

Create qmail supervise files;
/var/qmail/supervise/qmail-send/run text...
------------------------------------------------------------------------------------
#!/bin/sh
env env - PATH="/var/qmail/bin:/usr/local/bin" \
qmail-start ./Maildir/
------------------------------------------------------------------------------------

/var/qmail/supervise/qmail-send/log/run text...
------------------------------------------------------------------------------------
#!/bin/sh
exec /usr/local/bin/setuidgid qmaill /usr/local/bin/multilog t 
/var/log/qmail/qmail-send 2>&1
------------------------------------------------------------------------------------

/var/qmail/supervise/qmail-smtp/run text with serialmail...
------------------------------------------------------------------------------------
exec /usr/local/bin/tcpserver -p -R -x /usr/local/vpopmail/etc/tcp.smtp.cdb \
-u82 -g81 -v -c100 0 smtp \
      sh -c '
        /var/qmail/bin/qmail-smtpd
        cd /var/qmail/autoturn
        exec setlock -nx $TCPREMOTEIP/seriallock \
        maildirsmtp $TCPREMOTEIP autoturn-$TCPREMOTEIP- $TCPREMOTEIP AutoTURN
      ' \
`hostname --fqdn` /usr/local/scripts/vpopmail/vchkpw /usr/bin/true 2>&1
------------------------------------------------------------------------------------

/var/qmail/supervise/qmail-smtp/run text with rblsmtpd...
------------------------------------------------------------------------------------
#!/bin/sh
exec /usr/local/bin/tcpserver -p -R -x /usr/local/vpopmail/etc/tcp.smtp.cdb \
-u82 -g81 -v -c100 0 smtp /usr/local/bin/rblsmtpd \
        -r bl.spamcop.net \
        -r sbl.spamhaus.net \
/var/qmail/bin/qmail-smtpd \
`hostname --fqdn` /usr/local/scripts/vpopmail/vchkpw /usr/bin/true 2>&1
------------------------------------------------------------------------------------

/var/qmail/supervise/qmail-smtp/log/run text...
------------------------------------------------------------------------------------
#!/bin/sh
exec /usr/local/bin/setuidgid qmaill /usr/local/bin/multilog t 
/var/log/qmail/qmail-smtpd 2>&1
------------------------------------------------------------------------------------

We also must create the log directories

#mkdir -p /var/log/qmail/qmail-smtpd
#mkdir -p /var/log/qmail/qmail-send
#chown -R qmaill /var/log/qmail

Lets install vpopmail now...

#cd /usr/ports/mail/vpopmail
#make install HARDQUOTA="500000" WITHOUT_ROAMING=true WITH_MYSQL=true \
WITH_MYSQL_USER=vpopmail WITH_MYSQL_PASSWD=yourpassword WITH_MYSQL_DB=vpopmail \
&& make clean

The options we supply to vpopmail are optional although I figured out this is
the best which works for me. Hardquota effects the default quota of the postmaster
user.

For smtp auth to work we must

#mkdir -p /usr/local/scripts/vpopmail
#chown qmaild:qmail /usr/local/scripts/vpopmail
#chmod 700 /usr/local/scripts/vpopmail
#cp /usr/local/vpopmail/bin/vchkpw /usr/local/scripts/vpopmail
#chown vpopmail:qnofiles /usr/local/scripts/vpopmail/vchkpw
#chmod 4710 /usr/local/scripts/vpopmail/vchkpw  

Now we will install mysql

#cd /usr/ports/databases/mysql323-server
#make install DB_DIR=/usr/local/mysql && make clean

and create vpopmail user and db after starting mysql...
#mysql -uroot -p
Enter password: 
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 1 to server version: 3.23.56

Type 'help;' or '\h' for help. Type '\c' to clear the buffer.

mysql> create database vpopmail;
Query OK, 1 row affected (0.17 sec)

mysql> grant all privileges on vpopmail.* to [EMAIL PROTECTED] identified by 
"yourpassword";
Query OK, 0 rows affected (0.18 sec)

mysql> quit
Bye
#

Lets install courier-imap port for imap and pop3 connections

#cd /usr/ports/mail/courier-imap
#make install WITHOUT_PAM=true WITH_VPOPMAIL=true && make clean

Now its time to edit some conf files
#cd /usr/local/etc/courier-imap
#cp imapd-ssl.dist imapd-ssl
#cp imapd.cnf.dist imapd.cnf
#cp imapd.dist imapd
#cp pop3d-ssl.dist pop3d-ssl
#cp pop3d.cnf.dist pop3d.cnf
#cp pop3d.dist pop3d

It is advisable to edit at least *.cnf files so that the certificate informations will 
be ok
The certificate's CN(common name) must be your FQDN otherwise it will give an error 
message
everytime somebody connect.

We must create the certificate files for courier-imap too

#cd /usr/local/share/courier-imap/

Lets create 10 year certificates again by editing mkimapdcert, mkpop3dcert files and
changing 365 to 3650

#./mkimapdcert
#./mkpop3dcert

Now its time to install startup scripts for courier imap.
We want to run the server with tcptools but we still must run authdaemon
seperately


/usr/local/etc/rc.d/courier-imap-authdaemon.sh text...
------------------------------------------------------------------------------------
#!/bin/sh

case "$1" in
start)
        [ -x /usr/local/libexec/courier-imap/authlib/authdaemond ] && 
/usr/local/libexec/courier-imap/authlib/authdaemond start > /dev/null && echo -n ' 
authdaemond'
        ;;
stop)
        ;;
*)
        echo "Usage: `basename $0` {start|stop}" >&2
        ;;
esac

exit 0
------------------------------------------------------------------------------------

Create courier-imap supervise files;
/var/qmail/supervise/courier-imap-imapd-ssl/run text...
------------------------------------------------------------------------------------
#!/bin/sh
exec 2>&1
PREFIX=/usr/local
exec envdir env \
/usr/local/bin/tcpserver -v -R -H -l `hostname --fqdn` 0 993 \
$PREFIX/bin/couriertls -server -tcpd $PREFIX/sbin/imaplogin 
$PREFIX/libexec/courier-imap/authlib/authdaemon \
$PREFIX/bin/imapd Maildir 2>&1
------------------------------------------------------------------------------------

/var/qmail/supervise/courier-imap-imapd/run text...
------------------------------------------------------------------------------------
#!/bin/sh
exec 2>&1
PREFIX=/usr/local
exec envdir env \
/usr/local/bin/tcpserver -v -R -H -l `hostname --fqdn` 0 143 \
$PREFIX/sbin/imaplogin $PREFIX/libexec/courier-imap/authlib/authdaemon \
$PREFIX/bin/imapd Maildir 2>&1
------------------------------------------------------------------------------------

/var/qmail/supervise/courier-imap-pop3d-ssl/run text...
------------------------------------------------------------------------------------
#!/bin/sh
exec 2>&1
PREFIX=/usr/local
exec envdir env \
/usr/local/bin/tcpserver -v -R -H -l `hostname --fqdn` 0 995 \
$PREFIX/bin/couriertls -server -tcpd $PREFIX/sbin/pop3login 
$PREFIX/libexec/courier-imap/authlib/authdaemon \
$PREFIX/bin/pop3d Maildir 2>&1
------------------------------------------------------------------------------------

/var/qmail/supervise/courier-imap-pop3d/run text...
------------------------------------------------------------------------------------
#!/bin/sh
exec 2>&1
PREFIX=/usr/local
exec envdir env \
/usr/local/bin/tcpserver -v -R -H -l `hostname --fqdn` 0 110 \
$PREFIX/sbin/pop3login $PREFIX/libexec/courier-imap/authlib/authdaemon \
$PREFIX/bin/pop3d Maildir 2>&1
------------------------------------------------------------------------------------

/var/qmail/supervise/courier-imap-imapd-ssl/log/run text...
------------------------------------------------------------------------------------
#!/bin/sh 
exec /usr/local/bin/setuidgid qmaill /usr/local/bin/multilog t 
/var/log/qmail/courier-imap-imapd-ssl 2>&1
------------------------------------------------------------------------------------

/var/qmail/supervise/courier-imap-imapd/log/run
------------------------------------------------------------------------------------
#!/bin/sh 
exec /usr/local/bin/setuidgid qmaill /usr/local/bin/multilog t 
/var/log/qmail/courier-imap-imapd 2>&1
------------------------------------------------------------------------------------

/var/qmail/supervise/courier-imap-pop3d-ssl/log/run
------------------------------------------------------------------------------------
#!/bin/sh 
exec /usr/local/bin/setuidgid qmaill /usr/local/bin/multilog t 
/var/log/qmail/courier-imap-pop3d-ssl 2>&1
------------------------------------------------------------------------------------

/var/qmail/supervise/courier-imap-pop3d/log/run
------------------------------------------------------------------------------------
#!/bin/sh 
exec /usr/local/bin/setuidgid qmaill /usr/local/bin/multilog t 
/var/log/qmail/courier-imap-pop3d 2>&1
------------------------------------------------------------------------------------

We should get courier imap conf files inside too!

#mkdir /var/qmail/supervise/courier-imap-imapd-ssl/env
#mkdir /var/qmail/supervise/courier-imap-imapd
#mkdir /var/qmail/supervise/courier-imap-pop3d-ssl
#mkdir /var/qmail/supervise/courier-imap-pop3d

Now copy the envconv program to each directory

envconv text...
------------------------------------------------------------------------------------
#!/usr/bin/perl

# written by Jonas Pasche
# enhanced by Matthias Andree

while (<STDIN>) {
  if( $_ =~ /^([^#][^=]+)=(.*)/) {
    $name=$1;
    unlink "$name";
    open (F, ">$name") or die "Cannot open $name: $!";
    $value = $2;
    if( $value =~ /^"(.*)"$/ ) {                      
      $x=$1;                                          
    } else {                                          
      $x=$value;                                      
    }                                                 
    while ($x =~ m/\$(\S+)/ && $vars{$1}) {           
        $y = $1;                                      
        $x =~ s/\$$y/$vars{$y}/;                      
    }                                                 
    $vars{$name}=$x;                                  
    print F $x or die "Cannot write to $1: $!";       
    close (F) or die "Cannot close $1: $!";           
  }                                                   
}
------------------------------------------------------------------------------------

Run in each env directory
#cd /var/qmail/supervise/courier-imap-imapd-ssl/env
#./envconv < /usr/local/etc/courier-imap/imapd-ssl.dist
#cd /var/qmail/supervise/courier-imap-imapd/env
#./envconv < /usr/local/etc/courier-imap/imapd.dist
#cd /var/qmail/supervise/courier-imap-pop3d-ssl/env
#./envconv < /usr/local/etc/courier-imap/pop3d-ssl.dist
#cd /var/qmail/supervise/courier-imap-pop3d/env
#./envconv < /usr/local/etc/courier-imap/pop3d.dist


We also must create the log directories

#mkdir -p /var/log/qmail/courier-imap-imapd-ssl
#mkdir -p /var/log/qmail/courier-imap-imapd
#mkdir -p /var/log/qmail/courier-imap-pop3d-ssl
#mkdir -p /var/log/qmail/courier-imap-pop3d
#chown -R qmaill /var/log/qmail

Install Sqwebmail...
#cd /usr/ports/mail/sqwebmail/
#make install WITH_VCHKPW=true && make clean
#cd /usr/local/share/sqwebmail
#cp authdaemonrc.dist authdaemonrc

Change the authdaemonrc authmodulelist line to

authmodulelist="authvchkpw"

Create startup script...

/usr/local/etc/rc.d/sqwebmail-authdaemon.sh text...
------------------------------------------------------------------------------------
#!/bin/sh

case "$1" in
start)
        [ -x /usr/local/libexec/sqwebmail/authlib/authdaemond ] && 
/usr/local/libexec/sqwebmail/authlib/authdaemond start > /dev/null && echo -n ' 
authdaemond'
        ;;
stop)
        ;;
*)
        echo "Usage: `basename $0` {start|stop}" >&2
        ;;
esac

exit 0
------------------------------------------------------------------------------------

Make the .sh script executable
#chmod 755 /usr/local/etc/rc.d/sqwebmail-authdaemon.sh

Make a script to copy cgi's etc. after upgrades
#cd /usr/local
#mkdir scripts
#cd scripts

#well this is something I run after each installl...

/usr/local/scripts/afterinstall.sh text...
------------------------------------------------------------------------------------
#!/bin/sh
cp -pR /usr/local/www/data.default/ /usr/local/www/data
cp -pR /usr/local/www/cgi-bin.default/ /usr/local/www/cgi-bin
cp /usr/local/vpopmail/bin/vchkpw /usr/local/scripts/vpopmail
chown vpopmail:qnofiles /usr/local/scripts/vpopmail/vchkpw
chmod 4710 /usr/local/scripts/vpopmail/vchkpw  
------------------------------------------------------------------------------------

#chmod 755 afterinstall.sh

Install Vqadmin
#cd /usr/ports/mail/vqadmin
#make install && make clean

We should edit the authentication settings for vqadmin after using afterinstall.sh
script.
#mkdir -p /usr/local/www/cgi-bin/vqadmin
#cd /usr/local/www/cgi-bin/vqadmin

/usr/local/www/cgi-bin/vqadmin/.htaccess text...
------------------------------------------------------------------------------------
AuthType Basic
AuthUserFile /usr/local/etc/apache/vqadmin.passwd
AuthName vQadmin
require valid-user
satisfy all
------------------------------------------------------------------------------------

And in vqadmin.conf file add 'senior * admin' to end. 
Then do the following (because we dont want to overwrite them accidentally)
#chflags schg .htaccess
#chflags schg vqadmin.conf

If we want to play with some database stuff later on from web, we can install 
phpmyadmin

#cd /usr/ports/databases/phpmyadmin
#make install && make clean


#installing squirrelmail

#cd /usr/ports/mail/squirrelmail
#make install && clean
#cd /usr/local/squirrelmail
#./configure

Miracle! Squirrelmail worked with minimum tweaking! and wonderfully!
You should perhaps set the imap server to courier though.

#installing mrtg and isoqlog

#cd /usr/ports/mail/isoqlog
#make install && make clean

/usr/local/etc/isoqlog.conf text...
------------------------------------------------------------------------------------
#isoqlog 2.1 Configuration file 

logtype = "qmail-multilog" #log type qmai-multilog, qmail-syslog, sendmail, postfix
logstore = "/var/log/qmail/qmail-send" #
domainsfile = "/usr/local/etc/isoqlog.domains" # 
outputdir = "/usr/local/www/data/isoqlog" #html outpur directory
htmldir = "/usr/local/share/isoqlog/htmltemp"
langfile = "/usr/local/share/isoqlog/lang/english"
hostname = "myhostname.my.domain"

maxsender   = 100
maxreceiver = 100
maxtotal    = 100  
maxbyte     = 100 
------------------------------------------------------------------------------------

Inside isoqlog.domains, there should be at least one domain :)


#make install && make clean

Create dir where we will put our logs
#mkdir /usr/local/www/data/mrtg

/usr/local/etc/mrtg/mrtg.cfg text...
------------------------------------------------------------------------------------
#cd /usr/ports/net/mrtg
WorkDir: /usr/local/www/data/mrtg
Options[_]: growright,gauge

#############################################################

Title[msg]: myhostname.my.domain - Messages
MaxBytes[msg]: 10000
AbsMax[msg]: 20000
Target[msg]: `/usr/local/bin/qmailmrtg7 m /var/log/qmail/qmail-send`
PageTop[msg]: <B>myhostname.my.domain Messages</B><br>
ShortLegend[msg]: msg
YLegend[msg]: msg
Legend1[msg]: Total Msg
LegendI[msg]: &nbsp;Deliveries:
LegendO[msg]: &nbsp;Attempts:
WithPeak[msg]: ymwd

#-------------------------------------------------------------------

Title[queue-size]: myhostname.my.domain - Queue Size 
MaxBytes[queue-size]: 10000
AbsMax[queue-size]: 100000
Target[queue-size]: `/usr/local/bin/qmailmrtg7 q /var/qmail/queue`
PageTop[queue-size]: <B>myhostname.my.domain Queue Size</B><br>
ShortLegend[queue-size]: Msg
YLegend[queue-size]: Msg
Legend1[queue-size]: Msg
LegendI[queue-size]: &nbsp;Msg:
LegendO[queue-size]: &nbsp;Unprocessed Msg:
WithPeak[queue-size]: ymwd

#-------------------------------------------------------------------

Title[concurrency]: myhostname.my.domain - Local/Remote Concurrency 
MaxBytes[concurrency]: 500
AbsMax[concurrency]: 10000
Target[concurrency]: `/usr/local/bin/qmailmrtg7 c /var/log/qmail/qmail-send`
PageTop[concurrency]: <B>myhostname.my.domain - Local/Remote Concurrency</B><br>
ShortLegend[concurrency]: Concurrency
YLegend[concurrency]: Concurrency
Legend1[concurrency]: Concurrency
LegendI[concurrency]: &nbsp;Local:
LegendO[concurrency]: &nbsp;Remote:
WithPeak[concurrency]: ymwd

#-------------------------------------------------------------------

Title[messstatus]: myhostname.my.domain - Message Status 
MaxBytes[messstatus]: 10000
AbsMax[messstatus]: 100000
Target[messstatus]: `/usr/local/bin/qmailmrtg7 s /var/log/qmail/qmail-send`
PageTop[messstatus]: <B>myhostname.my.domain - Message Status</B><BR> 
ShortLegend[messstatus]: Msg
YLegend[messstatus]: Msg
Legend1[messstatus]: Msg
LegendI[messstatus]: &nbsp;Success:
LegendO[messstatus]: &nbsp;Failures:
WithPeak[messstatus]: ymwd

#-------------------------------------------------------------------

Title[bytes]: myhostname.my.domain - Bytes Transfered
MaxBytes[bytes]: 200000
AbsMax[bytes]: 10000000
Target[bytes]: `/usr/local/bin/qmailmrtg7 b /var/log/qmail/qmail-send`
PageTop[bytes]: <B>myhostname.my.domain - Bytes Transfered</B><br>
ShortLegend[bytes]: kB
YLegend[bytes]: kB
Legend1[bytes]: kB
LegendI[bytes]: &nbsp;kB:
LegendO[bytes]: &nbsp;kB:
WithPeak[bytes]: ymwd

#-------------------------------------------------------------------

Title[smtp]: myhostname.my.domain - SMTP Concurrency 
MaxBytes[smtp]: 100
AbsMax[smtp]: 500
Target[smtp]: `/usr/local/bin/qmailmrtg7 t /var/log/qmail/qmail-smtpd`
PageTop[smtp]: <B>myhostname.my.domain - SMTP Concurrency</B><BR>
ShortLegend[smtp]: SMTP
YLegend[smtp]: SMTP
Legend1[smtp]: SMTP
LegendI[smtp]: &nbsp;SMTP:
LegendO[smtp]: 
WithPeak[smtp]: ymwd

#-------------------------------------------------------------------

Title[smtpad]: myhostname.my.domain - SMTP Totals 
MaxBytes[smtpad]: 1000
AbsMax[smtpad]: 10000
Target[smtpad]: `/usr/local/bin/qmailmrtg7 a /var/log/qmail/qmail-smtpd`
PageTop[smtpad]: <B>myhostname.my.domain - SMTP Totals</B><BR>
ShortLegend[smtpad]: SMTP
YLegend[smtpad]: SMTP
Legend1[smtpad]: SMTP
LegendI[smtpad]: &nbsp;Allow:
LegendO[smtpad]: &nbsp;Deny:
WithPeak[smtpad]: ymwd

#-------------------------------------------------------------------
Title[pop3]: myhostname.my.domain - POP3 Concurrency 
MaxBytes[pop3]: 100
AbsMax[pop3]: 500 
Target[pop3]: `/usr/local/bin/qmailmrtg7 t /var/log/qmail/courier-imap-pop3d`
PageTop[pop3]: <B>myhostname.my.domain POP3 Concurrency</B><BR>
ShortLegend[pop3]: POP3
YLegend[pop3]: POP3
Legend1[pop3]: POP3
LegendI[pop3]: &nbsp;POP3:
LegendO[pop3]: 
WithPeak[pop3]: ymwd

#-------------------------------------------------------------------

Title[pop3ad]: myhostname.my.domain - POP3 Totals
MaxBytes[pop3ad]: 1000
AbsMax[pop3ad]: 10000
Target[pop3ad]: `/usr/local/bin/qmailmrtg7 a /var/log/qmail/courier-imap-pop3d`
PageTop[pop3ad]: <B>myhostname.my.domain - POP3 Totals</B><BR>
ShortLegend[pop3ad]: POP3
YLegend[pop3ad]: POP3
Legend1[pop3ad]: POP3
LegendI[pop3ad]: &nbsp;Allow:
LegendO[pop3ad]: &nbsp;Deny:
WithPeak[pop3ad]: ymwd

#-------------------------------------------------------------------
Title[pop3-ssl]: myhostname.my.domain - POP3-SSL Concurrency
MaxBytes[pop3-ssl]: 100
AbsMax[pop3-ssl]: 500
Target[pop3-ssl]: `/usr/local/bin/qmailmrtg7 t /var/log/qmail/courier-imap-pop3d-ssl`
PageTop[pop3-ssl]: <B>myhostname.my.domain pop3-ssl Concurrency</B><BR>
ShortLegend[pop3-ssl]: POP3-SSL
YLegend[pop3-ssl]: POP3-SSL            
Legend1[pop3-ssl]: POP3-SSL          
LegendI[pop3-ssl]: &nbsp;POP3-SSL:
LegendO[pop3-ssl]:
WithPeak[pop3-ssl]: ymwd

#-------------------------------------------------------------------

Title[pop3-sslad]: myhostname.my.domain - POP3-SSL Totals
MaxBytes[pop3-sslad]: 1000    
AbsMax[pop3-sslad]: 10000
Target[pop3-sslad]: `/usr/local/bin/qmailmrtg7 a /var/log/qmail/courier-imap-pop3d-ssl`
PageTop[pop3-sslad]: <B>myhostname.my.domain - POP3-SSL Totals</B><BR>
ShortLegend[pop3-sslad]: POP3-SSL
YLegend[pop3-sslad]: POP3-SSL       
Legend1[pop3-sslad]: POP3-SSL
LegendI[pop3-sslad]: &nbsp;Allow:
LegendO[pop3-sslad]: &nbsp;Deny:
WithPeak[pop3-sslad]: ymwd

#-------------------------------------------------------------------
Title[imap]: myhostname.my.domain - IMAP Concurrency
MaxBytes[imap]: 100
AbsMax[imap]: 500
Target[imap]: `/usr/local/bin/qmailmrtg7 t /var/log/qmail/courier-imap-imapd`
PageTop[imap]: <B>myhostname.my.domain IMAP Concurrency</B><BR>
ShortLegend[imap]: IMAP
YLegend[imap]: IMAP            
Legend1[imap]: IMAP          
LegendI[imap]: &nbsp;IMAP:
LegendO[imap]:
WithPeak[imap]: ymwd

#-------------------------------------------------------------------

Title[imapad]: myhostname.my.domain - IMAP Totals
MaxBytes[imapad]: 1000    
AbsMax[imapad]: 10000
Target[imapad]: `/usr/local/bin/qmailmrtg7 a /var/log/qmail/courier-imap-imapd`
PageTop[imapad]: <B>myhostname.my.domain - IMAP Totals</B><BR>
ShortLegend[imapad]: IMAP
YLegend[imapad]: IMAP      
Legend1[imapad]: IMAP
LegendI[imapad]: &nbsp;Allow:
LegendO[imapad]: &nbsp;Deny:
WithPeak[imapad]: ymwd

#-------------------------------------------------------------------
Title[imap-ssl]: myhostname.my.domain - IMAP-SSL Concurrency
MaxBytes[imap-ssl]: 100
AbsMax[imap-ssl]: 500
Target[imap-ssl]: `/usr/local/bin/qmailmrtg7 t /var/log/qmail/courier-imap-imapd-ssl`
PageTop[imap-ssl]: <B>myhostname.my.domain IMAP-SSL Concurrency</B><BR>
ShortLegend[imap-ssl]: IMAP-SSL
YLegend[imap-ssl]: IMAP-SSL        
Legend1[imap-ssl]: IMAP-SSL          
LegendI[imap-ssl]: &nbsp;IMAP-SSL:
LegendO[imap-ssl]:
WithPeak[imap-ssl]: ymwd

#-------------------------------------------------------------------

Title[imap-sslad]: myhostname.my.domain - IMAP-SSL Totals
MaxBytes[imap-sslad]: 1000    
AbsMax[imap-sslad]: 10000
Target[imap-sslad]: `/usr/local/bin/qmailmrtg7 a /var/log/qmail/courier-imap-imapd-ssl`
PageTop[imap-sslad]: <B>myhostname.my.domain - IMAP-SSL Totals</B><BR>
ShortLegend[imap-sslad]: IMAP-SSL
YLegend[imap-sslad]: IMAP-SSL      
Legend1[imap-sslad]: IMAP-SSL
LegendI[imap-sslad]: &nbsp;Allow:
LegendO[imap-sslad]: &nbsp;Deny:
WithPeak[imap-sslad]: ymwd
------------------------------------------------------------------------------------

set crontab
/etc/crontab additions...
------------------------------------------------------------------------------------
#sqwebmail clean cache
*/30    *       *       *       *       root    
/usr/local/share/sqwebmail/cleancache.pl
#mail statistics
*/5     *       *       *       *       root    /usr/local/bin/mrtg 
/usr/local/etc/mrtg/mrtg.cfg 2>&1 > /dev/null
#mail statistics
58      *       *       *       *       root    /usr/local/bin/isoqlog 1>/dev/null 
2>/dev/null
#delete users who didnt login for 6 months
0       0       *       *       1       root    /usr/local/vpopmail/bin/vdeloldusers 
-e -D 2>&1 > /dev/null
------------------------------------------------------------------------------------

So now you want to get rid of snakeoil stuff in apache :)
Do not forget to use your FQDN for CN(common name)

#openssl genrsa -out server.key 1024
#openssl req -new -key server.key -out server.csr
#openssl x509 -req -days 3650 -in server.csr -signkey server.key -out server.crt

Copy the server.* files to /usr/local/etc/apache/ssl.* directories and you are done.

Reply via email to