I don't bother using tcpserver or tcpsvd anymore, I use the --port arg like so:

#!/bin/sh
exec 2>&1 \
sh -c '
  exec \
    /usr/local/bin/softlimit -m 30000000 \
    /usr/bin/perl -T -I/path/to/qpsmtpd/lib \
    /path/to/qpsmtpd/qpsmtpd-forkserver \
    --listen-address 0 \
    --port 25 \
    --port 465 \
    --port 587 \
    --limit-connections 40 \
    --max-from-ip 10 \
    --user smtpd
'

Does that help?


JT Moree wrote:
I modified the 'run' script because it didn't work on my system.  Then I
modified it again to run on different ports.

I'm curious how others are starting qpsmtpd on different ports.  Perhaps
there is a better way than what I've done.  See below

#!/bin/sh
QMAILDUID=`id -u smtpd`
NOFILESGID=`id -g smtpd`
SOFTLIMIT=/usr/sbin/softlimit  #originally pointed to /usr/local/bin
TCPSERVER=/usr/bin/tcpserver  #originally pointed to /usr/local/bin
if [ -f "config/PORT" ] ; then
  PORT=`head -1 config/PORT`
else
  PORT=smtp
fi
if [ -f "config/IP" ] ; then
  #This was inline.  doing it here allows for better error handling
  IP=`head -1 config/IP`
fi
exec $SOFTLIMIT -m 25000000 \
  $TCPSERVER -c 10 -v -R -p \
  -u $QMAILDUID -g $NOFILESGID $IP $PORT \
  ./qpsmtpd 2>&1



Reply via email to