Simpler Navigation for Servers and Operating Systems - Please Update Your Bookmarks
Completed: a much simpler Servers and Operating Systems section of the Community. We combined many of the older boards, so you won't have to click through so many levels to get at the information you need. Check the consolidated boards here as many sub-forums are now single boards.
If you have bookmarked forums or discussion boards in Servers and Operating Systems, we suggest you check and update them as needed.
cancel
Showing results for 
Search instead for 
Did you mean: 

Sendmail delay

Sendmail delay

Attached is copy of mail.log. I would like to find out why there was an 1.30 hr delay in delivering mail to recipient??
16 REPLIES
someone_4
Honored Contributor

Re: Sendmail delay

Like I posed in your other post

Are your emails sitting in the mail queue?
run
#mailq
if you have allot of messages in your mailq
then run
#sendmail -q -v
this will clear out your messages.

in my /etc/mail/sendmail.cf
I have this set for 5 minutes.

# minimum time in queue before retry
O MinQueueAge=15m

MinQueueAge=age
[no short name] Don't process any queued jobs that have been in the queue less than the indicated time interval. This is intended to allow you to get responsiveness by processing the queue fairly frequently without thrashing your system by trying jobs too often. The default units are minutes


and about posting messages in the wrong place. They are pretty good about catching them and putting them in the right section.

Richard
Clemens van Everdingen
Honored Contributor

Re: Sendmail delay

Like posted in other thread:

Hi,

Has the load of your system been very high between this time ?
Sendmail stops working if the load is above some point.
This is somewhere in the sendmail.cf file.

C.
The computer is a great invention, there are as many mistakes as ever, but they are nobody's fault !

Re: Sendmail delay

Richard, we use sendmail to notify us when we system shuts down and rebooted (scheduled every Sun night) thru email paging (myairmail.com). Everything was working fine until we had to move to (myairmail.com) from (airtouch.com). That's when things started to slow and page out of sequence. Hence the mail.log. We don't send any local emails on unix side unless it's a sysadmin nature, therefore not a lot gets queued. Sendmail.cf file is commented on MinQueAge.

Re: Sendmail delay

Clemens, this email page is supposed to transmit after a system reboot. Not a lot happening during startup.
someone_4
Honored Contributor

Re: Sendmail delay

what does

nslookup airtouch.com
come up with?
and what happends if you send an email to a user on airtouch.com??

echo test | sendmail -v whoever@airtouch.com

richard

Re: Sendmail delay

Richard, we have to send to myairmail.com now. airtouch.com was bought by myairmail.com.

nslookup returns
myairmail.com
168.201.2.217

Mail works thru myairmail.com, it just sometimes takes it a while to process. As I said before, only sysadmin stuff gets mailed to our text pagers by email.
someone_4
Honored Contributor

Re: Sendmail delay

When you do

echo test | sendmail -v whoever@myairmail.com

does it say something like message queued for future delivery?

Is mail delayed when you try to send from other email services besides the one on your unix server?

Richard

Re: Sendmail delay

Richard, yes it does.

Name server timeout
Transient parse error -- message queued for future delivery
queued
someone_4
Honored Contributor

Re: Sendmail delay

Do you have your dns servers in /etc/resolv.conf ?
and in /etc/nsswitch.conf do you have dns for hosts?

Richard
someone_4
Honored Contributor

Re: Sendmail delay

You also said that

nslookup returns
myairmail.com
168.201.2.217

can you ping myairmail.com
or can you ping 168.201.2.217

Richard

Re: Sendmail delay

Attached are copies of the files.
someone_4
Honored Contributor

Re: Sendmail delay

Try commenting your line out:

#hosts: files [NOTFOUND=continue UNAVAIL=continue] dns [NOTFOUND=return UNAVAIL=continue TRYAGAIN=return

and make it look like this:

hosts: files [NOTFOUND=continue TRYAGAIN=continue] dns

Richard

Re: Sendmail delay

Richard, thanks for all your input. Looks like we are trying to send to myairmail.com from UNIX instead of our MS-Exchange system. I'll change the "smart relay" to point to Exchange and run test.
someone_4
Honored Contributor

Re: Sendmail delay

Hey Curtis
Let us know what happends. And dont foget to restart sendmail after your turn on your smart relay.
/sbin/init.d/sendmail stop
/sbin/init.d/sendmail start
And make sure you can resolve to your exchange server. The DS takes ip or hostname too.

Richard
someone_4
Honored Contributor

Re: Sendmail delay

Hey Curtuis
Did everything work out for you?

Richard

Re: Sendmail delay

Had to call HP Support to finally fix problem... Changed my resolv.conf to search domain. Changed nsswitch.conf to search files then dns. And finally changed sendmail.cf DS macro to the fully qualified domain name of the relay server. I think this is were all problems originated. It had only the short name. Now everything is working great! Thanks for your help.