Can not send mail in solaris 5.9


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Can not send mail in solaris 5.9
# 1  
Old 07-04-2006
Can not send mail in solaris 5.9

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
# 2  
Old 07-04-2006
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. Smilie

Last edited by dsbeerf; 07-04-2006 at 11:34 PM..
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Client was not authenticated to send anonymous mail during MAIL FROM (in reply to MAIL FROM comm

I am having trouble getting mail to work on a red hat server. At first I was getting this message. Diagnostic-Code: X-Postfix; delivery temporarily suspended: connect to :25: Connection refused Then added the port to my firewall. Then I temporarily turned off selinux. I then copied this file... (1 Reply)
Discussion started by: cokedude
1 Replies

2. Shell Programming and Scripting

Need to send file through mail from Solaris

I have Solaris-10 and some job is writing a log. My client needs this log file every two hour in his mail. Usually I send manual mail through mailx command, as sendmail is configured with relay server, but I am not sure, how to attach file in a mail and set it in cronjob. Please give me some... (3 Replies)
Discussion started by: solaris_1977
3 Replies

3. Shell Programming and Scripting

Solaris Server dectects EMC dead path and send mail immediately

taus-itcapp1#powermt display dev=all Pseudo name=emcpower0a CLARiiON ID=APM00105201788 Logical device ID=60060160B2202B001094F0E0AF5CE011 state=alive; policy=CLAROpt; priority=0; queued-IOs=0; Owner: default=SP A, current=SP A Array failover mode: 1 ... (6 Replies)
Discussion started by: orafup
6 Replies

4. UNIX for Advanced & Expert Users

need to configure mail setting to send mail to outlook mail server

i have sun machines having solaris 9 & 10 OS . Now i need to send mail from the machines to my outlook account . I have the ip adress of OUTLOOK mail server. Now what are the setting i need to do in solaris machines so that i can use mailx or sendmail. actually i am trying to automate the high... (2 Replies)
Discussion started by: amitranjansahu
2 Replies

5. Solaris

Configuring send mail client in solaris 10

Dear all, We have SMTP server in our organization & i want to send e-mails from solaris machine using sendmail ... in which file i need to put the smtp server ip, username & passwd.. kindly help ....... (4 Replies)
Discussion started by: vishwanathhcl
4 Replies

6. UNIX for Dummies Questions & Answers

How to send html file in a mail not as an attachment but it should display in the mail in table for

Hi The below script working when we are sending the html as attachment can u please guide how to send thesmae data in table form direct in the mail and not in mail attachment . cat Employee.sql SET VERIFY OFF SET PAGESIZE 200 SET MARKUP HTML ON SPOOL ON PREFORMAT OFF ENTMAP ON - HEAD... (0 Replies)
Discussion started by: mani_isha
0 Replies

7. UNIX for Advanced & Expert Users

send attachments using send mail in Solaris

Hi All, I have a requirement to send and email of body html with an attachment. concatinating uuencode output to the mail body with mailx command works, but as my Email body is of HTML type i use sendmail. my command to send HTML body is as below: export MAILTO="recipient@domain.com"... (1 Reply)
Discussion started by: mohan_kumarcs
1 Replies

8. Shell Programming and Scripting

Unable to send mail, on sun solaris

hi experts, I m new to the sun solaris. on our OS (sun solaris 5.8) i m trying to send mail but i not getting any mail, i have tried doing following . $mailx -s "Test" sivakumars@kesd.com But no response there no error also... pls let me know: 1) How can test sending mail through... (3 Replies)
Discussion started by: saisivakumar
3 Replies

9. Solaris

mail problems - how to send mail on solaris

Hello I am new user on solaris... I need to configure my solaris to be able to send mails... I know mailx command mailx -s hello address@address.com but I get an error... you have mail in /var/mail/root # hello... User unknown /dead.letter... Saved message in /dead.letter what... (10 Replies)
Discussion started by: amon
10 Replies

10. UNIX for Dummies Questions & Answers

Send mail to any user (@hotmail,@yahoo etc) from Solaris

Hi All, I am new to unix. I want to know what are the steps to do in order to configure a unix server (Solaris 8) to send mails to the outside world. I also want to send attachments in the mail. Thanks in advance Zing (2 Replies)
Discussion started by: zing
2 Replies
Login or Register to Ask a Question