qpsmtpd Wiki

[[install:quick-install_howto]]

You are here: start » install » quick-install_howto

Login

You are currently not logged in! Enter your authentication credentials below to log in. You need to have cookies enabled to log in.

Login

You don't have an account yet? Just get one: Register

Forgotten your password? Get a new one: Set new password

Quick install for 0.32 using forkserver and djb's daemontools

Get the code and unzip it:

useradd smtpd
cd /home/smtpd
wget http://smtpd.develooper.com/files/qpsmtpd-0.32.tar.gz
tar zxvpf qpsmtpd-0.32.tar.gz

Set up some directories and permissions:

chown -R smtpd:users qpsmtpd-0.32
chmod o+t qpsmtpd-0.32
ln -s qpsmtpd-0.32 qpsmtpd
cd qpsmtpd
mkdir tmp; chown smtpd:users tmp; chmod 700 tmp

Build, test, and install:

perl Makefile.PL
make && make test && make install
mv config.sample/ config
cp /var/tmp/qp_fork/run .     # [1]
chmod +x ./run
cp /var/tmp/qptest/log/run log/   # [2]
chmod +x ./log/run
echo "/home/smtpd/qpsmtpd/tmp" > config/spool_dir
cd /service/
ln -s /home/smtpd/qpsmtpd .

Watch in awe…

sleep 5;
tail -f /home/smtpd/qpsmtpd/log/main/current

[1]

  • Create the following file and save at /var/tmp/qp_fork/run
  • On AMD64 platforms use 50000000 for softlimit if you get an out of memory error
#!/bin/sh
exec 2>&1 \
sh -c '
  exec \
    /usr/local/bin/softlimit -m 25000000 \
    ${PERL-perl} -T ./qpsmtpd-forkserver \
    --listen-address 0 \
    --port 2525 \
    --limit-connections 40 \
    --max-from-ip 10 \
    --user smtpd
'

[2]

  • Then create this next file at /var/tmp/qp_fork/log/run
#!/bin/sh

export LOGDIR=./main

mkdir -p $LOGDIR

exec /usr/local/bin/multilog t s16777215 n30 $LOGDIR