source: npl/mailserver/transparantspam/run @ 26ffad7

Last change on this file since 26ffad7 was c5c522c, checked in by Edwin Eefting <edwin@datux.nl>, 8 years ago

initial commit, transferred from cleaned syn3 svn tree

  • Property mode set to 100644
File size: 799 bytes
Line 
1#!/bin/sh
2QMAILDUID=`id -u qmaild`
3NOFILESGID=`id -g qmaild`
4MAXSMTPD=`cat /var/qmail/control/concurrencyincoming`
5LOCAL=`head -1 /var/qmail/control/me`
6if [ -z "$QMAILDUID" -o -z "$NOFILESGID" -o -z "$MAXSMTPD" -o -z "$LOCAL" ]; then
7    echo QMAILDUID, NOFILESGID, MAXSMTPD, or LOCAL is unset in
8    echo /var/qmail/supervise/qmail-smtpd/run
9    exit 1
10fi
11if [ ! -f /var/qmail/control/rcpthosts ]; then
12    echo "No /var/qmail/control/rcpthosts!"
13    echo "Refusing to start SMTP listener because it'll create an open relay"
14    exit 1
15fi
16
17
18#listen for mails from qmail2 on port 26:
19exec /usr/bin/softlimit -m 150000000 /usr/bin/tcpserver -v -H -R -l "$LOCAL" -x /etc/qmail/tcp.smtp.cdb -b 1000 -c "$MAXSMTPD" -u "$QMAILDUID" -g "$NOFILESGID" 0 26 /usr/bin/fixcrio /var/qmail/bin/qmail-smtpd 2>&1
Note: See TracBrowser for help on using the repository browser.