Dale:

Although your remote concurrency DOES appear to be a problem, I do not
believe this is the problem encountered by the netscape user.

If you have extended periods of time during which you have 20/20 connections
used, by all means, raise the remote concurrency limit.  I keep mine at 120,
and the only time its reached that was intermittently and very briefly while
clearing a 3 day mail backup.

So, I used what you said and looked at the source of netscape.  That error
text is NS_SENDING_FROM_ERROR_COMMAND - and is only called when 

A. MAIL From: command has been sent 
and
B. a 250 response code is not returned

According to the qmail-smtpd source, when you send a mail command this is
run:

void smtp_mail(arg) char *arg;
{
  if (!addrparse(arg)) { err_syntax(); return; }
  flagbarf = bmfcheck();
  seenmail = 1;
  if (!stralloc_copys(&rcptto,"")) die_nomem();
  if (!stralloc_copys(&mailfrom,addr.s)) die_nomem();
  if (!stralloc_0(&mailfrom)) die_nomem();
  out("250 ok\r\n");
}

I checked - of bmfcheck and addrparse and err_syntax, die_nomem only
err_syntax and die_nomem can return something to the user, and that is 

void err_syntax() { out("555 syntax error (#5.5.4)\r\n"); }

and 

void die_nomem() { out("421 out of memory (#4.3.0)\r\n"); flush(); _exit(1);
}

Neither of which have anything to do with 4.7.1 - which isn't a defined
error code in any of the qmail programs.

SO - My conclusion is that the system *MUST* be talking to some other
service, than qmail-smtpd, or it would say something more like "syntax error
(#5.5.4)" or "out of memory (#4.3.0)", rather than just "4.7.1".

Troubleshoot the client's settings and the IP path.  Maybe its trading off
to different smtp servers?  Maybe the dns or IP he's going to maps to more
than one server?

Of course, my source analysis may be flawed, and I invite all to look it
over.

Netscape source: http://lxr.mozilla.org/seamonkey/search

David (who is having more fun that he probably is allowed to.)

 
> -----Original Message-----
> From: Dale Miracle [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, August 16, 2000 2:24 PM
> To: Ihnen, David
> Cc: qmail list
> Subject: Re: 4.7.1 error reported to netscape mail client
> 
> 
> "Ihnen, David" wrote:
> > Ben, that doesn't make sense.
> > 
> > First of all, from man qmail-control
> > 
> >               concurrencylocal    10                 qmail-send
> >               concurrencyremote   20                 qmail-send
> > 
> > these files are controlled by qmail-send
> > 
> > Secondly, concurrency of qmail-smtpd is configured by
> > whatever-the-hay-starts-qmail-smtpd, in my system that's 
> tcpserver.  From
> > tcpserver's man page:
> > 
> > OPTIONS
> >        -climit
> >               Do  not handle more than limit simultaneous connec�
> >               tions.  If there are limit simultaneous  copies  of
> >               program  running, defer acceptance of a new connec�
> >               tion until one copy finishes.  limit must be a pos�
> >               itive integer.  Default: 40.
> > 
> > So I try to look up the error code in netscape.  From the 
> source online I
> > found these POP3 codes, below.  Dale - can you identify 
> which error message
> > it is?  From that we can track down when its generated, and 
> see why it might
> > be generated.
> > 
> > David
> > 
> > 473 /* #define MK_POP3_SERVER_ERROR            -311  
> generic pop3 error code
> > */
> 
> When the user is trying to send mail he gets this error in a regular
> windows type dialog box in netscape "mail server responded 
> 4.7.1 please
> try again later.  Please verify that your email address is correct in
> your mail preferences and try again".  He waits a little 
> while and tries
> again and it will go through fine.  Could you post the smtp error
> codes?  
> From what I was able to gather is this.  I have noticed that the
> concurrencyremote in my log is at 20 quite a bit.  You would see
> deliveries like 20/20, 20/20, 20/20, 19/20, 20,20, 20,20 
> 19,20  it seems
> like when it delivers a message it gets another one to deliver. 
> Depending on the back log it could take a couple hours to get 
> the count
> below 20.  I compared the times that he couldn't send and found that
> Tcpserver is logging his ip and connection but qmail-smtpd deffers his
> connection apparently because I never see a message injected at that
> time/date.  I also noticed that it has been in between times 
> where there
> is a heavy back log of mail (where the concurrency for remote 
> was 20/20
> for an extended period of time) which meant his mail wasn't accepted
> because it was already at 20 connections.  I have seen in the 
> log where
> the delivery numbers ( I made sure they were the same e-mail, saw that
> qmail will reuse deliver numbers) are back quite a bit.  For example
> messages 504 to 517 are injected mean while delivery 483 was just
> completed....so there is a back log of 30 some messages.
> 
> I am going to get qmail-mrtg and see what it says about my maillog
> hopefully in more detail that I can do with grep and joe 
> (wordstar like
> editor for unix) vi just got to annoying to me but works in a pinch.
>                               Thanks,
> -- 
> 
> Dale Miracle
> System Administrator
> Teoi Virtual Web Hosting
> 

Reply via email to