Quote:
Originally Posted by irasela
Hi !!
I'm trying to send myself a mail from my Solaris server, i had tryed with this commands:
mail -s "test"
irasela@yahoo.com < /monitoring/space/bitacora.txt
mailx -s "test"
irasela@yahoo.com < /monitoring/space/bitacora.txt
sendmail -F "test" address "irasela.yahoo.com" -t </monitoring/space/bitacora.txt
No error appear but never the yahoo account never get the mail.
Is there some special service i have to enable to run the mail/mailx/sendmail commands???
What can i do? Thks in advance!!
Best regards
This depends on how your mail is "set up". Do you have an ISP ? Does your "normal" email client connect to a remote server to send and recieve email ? Do you run your own mail server (it doesn't sound like it.)
The easiest way to "band-aid" this would be to get the IP address of the remote machine (at your ISP) you normally use to send email and place it in your /etc/hosts file with the name "mailhost".
The "standard" Sun sendmail.cf (subsidiary.cf) file still contains a "SmartHost" reference to "mailhost" as either the "Smart Relay Host" (Up to Solaris 9), OR as the "FallbackSmartHost" in Solaris 10.
So defining the "mailhost" in /etc/hosts as your REAL mail hub should work.
As an added thought, if you have a "mail hub" (like if you are at work), setting THAT machine to have a CNAME (in DNS) or an alias (in /etc/hosts ) of "mailhost" will direct your Solaris 9 server to send any email to THAT machine. The "mail hub", if it is already setup (properly) will handle any email you send to it, and (barring any SPAM filters) will send out your email as it should be sent.
The BEST answer is to buy the latest "Bat" book, and study the configuration of sendmail by yourself.