1844200 Members
2243 Online
110229 Solutions
New Discussion

Send mail

 
YOGI_3
Frequent Advisor

Send mail

Hi all...
I want to send system alert mail to a defined mail address.
I am having HP-UX 11.11, DNS not configured.
which parameters i have to conf on server side to get alert thro' SMS.

Thanks..
Yog
There is never a wrong time to do the right things
4 REPLIES 4
Naveej.K.A
Honored Contributor

Re: Send mail

Hi Yogi,

You have to configure sendmail or any other Mail transfr agent to send message/mails. You have to identify the smart relay host which can relay the mails to other external/internal domains.

edit the /etc/mail/sendmail.cf and put the name of the smart relay host after the DS parameter. it should look like

DSsmartrelayhost.domain.com

don't forget to put the entry in /etc/hosts

IP_address smartrelayhost.domain.com

restart the sendmail service.
/sbin/init.d/sendmail stop
/sbin/init.d/sendmail start

Regards,
Naveej
practice makes a man perfect!!!
Suraj Singh_1
Trusted Contributor

Re: Send mail

I am sure u must be having a mail server in your organisation along with a DNS server.

If yes, you just need your HP m/c to resolve the name of mail exchanger (either through /etc/resolv.conf or /etc/hosts).

Once sure that the machine is able to resolve the name, just give mailx command,

# mailx -s Test email.id@yourdomain.com < Test_mail
What we cannot speak about we must pass over in silence.
T G Manikandan
Honored Contributor

Re: Send mail

To send a e-mail you should configure the sendmail to use a relay host.

If you are to use SMS you need to configure some vendor tools like TElAlert

http://www.telalert.com/downloads/index.php?d=telalert&buy=demo
renarios
Trusted Contributor

Re: Send mail

Hi Yogi,

I had a same sort of problem. When I mailed as root from the server srv40.hoorn.nl (root@srv40.hoorn.nl), the smart relay host did not accept the mail, because the domain srv40.hoorn.nl is not hoorn.nl.
In the mailx command I added the "-r" option (return address) like "someone@hoorn.nl" and it went fine!

Hope it helps,

Renarios
Nothing is more successfull as failure