Operating System - HP-UX
1839965 Members
2544 Online
110157 Solutions
New Discussion

mail daemon not launching ,rexec not working

 
SOLVED
Go to solution
yazgoo
Frequent Advisor

mail daemon not launching ,rexec not working

Hi everyone.
I've just finished installing my HPUX 11.23 (cf http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=1138696),
and two problems are occuring :
- when launching, the mail daemon doesn't starts, it keeps [wait/busy], then I stop that via console.
- then, no way to rexec (via exceed).

For information :
> my inetd seems launched at bootime (before I kill mail) : Internet daemons [OK]
> there is a exec rexecd line in inetd file
> the installtime security level is Sec00tools (but if It is the lowest, where is the problem)

Thanks
Yazgoo
9 REPLIES 9
Steven E. Protter
Exalted Contributor
Solution

Re: mail daemon not launching ,rexec not working

Shalom

The rexec problem may have to do with Exceed configuration.

Try it from the command line via telnet/ssh and see it works. Look at Exceed.

For sendmail:
/var/adm/syslog/mail.log

It has info.

You only need to run sendmail to receive mail. To send it you can configure your system to send it automatically or with a cron job that runs the mail queue.

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
yazgoo
Frequent Advisor

Re: mail daemon not launching ,rexec not working

telnet does not work
Yazgoo
Keith Johnson
Valued Contributor

Re: mail daemon not launching ,rexec not working

Can you so an nslookup from your server? Based on the symptoms you mentioned, it might be DNS related. Check your DNS configuration (/etc/nsswitch.conf).
No matter where you go...there you are.
yazgoo
Frequent Advisor

Re: mail daemon not launching ,rexec not working

Ok, I'll have a look at nslookup.

For the mail problem, I had a look at /var/adm/syslog/mail.log .

Here is what was written:

> Unable to qualify my own domain name -- using short name
> Be sure to set domain name in Dj macro in sendmail.cf

Then I changed the so called 'sendmail.cf',
Doing what wxas written in it :
that is uncoment a line
with "# something.Foo.COM"
I replaced by "my_machine_name.my_domain_name"

Now, when I restart, there is still the same problem, while nothing but "***rebooting***" is added to mail.log

Temporarily, do you know a way to avoid mail deamon launch at startup?
Because it stops boot process, which isn't really good if I want to reboot remotly.

Thanks.
Yazgoo
Dennis Handly
Acclaimed Contributor

Re: mail daemon not launching ,rexec not working

>do you know a way to avoid mail deamon launch at startup?

You should be able to hit break or control-] to skip steps.
Or you can disable it by editing:
/etc/rc.config.d/mailservs

Don't leave junk/temp files in /etc/rc.config.d/.
yazgoo
Frequent Advisor

Re: mail daemon not launching ,rexec not working

Thank you very much, keith, that was DNS related.
On the first version there was no dns name nor ip.
So I removed those (edited the good conf file)
Telnet works.
But Xstart doesn't.
It will print

"ERROR disponibility time",
and alert
"Sub system of charge optimisation.
No host available."

Anyway, thank you both, I won't be freezing today in the server room behind my console, since I got telnet.

Thank you VERY (^^) mutch.

Yazgoo
Bill Hassell
Honored Contributor

Re: mail daemon not launching ,rexec not working

Don't try to troubleshoot Exceed until you get the underlying rexec working. Go to a system where you have control over the rexec config (ie, another HP-UX or other Unix system). Then create a .netrc file with the machine IP address, login and password per the man page for .netrc. Then the most important part: make sure your $HOME is 755 permissions and the .netrc file is 600. If this isn't done, rexec will silently fail.

Now run rexec to execute something simple like pwd. If that works, then try it from your PC. If is still doesn't work, the problem is with your PC. If you absolutely have to have the fancy CDE desktop and buttons and toolbar from HP-UX, you'll need to use the Exceed manual's troubleshooting tips. You can also try using telnet (or ssh if available in your version) to establish a connection. You'll need to make sure you have a font server running on HP-UX and the dt daemons enabled in inetd.conf. And always use IP addresses in your Exceed setup -- Windoze DNS is notorious for creating massive problems with networking tools like Xwindows.

Or you can completely avoid all of the above junk and just use ssh (or telnet) from your PC to HP-UX, then create your DISPLAY variable with:

export DISPLAY=$(who -muR):0.0

and run xclock to test the Xwindow connection. To satrt a text window like xterm or dtterm or even hpterm, just run the program. The path for the Xprograms is /usr/bin/X11 and should already be in your $PATH. However, I prefer using a local PC emulator (WRQ's HP emulator, AICS QCterm or PuTTY) as it is much, much faster, virtually no network footprint (Xwindows is a terrible LAN waster) and a lot easier to configure.


Bill Hassell, sysadmin
yazgoo
Frequent Advisor

Re: mail daemon not launching ,rexec not working

thank you Bill.
It was just an exceed configuration error.
Thank you all.
Yazgoo
Dennis Handly
Acclaimed Contributor

Re: mail daemon not launching ,rexec not working

You may want to consider using VNC than Exceed.
I'm not sure if that gets it in the ballpark of Bill's suggestions.