Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Sendmail very slowly - AIX 5.1

Status
Not open for further replies.

okoenning

Instructor
May 24, 2005
5
DE
I installed AIX 5.1 on IBM machine and configured sendmail. If I type sendmail <mail-adress>... and send the mail with "." it takes everytime 2 minutes and then the mail will be send. The old machine (AIX 4.3) don't have the problem. The sendmail.cf file is the same. This parameter I wrote in sendmail.cf:

#DmYourDomainName
Dm<ourDomain>

#Cm $m YourOtherDomainNames
Cwlocalhost

#DSmailer:relayhostname
DSsmtp:<ourRelayhost>

The long time is a big problem, because we use everytime the sendmail program for our workflows.

I hope anybody can help me. Thanks!

Oliver
 
Check your hostname. See everything resolves too, like your server name, and reverse lookup.

This seems to be a DNS issue.
 
Thank you for the answer, but I don't understand what you mean. The hostname is correct an known on our dns server. The aix machine know the dns-server. This will be configure in the file /etc/resolv.conf, or?

nameserver <ip adress from dns-server>
domain <our Domain>

 
send a mail

then during the two minutes "delay", do a

sendmail -bp

and post its output here please.

I had a similar problem, and it was related to DNS queries not providing enough authoritative answers and sendmail trying exhaustively other referred DNS servers until it finally (2min) gives up and uses whatever's available...

HTH,

p5wizard
 
I start sendmail and during the two minutes i type in anothe r console windwos sendmail -bp. After the two minutes I only get the message:

/var/spool/mqueue is empty
 
ok, try and debug using syslogd

edit /etc/syslog.conf - look for mail.debug it is mentioned in a comment how to enable will look like

mail.debug /usr/spool/mqueue/syslog

create empty file /usr/spool/mqueue/syslog:

echo "\c" >>/usr/spool/mqueue/syslog

refresh -s syslogd

send a mail + wait the 2 minutes

and look at the info in your syslogd outputfile. That might give you a clue.

remember to turn off mail.debug in syslog.conf and refresh -s syslogd!

HTH,

p5wizard
 
Here the output:

May 25 07:39:48 dcs1 sendmail[33770]: My unqualified host name (dcs1.) unknown; sleeping for retry
May 25 07:40:48 dcs1 sendmail[33770]: unable to qualify my own domain name (dcs1.) -- using short name
May 25 07:40:48 dcs1 sendmail[33770]: j4P5emH33770: from=caddok, size=5, class=0, nrcpts=1, msgid=<200505250540.j4
P5emH33770@dcs1.>, relay=root@localhost
May 25 07:40:48 dcs1 sendmail[28262]: j4P5emH33770: to=okoenning@olbrich.de, ctladdr=caddok (6010/300), delay=00:0
0:00, xdelay=00:00:00, mailer=smtp, pri=120005, relay=lotusrelay [172.16.128.7], dsn=2.0.0, stat=Sent (Message acc
epted for delivery)


I think this is the problem:
My unqualified host name (dcs1.) unknown; sleeping for retry

The hostname is known on dns server. What is the problem?
 
It works!!!
Thanks for the good help! I make the entry dcs1. in the local hosts file. And know the time is perfect.

Thanks an have a nice day!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top