Operating System - HP-UX
1830468 Members
2544 Online
110005 Solutions
New Discussion

sendmail does'nt work anymore

 
A.K.
Frequent Advisor

sendmail does'nt work anymore

Suddenly the sendmail on my N4000 with HPUX 11.00 does not working anymore or didn???t work for a while.
In /var/adm/mail.log the last records I got are from Dec 2002
The send mail Version 8.9.3
My sendmail.cf configured thru DS mail relay to the network mail server
When I telnet the network mail server thru port 25
root@xxx:/root>telnet .com 25
Trying...
Connected to xxxxxx.com
Escape character is '^]'.
220 Mail ESMTP Server Ready at Wed, 19 Mar 2003 12:55:21 -0500 (EST)
I guess this mean that it is not firewall issue right?
I noticed that when I try to sent email thru mailx they got stuck in mailq .
and mail.log file don???t get updated .
I know from past experience that when there is some problems in sending the emails the mail.log file will have a record on that
BTW I tried start/stop the sendmail daemon,
Anyone have an idea?
Thanks,
9 REPLIES 9
John Dvorchak
Honored Contributor

Re: sendmail does'nt work anymore

Have you tried stopping and starting sendmail then looking in /var/adm/syslog/mail.log for any kind of hint.
If it has wheels or a skirt, you can't afford it.
A.K.
Frequent Advisor

Re: sendmail does'nt work anymore

yes I did,there is nothing new in the log.
David Bell_1
Honored Contributor

Re: sendmail does'nt work anymore

From your host, try

sendmail -v
TESTING!!
.


That should show you what it's doing to send the mail message.

Hope that Helps,

Dave
A.K.
Frequent Advisor

Re: sendmail does'nt work anymore

Hi again,
this is what I got
xxxx.com: Name server timeout
my_name@my_domain... Transient parse error -- message queued for future delivery

Uday_S_Ankolekar
Honored Contributor

Re: sendmail does'nt work anymore

First stop and restart the sendmail by ,

/sbin/sinit.d/sendmail stop and /sbin/init.d/sendmail start

Secondly see if your server resolves the your mail server by it dns name , use nslookup command

-USA..

Good Luck..
Steven E. Protter
Exalted Contributor

Re: sendmail does'nt work anymore

/usr/sbin/sendmail -v -d8.99 -d38.99 name@somenetwork.net

Run this command, adjusting for the target address.

Type in a line, hit enter
.
enter

This will give you pretty good diagnostics.

Past experience tells me there was a change in the DNS/Network environoment.

check /etc/resolv.conf
/etc/nsswitch.conf

nslookup important_server

Run and come back with more info if this doesn't lead to resolution.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
A.K.
Frequent Advisor

Re: sendmail does'nt work anymore

The IP address that was mentioned in /etc/resolv.conf was not recognized
I added new route and now the DNS is working correctly
I started the sbin/init.d/sendmail again stop/start
But still nothing, I noticed that in /var/adm/syslog/mail.log there is problem (old problem)

Dec 9 23:23:04 sendmail[4714]: WAA03185: SYSERR(root): Error writing control file tfWAA03185: No space left on device
Dec 9 23:54:04 sendmail[6932]: WAA03185: queueup: cannot create tfWAA03185, uid=0: File exists
Dec 10 00:01:49 sendmail[6932]: WAA03185: SYSERR(root): Error writing
Tom Danzig
Honored Contributor

Re: sendmail does'nt work anymore

Check to make sure /var isn't full. If it is, clean out /var/tmp and whatever else you can.
A.K.
Frequent Advisor

Re: sendmail does'nt work anymore

Hello again,
I checked already that my /var is not full ,it is 83%.
It looked like my log files are stale (syslog.log ,mail.log).
When I issue the following command this is what I got
/usr/sbin/sendmail -v -d8.99 -d38.99 @

root@:/var/adm/syslog>/usr/sbin/sendmail -v -d8.99 -d38.99 @
seq_map_parse(aliases.files, )
map_init(sequence:aliases.files, NULL, 0)
sequence:aliases.files NULL: valid
map_init(implicit:Alias0, /etc/mail/aliases, 0)
wrong pass (pass = 0, rebuildable = 1)
map_init(host:host, NULL, 0)
host:host NULL: valid
map_init(switch:aliases, aliases, 0)
switch_map_open(aliases, aliases, 0)
switch_map_find => 1
files
map_stack[0] = sequence:aliases.files
switch:aliases aliases: valid
map_init(dequote:dequote, NULL, 0)
dequote:dequote NULL: valid
map_init(host:resolve, NULL, 0)
host:resolve NULL: valid
map_init(sequence:aliases.files, NULL, 1)
wrong pass (pass = 1, rebuildable = 0)
map_init(implicit:Alias0, /etc/mail/aliases, 1)
impl_map_open(Alias0, /etc/mail/aliases, 0)
hash_map_open(Alias0, /etc/mail/aliases, 0)
impl_map_lookup(Alias0, @)
db_map_lookup(Alias0, @)
implicit:Alias0 /etc/mail/aliases: valid
map_init(host:host, NULL, 1)
wrong pass (pass = 1, rebuildable = 0)
map_init(switch:aliases, aliases, 1)
wrong pass (pass = 1, rebuildable = 0)
map_init(dequote:dequote, NULL, 1)
wrong pass (pass = 1, rebuildable = 0)
map_init(host:resolve, NULL, 1)
wrong pass (pass = 1, rebuildable = 0)
getcanonname, trying files
text_getcanonname
getcanonname, trying dns
dns_getcanonname(, trymx=1)
dns_getcanonname: trying . (ANY)
YES
dns_getcanonname:
getcanonname(), found
.
getmxrr(, droplocalhost=1)
getmxrr: res_search() failed (errno=0, h_errno=1)
getcanonname(), trying files
text_getcanonname()
getcanonname(), trying dns
dns_getcanonname(, trymx=0)
dns_getcanonname: trying . (ANY)
NO: errno=0, h_errno=1
dns_getcanonname: trying . (ANY)
NO: errno=0, h_errno=1
getcanonname(), failed, stat=68
@... Host unknown (Name server: : host not found)
seq_map_lookup(aliases, root)
seq_map_lookup(aliases.files, root)
impl_map_lookup(Alias0, root)
db_map_lookup(Alias0, root)
root... forward: /root/.forward.+: World writable directory
root... forward: /root/.forward+: World writable directory
root... forward: /root/.forward.: World writable directory
root... forward: /root/.forward: World writable directory
/root/dead.letter... Saved message in /root/dead.letter
closemaps: closing aliases.files (NULL)
closemaps: closing Alias0 (/etc/mail/aliases)
impl_map_close(Alias0, /etc/mail/aliases, 12a3)
db_map_close(Alias0, /etc/mail/aliases, 12a3)
closemaps: closing host (NULL)
closemaps: closing aliases (aliases)
closemaps: closing dequote (NULL)
closemaps: closing resolve (NULL)

In the mailq I get
Mail Queue (1 request)
--Q-ID-- --Size-- -----Q-Time----- ------------Sender/Recipient------------
ABC25478 (no control file)

Please ,anyone has an idea what is the problem ?
Thanks in advance !!!