mike171562
Joined: 10 Apr 2008 Posts: 1
|
Posted: Thu Apr 10, 2008 2:01 pm Post subject: qmail reverts back to open relay |
|
|
Hello, I have setup a client's server with qmail on a FreeBSD 6.2 box, as per the instructions on qmailrocks. The problem is, every so often every few weeks, it will revert back to an open relay, the strange thing is, I can fix the problem by simply running the tcprules command again and recompiling my tcp.smtp.cdb
( tcprules /etc/tcp.smtp.cdb /etc/tcp.smtp.tmp < /etc/tcp.smtp ),. This fixes the problem. Has anyone heard of this happening?
my /etc/tcp.smtp
127.:allow,RELAYCLIENT=""
my supervise/qmail-smtpd/run
#!/bin/sh
QMAILQUEUE="/usr/local/qmail/bin/qmail-scanner-queue" ; export QMAILQUEUE
QMAILDUID=`id -u vpopmail`
NOFILESGID=`id -g vpopmail`
MAXSMTPD=`cat /usr/local/qmail/control/concurrencyincoming`
LOCAL=`head -1 /usr/local/qmail/control/me`
if [ -z "$QMAILDUID" -o -z "$NOFILESGID" -o -z "$MAXSMTPD" -o -z "$LOCAL" ]; then
echo QMAILDUID, NOFILESGID, MAXSMTPD, or LOCAL is unset in
echo /usr/local/qmail/supervise/qmail-smtpd/run
exit 1
fi
if [ ! -f /usr/local/qmail/control/rcpthosts ]; then
echo "No /usr/local/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 40000000 \
/usr/local/bin/tcpserver -v -R -l "$LOCAL" -x /etc/tcp.smtp.cdb -c "$MAXSMTPD" \
-u "$QMAILDUID" -g "$NOFILESGID" 0 smtp \
/usr/local/qmail/bin/qmail-smtpd mail.######.com \
/usr/local/qmail/vpopmail-home/bin/vchkpw /usr/bin/true 2>&1
my qmail-showctl
qmail home directory: /usr/local/qmail.
user-ext delimiter: -.
paternalism (in decimal): 2.
silent concurrency limit: 211.
subdirectory split: 211.
user ids: 81, 82, 83, 0, 84, 85, 86, 87.
group ids: 1007, 82.
badmailfrom: (Default.) Any MAIL FROM is allowed.
bouncefrom: (Default.) Bounce user name is MAILER-DAEMON.
bouncehost: (Default.) Bounce host name is mail.r#####.com.
concurrencylocal: (Default.) Local concurrency is 10.
concurrencyremote: Remote concurrency is 255.
databytes: (Default.) SMTP DATA limit is 0 bytes.
defaultdomain: Default domain name is ######.com.
defaulthost: (Default.) Default host name is mail.r####.com.
doublebouncehost: (Default.) 2B recipient host: mail.####.com.
doublebounceto: (Default.) 2B recipient user: postmaster.
envnoathost: (Default.) Presumed domain name is mail.#####.com.
helohost: (Default.) SMTP client HELO host name is mail.#####.com.
idhost: (Default.) Message-ID host name is mail.####.com.
localiphost: (Default.) Local IP address becomes mail.###.com.
locals:
Messages for mail.####.net are delivered locally.
me: My name is mail.####.com.
percenthack: (Default.) The percent hack is not allowed.
plusdomain: Plus domain name is ####.com.
qmqpservers: (Default.) No QMQP servers.
queuelifetime: Message lifetime in the queue is 10 seconds.
rcpthosts:
SMTP clients may send messages to recipients at mail.###.net.
SMTP clients may send messages to recipients at ###.com.
SMTP clients may send messages to recipients at mail.###.com.
SMTP clients may send messages to recipients at ####l.com.
morercpthosts: (Default.) No effect.
morercpthosts.cdb: (Default.) No effect.
smtpgreeting: SMTP greeting: 220 #####.com.
smtproutes: (Default.) No artificial SMTP routes.
timeoutconnect: SMTP client connection timeout is 60 seconds.
timeoutremote: SMTP client data timeout is 60 seconds.
timeoutsmtpd: SMTP server data timeout is 60 seconds.
defaultdelivery: I have no idea what this file does.
concurrencyincoming: I have no idea what this file does.
rcpthosts.lock: I have no idea what this file does.
virtualdomains.lock: I have no idea what this file does.
locals.lock: I have no idea what this file does.
Any help would be appreciated.
Edit/Delete Message |
|