1830623 Members
2309 Online
110015 Solutions
New Discussion

Send Mails from hp-ux

 
Rogelio Cabrera
Frequent Advisor

Send Mails from hp-ux

HI
As I can send a mail from hp-ux 11.0.
I have a server hp-9000 L2000 series.
I need to activate some service in my server?
I have my own server of mail with MS-Exchange Server
7 REPLIES 7
A. Clay Stephenson
Acclaimed Contributor

Re: Send Mails from hp-ux

Look in the file /etc/sendmail.cf for "Smart". You will need to define your Smart Relay. To send mail, no service is needed so that sendmail does not have to run as a daemon.
If it ain't broke, I can fix that.
goldboy
Trusted Contributor

Re: Send Mails from hp-ux

you can also use the mailx command.
check the man page on it it is simple and useful.

T
"Life is what you make out of them!"
James R. Ferguson
Acclaimed Contributor

Re: Send Mails from hp-ux

Hi:

Simply edit the 'DS' macro in '/etc/mail/sendmail.cf'. It's commented out by default. Do, something like:

DSmsexchange.xyz.com

You may also need to set the 'Dj' macro to specify your local domain (e.g. xyz.com).

Regards!

...JRF...
A. Clay Stephenson
Acclaimed Contributor

Re: Send Mails from hp-ux

Ooops, I'm stupid. That should be /etc/mail/sendmail.cf.
If it ain't broke, I can fix that.
Rogelio Cabrera
Frequent Advisor

Re: Send Mails from hp-ux

Clay/James:
I send to you the file /etc/mail/sendmail.cf
where I modify it?
my mail is rcabrera@ggp.com.mx, my user in hp-ux is rogelioc and the machine name is gp_d380(hp9000).
I want send mail from hp-ux to the address external rcabrera@ggp.com.mx
It is possible?
That I must do?
That I need to change or to add?

Thanks
Steven E. Protter
Exalted Contributor

Re: Send Mails from hp-ux

Shalom,

You have not changed your DS directive as JRF recommended.

DS says use smart relay. No, you can't relay directly to the public Internet because that would let spammers send what they want.

What you must do is this:

1) Find out if your network has a smtp relay system that permits mail relay. This may be an exchange server or even a firewall. Contact your networking department.

2) Get the host name or ip address of the relay server.

Change sendmail.cf

DS

to

DShostnameofrelayserver

or
DS
[192.168.0.50]

hostnameofrelayserver is the host name of the relay server. The 192 address is the IP address. You will need a real value here.

Afterwards:

To test.

sendmail -v -d8.99 -d38.99 someone@external.net

type some text

.


You will get full diagnostics.

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
Rogelio Cabrera
Frequent Advisor

Re: Send Mails from hp-ux

Thanks Steven.
I made the change in the file sendmail.cf and I tested following:
sendmail -v -d8.99 -d38.99 rogecama@hotmail.com, but I do not work.
I return the following message to me:
getcanonname(gp_d380), trying dns
dns_getcanonname(gp_d380, trymx=1)
dns_getcanonname: trying gp_d380. (ANY)
NO: errno=239, h_errno=2
getcanonname(gp_d380), failed, stat=75
getcanonname(gp_d380), trying dns
dns_getcanonname(gp_d380, trymx=1)
dns_getcanonname: trying gp_d380. (ANY)
NO: errno=239, h_errno=2
getcanonname(gp_d380), failed, stat=75
Mar 12 18:49:01 gp_d380 sendmail[2748]: unable to qualify my own domain name (gp
_d380) -- using short name
/etc/mail/sendmail.cf: line 685: unknown control line "[192.6.7.57]"
seq_map_parse(aliases.files, )
WARNING: local host name (gp_d380) is not qualified; fix $j in config file.
That you think?
That it lacks to do?
the $j it must be modified ???

Thanks Again