1833566 Members
3356 Online
110061 Solutions
New Discussion

Re: Mail on HPUX

 
Simon Krajzel
New Member

Mail on HPUX

Can someone help me with sending mails from HPUX server to various mail@?

What I need to do, to achieve this?

Thanks and best regards,
Simon
3 REPLIES 3
Dave Hutton
Honored Contributor

Re: Mail on HPUX

Which mailer? Does it matter?

Heres an example:
mailx -s "Subject" user@company.com, user@company.com
Type body of message.



Or are you trying to automate the sending of the message?

echo "body of the message" | mailx -s "Subject" user@company.com, user@company.com

A bunch of ways to do it. But more details of what you want is needed.
Simon Krajzel
New Member

Re: Mail on HPUX

Thanks for the answer.
It is what I needed.
James R. Ferguson
Acclaimed Contributor

Re: Mail on HPUX

Hi Simon:

If your question is how to send mail to hosts other than your local one, then one way is to setup the 'DS' (smart relay via SMTP) macro in '/etc/mail/sendmail.cf'. For example:

DSexchange.xyz.com

Regards!

...JRF...