RE: SMTP doesn't respond

2001-05-30 Thread Alexander Jernejcic

hi again,
Mark Douglas wrote:

>As per your e-mail, I tried switching -p to -P (which as I understand, is
NON-paranoid mode) >and it didn't help. I also removed the -p option
altogether, it didn't help either.

sorry - seems that i barked the wrong tree.

:) alexander




RE: SMTP doesn't respond

2001-05-30 Thread Dave Sill

Mark Douglas <[EMAIL PROTECTED]> wrote:

>QMAILDUID=`/usr/xpg4/bin/id -u qmaild`
>NOFILESGID=`/usr/xpg4/bin/id -g qmaild`

You're using Solaris?

-Dave



Re: SMTP doesn't respond

2001-05-30 Thread Charles Cazabon

Mark Douglas <[EMAIL PROTECTED]> wrote:
> 
> #!/bin/sh
> QMAILDUID=`/usr/xpg4/bin/id -u qmaild`
> NOFILESGID=`/usr/xpg4/bin/id -g qmaild`
> MAXSMTPD=`cat /var/qmail/control/concurrencyincoming`
> exec /usr/local/bin/softlimit -m 400 \
> /usr/local/bin/tcpserver -R -H -v -p -x /etc/tcp.smtp.cdb -c "$MAXSMTPD"

I think you were right in the 0/0 thing.  What are the contents of
/var/qmail/control/concurrencyincoming?  What is the ownership and the
permissions on that file?  If you replace "$MAXSMTPD" above with 40 (or
whatever) and restart that service, it may start working for you.

You might also want to use "-H -R -l hostname" options if you think there are
any DNS issues involved.  Your use of -H and -p together above doesn't seem to
make sense to me.  They're contradictory.

Charles
-- 
---
Charles Cazabon<[EMAIL PROTECTED]>
GPL'ed software available at:  http://www.qcc.sk.ca/~charlesc/software/
Any opinions expressed are just that -- my opinions.
---



RE: SMTP doesn't respond

2001-05-30 Thread Mark Douglas
Title: RE: SMTP doesn't respond





SWEET! That was it, THANK YOU VERY MUCH!


Posting this back to the list so people know what my problem was. I had an empty concurrencyincoming file.


-Original Message-
From: Greg White [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, May 30, 2001 14:00
To: Mark Douglas
Subject: Re: SMTP doesn't respond



On Wed, May 30, 2001 at 01:29:36PM -0400, Mark Douglas wrote:
> No error messages in either of the logs.
> 
> Here is the content of the run file for smptd:
> 
> #!/bin/sh
> QMAILDUID=`/usr/xpg4/bin/id -u qmaild`
> NOFILESGID=`/usr/xpg4/bin/id -g qmaild`
> MAXSMTPD=`cat /var/qmail/control/concurrencyincoming`
> exec /usr/local/bin/softlimit -m 400 \
> /usr/local/bin/tcpserver -R -H -v -p -x /etc/tcp.smtp.cdb -c "$MAXSMTPD"
> \
> -u "$QMAILDUID" -g "$NOFILESGID" 0 smtp /var/qmail/bin/qmail-smtpd
> 2>&1
> 
> Thanks for all the help!



Please see my later message to the list -- I'm sending this direct to
save some time. This script is definitely LWQ. I think maybe /bin is not
in your PATH for the script, or /var/qmail/control/concurrencyincoming
is empty or '0'. If concurrencyincoming has '40' in it, try fully
qualifying the path to 'cat' in the script -- like '/bin/cat' or
'/usr/bin/cat', whichever is appropriate for your machine. If I'm
correct, please feel free to quote any or all of this message to the
list... I checked your earlier message, and qmail-showctl and this
script seem to agree that 'concurrencyincoming' is the right file -- I
can't count the number of times I couldn't figure out what was up when I
got zero connections with '40' in /var/qmail/control/concurencyincoming
;) (Look closely at that filename) ;)


HTH,


--
GW





RE: SMTP doesn't respond

2001-05-30 Thread Mark Douglas
Title: RE: SMTP doesn't respond





I'm not very familiar with tcpserver options. I tried adding the -R and -H as a suggestion from somebody else. As per your e-mail, I tried switching -p to -P (which as I understand, is NON-paranoid mode) and it didn't help. I also removed the -p option altogether, it didn't help either.

Anyone have further suggestions?


-Original Message-
From: Alexander Jernejcic [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, May 30, 2001 14:27
To: Mark Douglas; [EMAIL PROTECTED]
Subject: RE: SMTP doesn't respond



hi,
Mark Douglas wrote:


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


there is some mixture in the options i am not able to understand:
with -H and -R you are telling tcpserver not to optain TCPREMOTE and
to do no reverse lookup. on the other hand you tell it to be paranoid -p
and check up ip and hostname.
i am confused about that, maybe tcpserver too?


hope that helps
alexander





RE: SMTP doesn't respond

2001-05-30 Thread Alexander Jernejcic

hi,
Mark Douglas wrote:

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

there is some mixture in the options i am not able to understand:
with -H and -R you are telling tcpserver not to optain TCPREMOTE and
to do no reverse lookup. on the other hand you tell it to be paranoid -p
and check up ip and hostname.
i am confused about that, maybe tcpserver too?

hope that helps
alexander




Re: SMTP doesn't respond

2001-05-30 Thread Greg White

On Wed, May 30, 2001 at 11:17:39AM -0600, Charles Cazabon wrote:
> Mark Douglas <[EMAIL PROTECTED]> wrote:
> > from /var/log/qmail/smtpd/current
> > 
> > @40003b1518da3494b75c tcpserver: status: 0/0
> 
> And that is indeed the log from qmail-smtpd (well, from its tcpserver
> instance, anyway).  Were there any error messages in this log?
> 

Isn't that tcpserver status line an error of sorts? It seems to state
that tcpserver is running zero out of a possible zero instances of the
child process The setup looks very LWQish, so the relevant scripts
are likely in /var/qmail/supervise/qmail-smtpd or somesuch. Please,
Mark, post the contents of /var/qmail/supervise/qmail-smtpd/run.
(or whichever 'run' file is actually appropriate


-- 
Greg White
Those who make peaceful revolution impossible will make violent
revolution inevitable.
-- John F. Kennedy



RE: SMTP doesn't respond

2001-05-30 Thread Mark Douglas
Title: RE: SMTP doesn't respond





No error messages in either of the logs.


Here is the content of the run file for smptd:


#!/bin/sh
QMAILDUID=`/usr/xpg4/bin/id -u qmaild`
NOFILESGID=`/usr/xpg4/bin/id -g qmaild`
MAXSMTPD=`cat /var/qmail/control/concurrencyincoming`
exec /usr/local/bin/softlimit -m 400 \
    /usr/local/bin/tcpserver -R -H -v -p -x /etc/tcp.smtp.cdb -c "$MAXSMTPD" \
    -u "$QMAILDUID" -g "$NOFILESGID" 0 smtp /var/qmail/bin/qmail-smtpd 2>&1


Thanks for all the help!


Mark


-Original Message-
From: Charles Cazabon [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, May 30, 2001 13:18
To: '[EMAIL PROTECTED]'
Subject: Re: SMTP doesn't respond



Mark Douglas <[EMAIL PROTECTED]> wrote:
> > > The qmail server is setup with the same name as the DNS entry for the
> > > routable ip. As qmail runs on DNS entries, I would assume   this would
> > > make everything ok. It doesn't. When I telnet to the localhost on  port
> > > 25, I get a connection and it just sits there. No response, ever.


> > This looks good (thanks for including it).  What would help would be a
> > copy of  the script you're using to start qmail-smtpd.


> Here is the script I'm using (straight out of "Life with Qmail"):
[...] 
> echo -n "Starting qmail: svscan"
> cd /var/qmail/supervise
> nohup env - PATH="$PATH" svscan &
> echo $! > /var/run/svscan.pid
> echo "."
> ;;


Okay.  This script starts svscan.  svscan will run another set of scripts to
actually start the various qmail services.  You'll have a service directory
(probably /service, but possibly elsewhere) containing symlinks to other
directories.  Look for one called "smtpd" or "qmail-smtpd".  Inside that
directory will be a script named "run".  We now need the contents of that
script.


> I haven't gotten a handle on qmail logging yet. Where are the log files
> stored? I look at /var/log/qmail and the files that are there contain these
> lines:
> 
> from /var/log/qmail/current
> 
> @40003b1518da292b19c4 status: local 0/10 remote 0/20


Yes, that's one line from the logs of qmail-send (the main qmail process,
which actually is responsible for the delivery of messages).


> from /var/log/qmail/smtpd/current
> 
> @40003b1518da3494b75c tcpserver: status: 0/0


And that is indeed the log from qmail-smtpd (well, from its tcpserver
instance, anyway).  Were there any error messages in this log?


Charles
-- 
---
Charles Cazabon    <[EMAIL PROTECTED]>
GPL'ed software available at:  http://www.qcc.sk.ca/~charlesc/software/
Any opinions expressed are just that -- my opinions.
---





Re: SMTP doesn't respond

2001-05-30 Thread Charles Cazabon

Mark Douglas <[EMAIL PROTECTED]> wrote:
> > > The qmail server is setup with the same name as the DNS entry for the
> > > routable ip. As qmail runs on DNS entries, I would assume   this would
> > > make everything ok. It doesn't. When I telnet to the localhost on  port
> > > 25, I get a connection and it just sits there. No response, ever.

> > This looks good (thanks for including it).  What would help would be a
> > copy of  the script you're using to start qmail-smtpd.

> Here is the script I'm using (straight out of "Life with Qmail"):
[...] 
> echo -n "Starting qmail: svscan"
> cd /var/qmail/supervise
> nohup env - PATH="$PATH" svscan &
> echo $! > /var/run/svscan.pid
> echo "."
> ;;

Okay.  This script starts svscan.  svscan will run another set of scripts to
actually start the various qmail services.  You'll have a service directory
(probably /service, but possibly elsewhere) containing symlinks to other
directories.  Look for one called "smtpd" or "qmail-smtpd".  Inside that
directory will be a script named "run".  We now need the contents of that
script.

> I haven't gotten a handle on qmail logging yet. Where are the log files
> stored? I look at /var/log/qmail and the files that are there contain these
> lines:
> 
> from /var/log/qmail/current
> 
> @40003b1518da292b19c4 status: local 0/10 remote 0/20

Yes, that's one line from the logs of qmail-send (the main qmail process,
which actually is responsible for the delivery of messages).

> from /var/log/qmail/smtpd/current
> 
> @40003b1518da3494b75c tcpserver: status: 0/0

And that is indeed the log from qmail-smtpd (well, from its tcpserver
instance, anyway).  Were there any error messages in this log?

Charles
-- 
---
Charles Cazabon<[EMAIL PROTECTED]>
GPL'ed software available at:  http://www.qcc.sk.ca/~charlesc/software/
Any opinions expressed are just that -- my opinions.
---



RE: SMTP doesn't respond

2001-05-30 Thread Mark Douglas
Title: RE: SMTP doesn't respond





Here is the script I'm using (straight out of "Life with Qmail"):


#!/bin/sh


PATH=/var/qmail/bin:/usr/local/bin:/usr/bin:/bin
export PATH


case "$1" in
  start)
    echo -n "Starting qmail: svscan"
    cd /var/qmail/supervise
    nohup env - PATH="$PATH" svscan &
    echo $! > /var/run/svscan.pid
    echo "."
    ;;
  stop)
    echo -n "Stopping qmail: svscan"
    kill `cat /var/run/svscan.pid`
    echo -n " qmail"
    svc -dx /var/qmail/supervise/*
    echo -n " logging"
    svc -dx /var/qmail/supervise/*/log
    echo "."
    ;;
  stat)
    cd /var/qmail/supervise
    svstat * */log
    ;;
  doqueue|alrm)
    echo "Sending ALRM signal to qmail-send."
    svc -a /var/qmail/supervise/qmail-send
    ;;
  queue)
    qmail-qstat
    qmail-qread
    ;;
  reload|hup)
    echo "Sending HUP signal to qmail-send."
    svc -h /var/qmail/supervise/qmail-send
    ;;
  pause)
    echo "Pausing qmail-send"
    svc -p /var/qmail/supervise/qmail-send
    echo "Pausing qmail-smtpd"
    svc -p /var/qmail/supervise/qmail-smtpd
    ;;
  cont)
    echo "Continuing qmail-send"
    svc -c /var/qmail/supervise/qmail-send
    echo "Continuing qmail-smtpd"
    svc -c /var/qmail/supervise/qmail-smtpd
    ;;
  restart)
    echo "Restarting qmail:"
    echo "* Stopping qmail-smtpd."
    svc -d /var/qmail/supervise/qmail-smtpd
    echo "* Sending qmail-send SIGTERM and restarting."
    svc -t /var/qmail/supervise/qmail-send
    echo "* Restarting qmail-smtpd."
    svc -u /var/qmail/supervise/qmail-smtpd
    ;;
  cdb)
    tcprules /etc/tcp.smtp.cdb /etc/tcp.smtp.tmp < /etc/tcp.smtp
    chmod 644 /etc/tcp.smtp*
    echo "Reloaded /etc/tcp.smtp."
    ;;
  help)
    cat <
   stop -- stops mail service (smtp connections refused, nothing goes out)
  start -- starts mail service (smtp connection accepted, mail can go out)
  pause -- temporarily stops mail service (connections accepted, nothing leaves
   cont -- continues paused mail service
   stat -- displays status of mail service
    cdb -- rebuild the tcpserver cdb file for smtp
restart -- stops and restarts smtp, sends qmail-send a TERM & restarts it
doqueue -- sends qmail-send ALRM, scheduling queued messages for delivery
 reload -- sends qmail-send HUP, rereading locals and virtualdomains
  queue -- shows status of queue
   alrm -- same as doqueue
    hup -- same as reload
HELP
    ;;
  *)
    echo "Usage: $0 {start|stop|restart|doqueue|reload|stat|pause|cont|cdb|queu
|help}"
    exit 1
    ;;
esac


exit 0


I haven't gotten a handle on qmail logging yet. Where are the log files stored? I look at /var/log/qmail and the files that are there contain these lines:

from /var/log/qmail/current


@40003b1518da292b19c4 status: local 0/10 remote 0/20


from /var/log/qmail/smtpd/current


@40003b1518da3494b75c tcpserver: status: 0/0


I don't think there is a load balancer problem with SMTP, as there is another mail server running sendmail right beside this one. It's just that it was setup by somebody else, who no longer works here, and I'm much more a fan of qmail than I am of sendmail, so we're moving forward with qmail installs now.

If I can provide any further information to you, please let me know.


Thanks,


Mark


-Original Message-
From: Charles Cazabon [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, May 30, 2001 12:19
To: '[EMAIL PROTECTED]'
Subject: Re: SMTP doesn't respond



Mark Douglas <[EMAIL PROTECTED]> wrote:
> 
> The server is using a private ip address (192.168.x.x) behind a load
> balancer. The load balancer runs NAT so the server can send data out. The
> load balancer also contains a routable ip address, for which, all traffic
> passes back to the private ip. There is a DNS entry for the routable ip, but
> not for the private ip.


This could be part of the problem.


> The qmail server is setup with the same name as the
> DNS entry for the routable ip. As qmail runs on DNS entries, I would assume
> this would make everything ok. It doesn't. When I telnet to the localhost on
> port 25, I get a connection and it just sits there. No response, ever.


Ever?  Or not in the first 60 seconds?  Or what?


> Below is the output of qmail-showctl just to make sure I haven't done
> anything wrong. Any suggestions?


This looks good (thanks for including it).  What would help would be a copy of
the script you're using to start qmail-smtpd.  tcpserver may be trying a
reverse lookup on your IP address and timing out, as well as some other DNS
lookups which happen.  They can all be fixed with changes to your qmail-smtpd
script.


Also, are any error messages ending up in the qmail-smtpd log?  Does outgoi

Re: SMTP doesn't respond

2001-05-30 Thread Charles Cazabon

Mark Douglas <[EMAIL PROTECTED]> wrote:
> 
> The server is using a private ip address (192.168.x.x) behind a load
> balancer. The load balancer runs NAT so the server can send data out. The
> load balancer also contains a routable ip address, for which, all traffic
> passes back to the private ip. There is a DNS entry for the routable ip, but
> not for the private ip.

This could be part of the problem.

> The qmail server is setup with the same name as the
> DNS entry for the routable ip. As qmail runs on DNS entries, I would assume
> this would make everything ok. It doesn't. When I telnet to the localhost on
> port 25, I get a connection and it just sits there. No response, ever.

Ever?  Or not in the first 60 seconds?  Or what?

> Below is the output of qmail-showctl just to make sure I haven't done
> anything wrong. Any suggestions?

This looks good (thanks for including it).  What would help would be a copy of
the script you're using to start qmail-smtpd.  tcpserver may be trying a
reverse lookup on your IP address and timing out, as well as some other DNS
lookups which happen.  They can all be fixed with changes to your qmail-smtpd
script.

Also, are any error messages ending up in the qmail-smtpd log?  Does outgoing
mail work?  Are there errors in the main qmail log?

I've tried to telnet to the SMTP port myself (thanks for using real DNS
information and not obscuring it), and you seem to be correct -- I've got a
connection, but not the welcome banner, even after several minutes.  If it's a
problem with your qmail-smtpd script, there should be errors in the log from
the tcpserver instance for it.  Another possibility, I suppose, is that the
load balancer is somehow broken in regards to SMTP?

Charles
-- 
---
Charles Cazabon<[EMAIL PROTECTED]>
GPL'ed software available at:  http://www.qcc.sk.ca/~charlesc/software/
Any opinions expressed are just that -- my opinions.
---



SMTP doesn't respond

2001-05-30 Thread Mark Douglas
Title: SMTP doesn't respond





Hi,


I've read up a little on this, but couldn't search the archives (maybe the server is down?) for any more information. Anyway, from my understanding, if the qmail server can't resolve it's DNS entry, it will have problems with SMTP, and I believe that to be the problem. However, I haven't been able to find a resolution for my situation. Here's how things are configured in my environment:

The server is using a private ip address (192.168.x.x) behind a load balancer. The load balancer runs NAT so the server can send data out. The load balancer also contains a routable ip address, for which, all traffic passes back to the private ip. There is a DNS entry for the routable ip, but not for the private ip. The qmail server is setup with the same name as the DNS entry for the routable ip. As qmail runs on DNS entries, I would assume this would make everything ok. It doesn't. When I telnet to the localhost on port 25, I get a connection and it just sits there. No response, ever. Below is the output of qmail-showctl just to make sure I haven't done anything wrong. Any suggestions?

qmail home directory: /var/qmail.
user-ext delimiter: -.
paternalism (in decimal): 2.
silent concurrency limit: 120.
subdirectory split: 23.
user ids: 101, 102, 103, 0, 104, 105, 106, 107.
group ids: 100, 101.


badmailfrom: (Default.) Any MAIL FROM is allowed.


bouncefrom: (Default.) Bounce user name is MAILER-DAEMON.


bouncehost: (Default.) Bounce host name is slgpmail1.sl.ca.


concurrencylocal: (Default.) Local concurrency is 10.


concurrencyremote: (Default.) Remote concurrency is 20.


databytes: (Default.) SMTP DATA limit is 0 bytes.


defaultdomain: Default domain name is sl.ca.


defaulthost: (Default.) Default host name is slgpmail1.sl.ca.


doublebouncehost: (Default.) 2B recipient host: slgpmail1.sl.ca.


doublebounceto: (Default.) 2B recipient user: postmaster.


envnoathost: (Default.) Presumed domain name is slgpmail1.sl.ca.


helohost: (Default.) SMTP client HELO host name is slgpmail1.sl.ca.


idhost: (Default.) Message-ID host name is slgpmail1.sl.ca.


localiphost: (Default.) Local IP address becomes slgpmail1.sl.ca.


locals:
Messages for slgpmail1.sl.ca are delivered locally.


me: My name is slgpmail1.sl.ca.


percenthack: (Default.) The percent hack is not allowed.


plusdomain: Plus domain name is sl.ca.


qmqpservers: (Default.) No QMQP servers.


queuelifetime: (Default.) Message lifetime in the queue is 604800 seconds.


rcpthosts:
SMTP clients may send messages to recipients at slgpmail1.sl.ca.


morercpthosts: (Default.) No effect.


morercpthosts.cdb: (Default.) No effect.


smtpgreeting: (Default.) SMTP greeting: 220 slgpmail1.sl.ca.


smtproutes: (Default.) No artificial SMTP routes.


timeoutconnect: (Default.) SMTP client connection timeout is 60 seconds.


timeoutremote: (Default.) SMTP client data timeout is 1200 seconds.


timeoutsmtpd: (Default.) SMTP server data timeout is 1200 seconds.


virtualdomains: (Default.) No virtual domains.


defaultdelivery: I have no idea what this file does.


concurrencyincoming: I have no idea what this file does.


Thanks,


Mark Douglas - Architecture
Sympatico-Lycos Inc.
All your base are belong to us! Make your time!