PDA

View Full Version : Relay Control


unqueram
05-11-2005, 09:09 PM
I have installed Qmail+vpopmail+omail. Everything is working fine. I just want to enable relaying for certian ip addresses. I followed the setup, but it still does not all relaying from the IP addresses I said to.

/etc/tcp.smtp
65.125.255.3:allow,RELAYCRLIENT=""
65.125.255.8:allow,RELAYCRLIENT=""
:allow

/var/qmail/supervise/qmail-smtpd/run
#!/bin/sh

QMAILDUID=`id -u qmaild`
NOFILESGID=`id -g qmaild`
MAXSMTPD=`cat /var/qmail/control/concurrencyincoming`
LOCAL=`head -1 /var/qmail/control/me`

if [ -z "$QMAILDUID" -o -z "$NOFILESGID" -o -z "$MAXSMTPD" -o -z "$LOCAL" ]; the
n
echo QMAILDUID, NOFILESGID, MAXSMTPD, or LOCAL is unset in
echo /var/qmail/supervise/qmail-smtpd/run
exit 1
fi

if [ ! -f /var/qmail/control/rcpthosts ]; then
echo "No /var/qmail/control/rcpthosts!"
echo "Refusing to start SMTP listener because it'll create an open relay"
exit 1
fi

exec /usr/local/bin/softlimit -m 200000000 \
/usr/local/bin/tcpserver -v -R -l "$LOCAL" -x/etc/tcp.smtp.cdb -c "$MAXSMTPD
" \


Any help would be great!

unqueram
05-12-2005, 07:42 PM
Never mind I had a typo in the tcp.smtp file.