Operating System - HP-UX
1748216 Members
3860 Online
108759 Solutions
New Discussion юеВ

Re: To try to send email from hp-ux 11.23

 
FOBF
Frequent Advisor

To try to send email from hp-ux 11.23

He

I want to know if my hp-ux 11.23 server can send email, but i am not sure which files that i have to set.

Thank to all
8 REPLIES 8
Mel Burslan
Honored Contributor

Re: To try to send email from hp-ux 11.23

first and foremost, you have to edit /etc/mail/sendmail.cf file, find the line that starts with letters

DS

and change it to

DSmailrelayserver

where the mailrelayserver is the server responsible from delivering your company emails, let that be a windoze exchange or IBM Lotus mail server. At the same time, let the administrators of the mailrelayserver know that you will be sending mails from this server's ip address so that they can authorize your mail requests.

After that is done, execute this command:

echo test | sendmail -v myaddress@someinternetaddress.com

if you can not receive this email, post the screen capture from this sendmail command output here for further help
________________________________
UNIX because I majored in cryptology...
James R. Ferguson
Acclaimed Contributor

Re: To try to send email from hp-ux 11.23

Hi:

If you have DNS running and you configure '/etc/mail/sendmail.cf' to be a "smart relay" then you should be able to send email (as in to the outside world). Look at the aforementioned file and specify your relay host in the DS macro (for example):

DSexchange.abc.org

...would point to 'exchange.abc.org'.

Regards!

...JRF...

FOBF
Frequent Advisor

Re: To try to send email from hp-ux 11.23

He Mell

I tested with your advices but it does not work, attach the error


DPCELLMGR:/>echo test | sendmail -v myaddress@someinternetaddress.com

carlos.arias@inter.com.ve... Transient parse error -- message queued for
future delivery
carlos.arias@inter.com.ve... queued
DPCELLMGR:/>

Thanks for your help
Michal Kapalka (mikap)
Honored Contributor

Re: To try to send email from hp-ux 11.23

hi,

what about the hostname resolcing

/etc/nssswitch.conf ???

/etc/hosts
/etc/resolv.conf

mikap
Patrick Wallek
Honored Contributor

Re: To try to send email from hp-ux 11.23

What did you set your mail relay server to in the sendmail.cf file? What does the line look like that starts with DS?

Does this server have the ability to talk to the server that is the relay?
Mel Burslan
Honored Contributor

Re: To try to send email from hp-ux 11.23

Obviously, your server can not talk to the mail relay server defined in DS line for some reason. Most likely causes are, syntax/typographical errors in sendmail.cf or a networking problem like a missing route or unconfigured firewall.

please post the screen capture from these commands

grep ^DS /etc/mail/sendmail.cf

telnet 25

nslookup

netstat -rn
________________________________
UNIX because I majored in cryptology...
Steven E. Protter
Exalted Contributor

Re: To try to send email from hp-ux 11.23

Shalom,

Try this script.

http://www.hpux.ws/?p=7

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
Cowboy0305
New Member

Re: To try to send email from hp-ux 11.23

Try after mailx -r you@abc.com -s "Test" you@dfg.com. We have found that HP-UX email at times require the "-r" for a return email address. Hope this helps.

Morpheus