> is the qmail-smtpd daemon running ? if yes, what does it do at the time of
> the problem ? how many qmail-smtpd processes are running at the same time
> (try various options with ps command, and/or top)
>
> is it listening on the smtp port ? (try netstat -nap)
>
> is really not responding (try telnet yourmachine on port 25, then begin
> typing smtp protocol commands and see the result)
>
> activate a network trace to try and see whether it's a network problem
> (with tcpdump -w tracefile tcp port 25 or something like that)


   qmail-smtp is running and if we see with netstat smtp port is listening.
   the smtp work properly, but in few days smtp have a problem with a long
time of responding
   and if we restart the mail server the smtp can work with no problem and
the problem come again in 1 day or 2 days.
   it happen again and again , so now i just can do is restart the qmail to
fix the problem.
   i try to fix it, with add -H parameter in qmail-smtp run script because i
guess it have a problem with big queue in server.
  this script i use in smtp-run like this:

#!/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 3000000 \

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

     -u "$QMAILDUID" -g "$NOFILESGID" 0 smtp /var/qmail/bin/qmail-smtpd 2>&1





-- 
redhat-list mailing list
unsubscribe mailto:[EMAIL PROTECTED]
https://www.redhat.com/mailman/listinfo/redhat-list

Reply via email to