On Sun, Sep 09, 2001 at 09:18:28PM +0200, Florian Heiderich wrote:
> #!/bin/sh
> QMAILDUID=`id -u qmaild`;
> NOFILESGID=`id -g qmaild`;
> MAXSMTPD=`cat /var/qmail/control/concurrencyincoming`;
> export RBLSMTPD="-Sorry, you are a dialup; complains to
> [EMAIL PROTECTED]";
> exec /usr/local/bin/softlimit -m 2000000 \
> /usr/local/bin/tcpserver -v -R -l 0 -x /etc/tcp.smtp.cdb -c
> "$MAXSMTPD" \
> -u "$QMAILDUID" -g "$NOFILESGID" 0 smtp /usr/local/bin/rblsmtpd
> -b -r dev.null.dk /var/qmail/bin/qmail-smtpd 2>&1
>
> But it doesn't work.
> The export doesn't work. Why? I've made it manually, but it also doesn't
> work.
This will cause RBLSMTPD to be set for *all* connections. This will effectively
block connections from dialups, but it will do it in the same way that pulling
the ethernet cord out of the back of your mail server will.
To use the dev.null.dk RBL list, just remove that RBLSMTPD bit from your
script. Note that this will not block connections from dialups, because that's
not what the dev.null.dk list lists. To block connections from dialups, see
http://www.mail-abuse.org/dul/
Most of the RBL lists (including dev.null.dk, I believe) list open mail relays,
not dialups.
Chris
PGP signature