Messaging
cancel
Showing results for 
Search instead for 
Did you mean: 

having problems configuring mailx on hp/ux server

SOLVED
Go to solution
The Gunners
Regular Advisor

having problems configuring mailx on hp/ux server

Hi everyone,
I am having issues with configuring mail on an rp4410 server running hp/ux 11.11. I have gone thru some previous postings here but still cant get it sorted. Im pretty sure my config files have the right entries but keep getting
dubhptst:mail # /sbin/init.d/sendmail start
WARNING: local host name (dubhptst) is not qualified; fix $j in config file
/etc/mail/aliases: 7 aliases, longest 9 bytes, 88 bytes total
sendmail
dubhptst:mail # I made a change in the config file and ran 'newaliases' command and i get the same prob.

Any ideas would be great. Thanks Dave
17 REPLIES
Jose Mosquera
Honored Contributor

Re: having problems configuring mailx on hp/ux server

Hi,

First keep an original copy of your /etc/mail/sendmail.cf
#cp -p /etc/mail/sendmail.cf /etc/mail/sendmail.cf.ori

Looks like you do not have defined your official domain name, please edit your /etc/mail/sendmail.cf and set your domain name:
Change default example definition,
#Dj$w.Foo.COM
by:
Dj .com (a space separating)

Are you forwarding your mail requests to a smtp's server?
If your answer is Yes, you needs also set your relay host, so change the default commented DS variable:
#DS
by:
DS (no space separation)

Where:
must be a name resolved via DNS or /etc/hosts file, where your smtp service is accepting requests.

Rgds.
The Gunners
Regular Advisor

Re: having problems configuring mailx on hp/ux server

Hi Jose,
Thanks for that
Hmm tried that , and I no longer get the error when starting up - it comes up now as

dubhptst:mail # /sbin/init.d/sendmail start
/etc/mail/aliases: 7 aliases, longest 9 bytes, 88 bytes total
sendmail

I then try
echo "hello"| mailx -s "mail" dave.fitzgerald@diageo.com

but still nothing comes through :/

The Gunners
Regular Advisor

Re: having problems configuring mailx on hp/ux server

Also , here are the entries in my sendmail.cf file for what was mentioned above

Dj diageo.net
DSmaismsg002.guww.net

Jose Mosquera
Honored Contributor

Re: having problems configuring mailx on hp/ux server

Hi,

Have you created or updated some aliases previouslly?

Please certify that your sendmail service are running on your box:
#ps -ef|grep sendmail -v sendmail
A sendmail line must be displayed indicating that service is up.

Please check for pending outgoing emails:
#sendmail -v

#If not empty, please try to force them:
#sendmail -q

Then try with this:
#echo "Hello"|sendmail -v dave.fitzgerald@diageo.com

I keep waiting for your answer.

Rgds.
Jose Mosquera
Honored Contributor

Re: having problems configuring mailx on hp/ux server

Hi again,

Is your maismsg002.guww.net server reachable by ping from you box?
The Gunners
Regular Advisor

Re: having problems configuring mailx on hp/ux server

hi Jose,
re aliases , well all i did was run the newaliases command (really as a last attempt to get this working) but no other changes. , ok here are outputs of what you requested , including the ping which works fine :

dubhptst:mail # ps -ef|grep sendmail
root 5402 1768 1 10:18:30 pts/ta 0:00 grep sendmail
root 5268 1 0 10:09:34 ? 0:00 sendmail: accepting connections
on port 25
dubhptst:mail # sendmail -v
Recipient names must be specified
dubhptst:mail # sendmail -q
dubhptst:mail # ping maismsg002.guww.net
PING maismsg002: 64 byte packets
64 bytes from 10.114.5.39: icmp_seq=0. time=29. ms
64 bytes from 10.114.5.39: icmp_seq=1. time=30. ms
64 bytes from 10.114.5.39: icmp_seq=2. time=30. ms







Jose Mosquera
Honored Contributor

Re: having problems configuring mailx on hp/ux server

Hi again,

Please post me the followings command outputs:
#sendmail -q -v
#echo "Hello"|sendmail -v dave.fitzgerald@diageo.com
The Gunners
Regular Advisor

Re: having problems configuring mailx on hp/ux server

Hi again Jose, ok here we go

dubhptst:mail # sendmail -q -v

Running KAA05130 (sequence 1 of 9)
diageo.com: Name server timeout
dave.fitzgerald@diageo.com... Transient parse error -- message queued for future
delivery

Running JAA04691 (sequence 2 of 9)
diageo.com: Name server timeout
dave.fitzgerald@diageo.com... Transient parse error -- message queued for future
delivery

Running PAA17347 (sequence 3 of 9)
diageo.com: Name server timeout
david.millar@diageo.com... Transient parse error -- message queued for future de
livery

Running OAA15618 (sequence 4 of 9)
diageo.com: Name server timeout
david.millar@diageo.com... Transient parse error -- message queued for future de
livery

Running OAA15750 (sequence 5 of 9)
diageo.com: Name server timeout
david.millar@diageo.com... Transient parse error -- message queued for future de
livery

Running NAA14964 (sequence 6 of 9)
diageo.com: Name server timeout
david.millar@diageo.com... Transient parse error -- message queued for future de
livery

Running LAA12726 (sequence 7 of 9)
diageo.com: Name server timeout
david.millar@diageo.com... Transient parse error -- message queued for future de
livery

Running TAA23676 (sequence 8 of 9)
diageo.com: Name server timeout
david.millar@diageo.com... Transient parse error -- message queued for future de
livery

Running KAA05479 (sequence 9 of 9)
dubhptst:mail # echo "Hello"|sendmail -v dave.fitzgerald@diageo.com
diageo.com: Name server timeout
dave.fitzgerald@diageo.com... Transient parse error -- message queued for future
delivery
dave.fitzgerald@diageo.com... queued
dubhptst:mail #
Jose Mosquera
Honored Contributor

Re: having problems configuring mailx on hp/ux server

Ok, as you see your "Name server" is timeout for you sendmail service, looks like a name resolution order or resoltution rules issue.

For debuging only, try to force this entry in your /etc/hosts file:
10.114.5.39 diageo.com

Then execute again:
#echo "Hello"|sendmail -v dave.fitzgerald@diageo.com

Let me see the command output.
The Gunners
Regular Advisor

Re: having problems configuring mailx on hp/ux server

Hi Jose,
ok here we go have added it to hosts file and
dubhptst:etc # echo "Hello"|sendmail -v dave.fitzgerald@diageo.com
diageo.com: Name server timeout
dave.fitzgerald@diageo.com... Transient parse error -- message queued for future
delivery
dave.fitzgerald@diageo.com... queued
dubhptst:etc #
The Gunners
Regular Advisor

Re: having problems configuring mailx on hp/ux server

Hi Jose , i meant to say as well if it is a help , I have another sever called 'dubhp01' and it is the exact same model and operating system and mail works fine on it. This server would also be using the same domain and DNS etc. I tried to compare the configs but I cant see anything wrong on the dubhptst server. Is there anything or any file i can check on the 'dubhp01' server that I could then check on the dubhptst server do you think? Mabey I missed something
Jose Mosquera
Honored Contributor

Re: having problems configuring mailx on hp/ux server

Hi,

Are you *shure* that your smtp service are running on maismsg002.guww.net (10.114.5.39)?

Please attach the files:
/etc/resolv.conf
/etc/nsswitch.conf
Jose Mosquera
Honored Contributor

Re: having problems configuring mailx on hp/ux server

Hi,

Ok, please compares the following files:
/etc/resolv.conf
/etc/nsswitch.conf
The Gunners
Regular Advisor

Re: having problems configuring mailx on hp/ux server

Jose,
I think we have a good idea now. There is no 'resolv.conf file on dubhptst rather weirdly. There is one on dubhp01 and it has the following so I guess I can create a file on the dubhptst server that the issue is on and include the following ?

dubhp01:mail # more /etc/resolv.conf
domain diageo.net
nameserver 10.4.70.15
nameserver 10.4.31.15
resolv.conf: END









Jose Mosquera
Honored Contributor
Solution

Re: having problems configuring mailx on hp/ux server

Ok, please copy from your working server both files and try again.
The Gunners
Regular Advisor

Re: having problems configuring mailx on hp/ux server

Jose,
Brillant! its working now , thanks so much for your help - 10 points for you today :)
Jose Mosquera
Honored Contributor

Re: having problems configuring mailx on hp/ux server

Hi,

A pleasure to help you! Please remember delete the debug entry in /etc/ hosts file.

Rgds.