1839389 Members
3480 Online
110145 Solutions
New Discussion

Setting up mailx

 
SOLVED
Go to solution
Paul Thomson_2
Super Advisor

Setting up mailx

Currently we have over 200 HP9000 servers running v10.20, these are distributed around the world and we have an ongoing issue with the backups in that local sites do not load tape.

To get around this I would like to use mailx to mail the users advising them to load tape.

I would like to know what standard config is required in order for this to work.

I understand two files needed are
/etc/nsswitch.conf
and
/etc/resolv.conf
Example of nsswicth is
gb673_1:/var/spool/mqueue # cat /etc/nsswitch.conf
#
# /etc/nsswitch.conf
#
# This is the default configuration file for the name service switch.
# It will cause behavior similar to that performed on prior HP-UX
# releases when a configurable name service algorithm was not provided.
#
# If the /etc/nsswitch.conf file is not present, it will default to the
# behavior represented by the ordering and conditions below.
#
# See the Adminstering Internet Services Manual and the switch(4) man
# page for more information on the name service switch.
#

hosts: files dns
services: files
protocols: files
networks: files
rpc: files
netgroup: files

example of resolv.conf
gb673_1:/var/spool/mqueue # cat /etc/resolv.conf
domain gb.tntpost.com
nameserver 164.39.9.19
nameserver 164.39.176.10

I have also checked and I think /var/spool/mqueue needs to exist.

However of the 200 or so servers only a few work and those are server running qip.

Can anyone advise what standard config is needed/setup for mailx to work ??

The string I send when using mailx is
mailx -s "TEST" paul.thomson@tntpost.com < /etc/issue

Cheers
Paul
Argh ye land lovers !
2 REPLIES 2
Alex Glennie
Honored Contributor
Solution

Re: Setting up mailx

 
Paul Thomson_2
Super Advisor

Re: Setting up mailx

Wow, cheers for update.... Will test this and assign points soon!!
Argh ye land lovers !