Solved

Timeout from SMTP on HP-UX

Posted on 1998-09-28
7
626 Views
Last Modified: 2013-12-06
I am using the SMTP on HP-UX 10.10 as my email gateway for sending out emails. Currently, there are 20 clients using outlook express on win95 for emailing. There is also a router with 64Kbps link for WAN connection. Recently, I have experience timeout message from SMTP and the email cannot be sent out. I have set the timeout interval on the
Outlook express from 1 min to 2 mins. But the same message still occur. Please advise me on how to troubleshoot this problem?
0
Comment
Question by:Megahertz
  • 4
  • 3
7 Comments
 
LVL 2

Accepted Solution

by:
blowfish earned 100 total points
ID: 2007134
The timeout message is being sent from the SMTP (sendmail) daemon running on your HP-UX mailserver.  Changing time settings on Outlook will not help.  

Timeouts will occur if sendmail cannot connect to the SMTP port (25) on a remote system to deliver/forward a message.  When the  sendmail daemon time's out, it will leave the undeliverd message on the message queue (/var/spool/mqueue), and attempt to deliver it every 30 minutes for the next 5 days.  

Time-outs can occur for several reasons, such as; a network link is down, the remote host is down, or the SMTP daemon on the remote system is not running.  

If a message cannot be delivered for 4 hours, sendmail will send a warning message to the sender (Outlook user).  If a message cannot be sent for 5 days, sendmail will send a delivery failure notification to the sender (Outlook user).  This is sendmail's default behaviour, but that can be changed.  

If the warning messages are alarming your users, and you wish to disable them, then do the following on your HP-UX mailserver;

  1.  login as root

  2.  change to the mail configuration directory, and make a backup copy of the sendmail configuration file
  #  cd /etc/mail
  #  cp sendmail.cf sendmail.cf.BAK

  3.  edit the sendmail.cf file and find the following lines;
  O Timeout.queuereturn=5d
  O Timeout.queuewarn=4h

  4.  you can stop the warning messages by commenting the queuewarn line like so;

  #O Timeout.queuewarn=4h

  5.  You should not comment the queuereturn line, but you could change the time delay if you wish.  

  6.  save the file

To activate your changes you will need to stop and then start the sendmail daemon.  Do it like this;

  #  /sbin/rc2.d/S540sendmail stop
  #  /sbin/rc2.d/S540sendmail start

Hope this helps,

--frankf


0
 

Author Comment

by:Megahertz
ID: 2007135
Hello Blowfish,

Thank you for your rely.
I could not find the Timeout.queuereturn= in my sendmail.cf file.
I could only find the #return time
 The version of UNIX I am running is HP-UX 10.10.
0
 

Author Comment

by:Megahertz
ID: 2007136
cont'd
it is under the <Localizable Options> as follow:
#return time
0r5m

Is this the same as Timeout.queuereturn= option that you have mentioned.

TIA
0
Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

 
LVL 2

Expert Comment

by:blowfish
ID: 2007137
Most of my experience with Sendmail is with the Solaris version by Sun, and with the Berkely version 8.x.  The only HP-UX systems I have access to identify themselves as "HP-UX B.10.20".  The sendmail running there is (berkely) "Version 8.7.5".  

To determine your sendmail version, type the following at the command prompt (you do not need to be root for this);  

  #  /usr/lib/sendmail -d0.9 < /dev/null

I am not familiar with the lines that you have posted in your previous comment.  If you wish, you can send me a copy of your sendmail.cf via e-mail, and I'll see if I can provide any further suggestions.  You'll find my e-mail address under my profile.  

--frankf
0
 
LVL 2

Expert Comment

by:blowfish
ID: 2007138
In your original question you state that you are experiencing timeout messages from SMTP.  Where are you getting these timeout messages, and what do they look like?  


0
 

Author Comment

by:Megahertz
ID: 2007139
Hello Blowfish,

I will do the testing this weekend and let you know the outcome.
And also not to forget to you the credit.

Cheers,
MegaHertz
0
 

Author Comment

by:Megahertz
ID: 2007140
Hello Blowfish,

So far it works fine.
:>

Thanks,
megahertz
0

Featured Post

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Let's say you need to move the data of a file system from one partition to another. This generally involves dismounting the file system, backing it up to tapes, and restoring it to a new partition. You may also copy the file system from one place to…
Every server (virtual or physical) needs a console: and the console can be provided through hardware directly connected, software for remote connections, local connections, through a KVM, etc. This document explains the different types of consol…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:

831 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question