| Hi , check with below codes. |
!/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" ]; 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 2000000 \ /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 2>&1 Regards, Vilash Jagani --- On Sat, 10/24/09, jagdish bairagi <jbte...@gmail.com> wrote: |
--- On Mon, Oct 26, 2009 at 12:19 PM, jagdish bairagi
<jbte...@gmail.com> wrote:
| ...
| 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
| if
| exec /usr/local/bin/softlimit -m 2000000 \
| /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 2>&1
\--
Where is the condition check for the last "if", and the closing "fi" for it?
SK
--
Shakthi Kannan
http://www.shakthimaan.com
Provide some logs regarding the issue, so someone can help.
Have FuN!
--
Nirmal D Pathak.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
What I want is freedom, not life, nor pleasure, nor good!
FLOSS gives that.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~