Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

send mail

Status
Not open for further replies.

tuka

Technical User
Jul 6, 2001
438
US
I have a host running solaris 8 and a ps -ef |grep shows send mail running on the host

A DBA want to send mail from that host to his home email address.

How would I accomplish this?

Thanks
 
If sendmail is running and configured, you can use the following:

mailx -s &quot;<subject>&quot; foo@foo.com <enter>
<type your message here>
<CTRL><D> will end the message and display EOT and put you back at your prompt.

To include an attachment (like a log file for example) try this:

mailx -s &quot;<subject>&quot; foo@foo.com < 'path to file' <enter>

and it will send the email with the attachment inline to the email, not as an attachment.

If sendmail is running and not configured to send mail, you will need to configure /etc/mail/sendmail.cf. This is not a task to be taken lightly. I would recommend looking at and looking over the entire file, maybe even read the man page first.
 
The basic configuration of sendmail willl include setting up the FQDN of the host (Update /etc/hosts file with domainname of the machine), Set the domain name of the host with domainname command, Update Dj$w and DS entries in the /etc/mail/sendmail.cf file and restart the sendmail.. Also, do not forget to have an MX record for your mail host in the DNS..

Regds,

- Hemant
Networking and Systems Integration Group
Satyam Computer Services Ltd
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top