|
|
Question : Sending email alerts
|
|
Hello, I have writen a script to check filesystem usage on the Solaris 2.6 system.
This server resides in my Company's internal network. I am able to send email alerts to my work email address from this server(solaris 2.6) But i am not able to send email to my yahoo or hotmail account.
If I run same script on another server (also in internal network but running solaris 9) I am able to send email to both my office email address and to my yahoo and hotmail accounts.
Can someone please suggest something so that i am able to send email from Solaris2.6 server also. I am sure some settings are not correct to send outside of company. Please advise.
Regards
OraCop
|
Answer : Sending email alerts
|
|
Please check for the "DS" entry in the /etc/mail/sendmail.cf file. If your Solaris server is not directly on the internet and/or does not have mailing capability it uses Relay host to send mails into the internet. The Relay host would have the capabilities of sending e-mails into the internet. Depending on the version of "sendmail" on your server, you may try to look for an entry like the one mentioned below,
# "Smart" relay host (may be null) #DSmailhost.$m
Add an entry as follows to your /etc/mail/sendmail.cf, DSyour-mail-host@your-company.com
Next, bounce your sendmail daemon. To stop the sendmail daemon, /etc/init.d/sendmail stop
To start the sendmail daemon, /usr/lib/sendmail -bd -q15m
It would also be good to compare the sendmail.cf files on both your servers.
|
|
|
|
|