Re: [spamdyke-users] working with /service/qmail-smtpd/run

2009-10-03 Thread Shepherd Nhongo
On Fri, Oct 2, 2009 at 7:10 PM, Eric Shubert  wrote:

>  Shepherd Nhongo wrote:
> > Howdy !
> >
> > I am running qmail according to qmailrocks guide and upgraded some
> > servers according to John Simpson's site. Can someone with the following
> > help me with showing me or sending me a modified
> > /service/qmail-smtpd/run script? Look at my current
> > /service/qmail-smtpd/run before spamdyke implementation.
> >
> > #!/bin/sh
> > QMAILDUID=`id -u vpopmail`
> > NOFILESGID=`id -g vpopmail`
> > 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" ]; then
> > 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 3000 \
> > /usr/local/bin/tcpserver -v -R -l "$LOCAL" -x /etc/tcp.smtp.cdb -c
> > "$MAXSMTPD" \
> > -u "$QMAILDUID" -g "$NOFILESGID" 0 smtp \
> > /var/qmail/bin/qmail-smtpd nhongo.co.cc  \
> > /home/vpopmail/bin/vchkpw /usr/bin/true 2>&1
> >
> > Regards,
> > --
> > Shepherd Nhongo
> >
>
> Here's the run file used with qmailtoaster (http://www.qmailtoaster.com)
> and spamdyke:
>
> #!/bin/sh
> QMAILDUID=`id -u vpopmail`
> NOFILESGID=`id -g vpopmail`
> MAXSMTPD=`cat /var/qmail/control/concurrencyincoming`
> SPAMDYKE="/usr/local/bin/spamdyke"
> SPAMDYKE_CONF="/etc/spamdyke/spamdyke.conf"
> SMTPD="/var/qmail/bin/qmail-smtpd"
> TCP_CDB="/etc/tcprules.d/tcp.smtp.cdb"
> HOSTNAME=`hostname`
> VCHKPW="/home/vpopmail/bin/vchkpw"
> REQUIRE_AUTH=0
>
> exec /usr/bin/softlimit -m 2000 \
>/usr/bin/tcpserver -v -R -H -l $HOSTNAME -x $TCP_CDB -c "$MAXSMTPD" \
>-u "$QMAILDUID" -g "$NOFILESGID" 0 smtp \
>$SPAMDYKE --config-file $SPAMDYKE_CONF \
>$SMTPD $VCHKPW /bin/true 2>&1
> Thanks


Thank you Eric,

I have learnt a thing or two from it.

Regards,

Shepherd

> --
> -Eric 'shubes'
>
> ___
> spamdyke-users mailing list
> spamdyke-users@spamdyke.org
> http://www.spamdyke.org/mailman/listinfo/spamdyke-users
>



-- 
Shepherd Nhongo

Do not Queue mail with SENDMAIL, send mail with QMAIL

Mobile +267 74476040
___
spamdyke-users mailing list
spamdyke-users@spamdyke.org
http://www.spamdyke.org/mailman/listinfo/spamdyke-users


Re: [spamdyke-users] working with /service/qmail-smtpd/run

2009-10-02 Thread Eric Shubert
Shepherd Nhongo wrote:
> Howdy !
> 
> I am running qmail according to qmailrocks guide and upgraded some 
> servers according to John Simpson's site. Can someone with the following 
> help me with showing me or sending me a modified 
> /service/qmail-smtpd/run script? Look at my current 
> /service/qmail-smtpd/run before spamdyke implementation.
> 
> #!/bin/sh
> QMAILDUID=`id -u vpopmail`
> NOFILESGID=`id -g vpopmail`
> 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" ]; then
> 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 3000 \
> /usr/local/bin/tcpserver -v -R -l "$LOCAL" -x /etc/tcp.smtp.cdb -c 
> "$MAXSMTPD" \
> -u "$QMAILDUID" -g "$NOFILESGID" 0 smtp \
> /var/qmail/bin/qmail-smtpd nhongo.co.cc  \
> /home/vpopmail/bin/vchkpw /usr/bin/true 2>&1
> 
> Regards,
> -- 
> Shepherd Nhongo
> 

Here's the run file used with qmailtoaster (http://www.qmailtoaster.com) 
and spamdyke:

#!/bin/sh
QMAILDUID=`id -u vpopmail`
NOFILESGID=`id -g vpopmail`
MAXSMTPD=`cat /var/qmail/control/concurrencyincoming`
SPAMDYKE="/usr/local/bin/spamdyke"
SPAMDYKE_CONF="/etc/spamdyke/spamdyke.conf"
SMTPD="/var/qmail/bin/qmail-smtpd"
TCP_CDB="/etc/tcprules.d/tcp.smtp.cdb"
HOSTNAME=`hostname`
VCHKPW="/home/vpopmail/bin/vchkpw"
REQUIRE_AUTH=0

exec /usr/bin/softlimit -m 2000 \
/usr/bin/tcpserver -v -R -H -l $HOSTNAME -x $TCP_CDB -c "$MAXSMTPD" \
-u "$QMAILDUID" -g "$NOFILESGID" 0 smtp \
$SPAMDYKE --config-file $SPAMDYKE_CONF \
$SMTPD $VCHKPW /bin/true 2>&1


-- 
-Eric 'shubes'

___
spamdyke-users mailing list
spamdyke-users@spamdyke.org
http://www.spamdyke.org/mailman/listinfo/spamdyke-users


[spamdyke-users] working with /service/qmail-smtpd/run

2009-10-01 Thread Shepherd Nhongo
Howdy !

I am running qmail according to qmailrocks guide and upgraded some servers
according to John Simpson's site. Can someone with the following help me
with showing me or sending me a modified /service/qmail-smtpd/run script?
Look at my current /service/qmail-smtpd/run before spamdyke implementation.

#!/bin/sh
QMAILDUID=`id -u vpopmail`
NOFILESGID=`id -g vpopmail`
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" ];
then
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 3000 \
/usr/local/bin/tcpserver -v -R -l "$LOCAL" -x /etc/tcp.smtp.cdb -c
"$MAXSMTPD" \
-u "$QMAILDUID" -g "$NOFILESGID" 0 smtp \
/var/qmail/bin/qmail-smtpd nhongo.co.cc \
/home/vpopmail/bin/vchkpw /usr/bin/true 2>&1

Regards,
-- 
Shepherd Nhongo

Do not Queue mail with SENDMAIL, send mail with QMAIL

Mobile +267 74476040
___
spamdyke-users mailing list
spamdyke-users@spamdyke.org
http://www.spamdyke.org/mailman/listinfo/spamdyke-users