This patch makes the PORT configurable, just as IP is configurable.

It requires the addition of a new file qpsmtpd/config/PORT:

25
# on what port shall we listen?
# if using qpsmtpd as an inline proxy, make this something besides 25.
# mengwong 20030723

This is the patch to qpsmtpd/run.

*** run.~1.4.~  Tue Mar 18 04:46:52 2003
--- run Wed Jul 23 14:25:55 2003
***************
*** 3,8 ****
  NOFILESGID=`id -g smtpd`
  exec /usr/local/bin/softlimit -m 25000000 \
    /usr/local/bin/tcpserver -c 10 -v -R -p \
!   -u $QMAILDUID -g $NOFILESGID `head -1 config/IP` smtp \
    ./qpsmtpd 2>&1
- 
--- 3,7 ----
  NOFILESGID=`id -g smtpd`
  exec /usr/local/bin/softlimit -m 25000000 \
    /usr/local/bin/tcpserver -c 10 -v -R -p \
!   -u $QMAILDUID -g $NOFILESGID `head -1 config/IP` `head -1 config/PORT` \
    ./qpsmtpd 2>&1

Reply via email to