[comp.mail.sendmail] MX, mail that gets stuck and deliver.c

tage@staff.cs.uit.no (Tage Stabell-Kuloe) (05/17/91)

I've installed sendmail 5.65b on my HP-UX 7.05 system. Most of the 
time it runs just fine, but from time to time the mail gets stuck.  
When I re-run the queue (or sendmail does it) the mail is sent as usual.

When the mail gets stuck, sendmail writes "Connecting to hostname
(mailer)", and then "stat=Deferred: Invalid argument".  If I have (say) 30
or 40 names in the address, the queue has to be run several times to get
the message sent to every adresee.

The problem (or more corrcet - the point where I don't understand) is here, 
in deliver.c, apx line 860

    st = stab(MxHosts[j], ST_HOST, ST_FIND);
    if (st == NULL || st->s_host.ho_exitstat == EX_OK) {
	if (j > 0)
	    message(Arpa_Info,
		    "Connecting to %s (%s)...",MxHosts[j], m->m_name);

So, my question is, under which circumstances does the "Connected" get's
printed (and the message not delivered) ?


-- 
////      Tage Stabell-Kuloe            |e-mail   : tage@staff.cs.uit.no  ////
///Dept. of Computer Science, University|Official : postmaster@cs.uit.no  ///
//of Tromsoe, N-9000 TROMSOE, NORWAY    |Phone/Fax: +47-83-44052/44580    //
/      "'oe' is '\o{}' in TeX"          |#include : <disclaimer.std>      /

rickert@mp.cs.niu.edu (Neil Rickert) (05/17/91)

In article <1991May16.231509.11210@mack.uit.no> tage@staff.cs.uit.no (Tage Stabell-Kuloe) writes:
>I've installed sendmail 5.65b on my HP-UX 7.05 system. Most of the 
>time it runs just fine, but from time to time the mail gets stuck.  
>When I re-run the queue (or sendmail does it) the mail is sent as usual.
>
>When the mail gets stuck, sendmail writes "Connecting to hostname
>(mailer)", and then "stat=Deferred: Invalid argument".  If I have (say) 30
>or 40 names in the address, the queue has to be run several times to get
>the message sent to every adresee.

 Most likely this is when there is a networking problem.

 The next time that happens, try:  telnet hostname 25

 You will probably find that your telnet session often gets stuck too, after
telnet says you are connected, but before you get the 'Hello' message from
the remote sendmail.

 If this is happening occasionally, and most commonly when connecting to
distant hosts, it is probably something you will just have to put up with.
If it is happening frequently, and on nearby hosts, it may be time to
check out your network and your gateway routers and the various
telecommunication links.

-- 
=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=
  Neil W. Rickert, Computer Science               <rickert@cs.niu.edu>
  Northern Illinois Univ.
  DeKalb, IL 60115                                   +1-815-753-6940