1820553 Members
4052 Online
109626 Solutions
New Discussion юеВ

sendmail !

 
Ivan Azuara
Regular Advisor

sendmail !

Hi !

I'm triying to find information about how can I configure the sendmail or something similar in HPUX for send messages to determinate e-mail address.

My intention is send a file generated in HPUX to determinate e-mail account (user@company.com). I have HP-UX 11.00.

Somebody know when can i start ?.


Best Regards !
"Enjoy the life .."
4 REPLIES 4
Sanjay_6
Honored Contributor

Re: sendmail !

Ted Ellis_2
Honored Contributor

Re: sendmail !

if you are just trying to send a file or message to a specific email account, I would recommend using a script with something similar to:

mailx -s "Subject or Title" email_address@domain <

this will take the contents of a message file and make it the input to a mailx command.... if you have a standard install of sendmail, it may not need much. Make sure the aliases file has what you need. If you make a change, run newaliases to create a new alias database for sendmail. If you are not chasing down security stuff with sendmail, the main thing that may need a tweak is the smart relay variable in the sendmail.cf file.... DS

good luck
Anil Sedha
Advisor

Re: sendmail !

yes.. you can start right away.

mailx -s "subject text" userid@test.com < filename


Don't forget to assign points if the answer suits you.


Live, love and let live
John Caivano
New Member

Re: sendmail !

Hi,

I also had to do this recently, and the forum was the place to start.

Steps I took:

1) Change sendmail.cf settings, (in HP-UX 11.0 this is in /etc/mail) so the the "Smart" Relay Host entry is set to your relay server, (it was exchange 5.5 here)the entry should be DS.
2) Edit /etc/hosts so the mail (relay) server is listed, using the fully qualified domain name if applicable.
3) You may need to have an entry in nsswitch.conf to resolve DNS. I needed the entry
"hosts: files"
4) Stop/Start sendmail daemon
# /sbin/init.d/sendmail stop
# /sbin/init.d/sendmail start

This should do it. Hope this helps as the forum helped me.

John