mailx between HP UX machine to another HP UX machine (331 Views)
Reply
Advisor
vinod u
Posts: 38
Registered: ‎12-19-2008
Message 1 of 6 (331 Views)

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
Trusted Contributor
Prasanth V Aravind
Posts: 257
Registered: ‎09-05-2007
Message 2 of 6 (331 Views)

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
Advisor
vinod u
Posts: 38
Registered: ‎12-19-2008
Message 3 of 6 (331 Views)

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
Exalted Contributor
Steven E. Protter
Posts: 33,806
Registered: ‎08-15-2002
Message 4 of 6 (331 Views)

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
Advisor
vinod u
Posts: 38
Registered: ‎12-19-2008
Message 5 of 6 (331 Views)

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.

Regular Visitor
Leopoldo González
Posts: 3
Registered: ‎04-01-2004
Message 6 of 6 (266 Views)

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

The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation.