Operating System - HP-UX
1748123 Members
3323 Online
108758 Solutions
New Discussion

Re: mailx between HP UX machine to another HP UX machine

 
vinod u
Advisor

mailx between HP UX machine to another HP UX machine

Hi All,
I have 2 servers, I configured IP and hostname in /etc/hosts on both servers.
When I test sendmail with command
$ sendmail -v userone@16.138.181.45
this is test
.
userone@16.138.181.45... Connecting to 16.138.181.45 via esmtp...
220 huli ESMTP Sendmail 8.11.1/8.11.1; Thu, 13 May 2010 21:00:08 +0530 (IST)
>>> EHLO hp.com
250-huli Hello root@hp.com [16.138.181.28], pleased to meet you
250-ENHANCEDSTATUSCODES
250-EXPN
250-VERB
250-8BITMIME
250-SIZE
250-DSN
250-ONEX
250-ETRN
250-XUSR
250 HELP
>>> MAIL From: SIZE=13
250 2.1.0 ... Sender ok
>>> RCPT To:
550 5.7.1 ... Relaying denied
>>> RSET
250 2.0.0 Reset state
/home/userone/dead.letter... Saved message in /home/userone/dead.letter
Closing connection to 16.138.181.45
>>> QUIT
221 2.0.0 huli closing connection

I looked in to sendmail.cf file for smart relay. but dont know where to make changes for machine to machine messaging. Both are in same subnet.

Thanks in advance
Vinod
5 REPLIES 5
Prasanth V Aravind
Trusted Contributor

Re: mailx between HP UX machine to another HP UX machine

Vinod,

error here is Relaying denied ... so can you check does your mail relay accept mails from this server ?

Also make sure you have kept fully qualified hostnames in /etc/hosts

Gudluck
Prasanth
vinod u
Advisor

Re: mailx between HP UX machine to another HP UX machine

Hi thanks for the reply..

I didnt unstd how do I check this ??

yes I do have fully qualified hostnames added in hosts which pings from both.

Regards
Vinod
Steven E. Protter
Exalted Contributor

Re: mailx between HP UX machine to another HP UX machine

Shalom,

... Relaying denied

That is the key.

Mail relay is controlled by modifying the /etc/mail/access file and then creating a new sendmail.cf file.

See http://hpux.ws/buildmail.hpux.text for clues on how to do this.

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
vinod u
Advisor

Re: mailx between HP UX machine to another HP UX machine

no luck !! this looks pretty complex !!
I created access files and generated new cf file but now sendmail hangs when I execute.

May i know the format for access file. I only need to send mail from one machine to other machine both r in same subnet. Dont know for this what changes I need to make.

Leopoldo González
Established Member

Re: mailx between HP UX machine to another HP UX machine

Hi!.

 

Relying denied means that you are not allowed to send an email on behalf of another domain.

 

You can't send an email saying that you are "hp.com". Edit your /etc/mail/sendmail.cf file and set an appropiate domain in it (perhaps someone used the example configuration and the domain was set to hp.com).

 

Search for Dj in the file and modify the line. If your domain is mycompany.com the line should look like this:

 

Dj$w.mycompany.com

 

Hope this helps.

 

Greetings