mail problems - how to send mail on solaris


 
Thread Tools Search this Thread
Operating Systems Solaris mail problems - how to send mail on solaris
# 1  
Old 03-14-2006
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 should I do next...

Please help...
Thanks in advance..
# 2  
Old 03-15-2006
Quote:
mailx -s hello address@address.com
Are you sending to a username? This makes it look like you aren't.
Try some-user@address.com versus address@address.com (you have to use a valid user name on that server (address.com))
# 3  
Old 03-16-2006
of course bigboy@hotmail.com how to be able to send e mail there what do I need to configure mailbox or what??

thaks for answers...
# 4  
Old 03-16-2006
Try this test - see if the email goes through with this - type on the command line what's in bold - I'm using the email address you posted - change as needed.

mailx -s "test from `hostname`" bigboy@hotmail.com < /dev/null

Post the output if any or confirm if the email did get received or not.
# 5  
Old 03-17-2006
I tried that trick send from file...that is emptyy...still something is wrong with conf.
# 6  
Old 03-17-2006
Please answer this question: Was the email delivered to bigboy@hotmail.com?

Yes, it would be empty - but it was only to test if the email was sent and received, not a test to check content.

If it was received, you can do the following to see a non-blank email:

echo "quick message" > /tmp/bigboy-junk-from-amon
mailx -s"test from amon" bigboy@hotmail.com < /tmp/bigboy-junk-from-amon

Please report if bigboy gets this message or not.
# 7  
Old 03-21-2006
no mail has not been delivered
I was wondering do I need to configure MTA or something with DNS...

OK I get this error when I check in mail..

----- The following addresses had permanent fatal errors -----
myaddress@domain.com

----- Transcript of session follows -----
550 5.1.2 myaddress@domain.com... Host unknown (Name server: mailhost: host not found)

--k2L7IoI22312.1142925530/x3commbrsrv.
Content-Type: message/delivery-status

Reporting-MTA: dns; x3commbrsrv.
Arrival-Date: Tue, 21 Mar 2006 08:18:50 +0100 (MET)

Final-Recipient: RFC822; myaddress@domain.com
Action: failed
Status: 5.1.2
Remote-MTA: DNS; mailhost
Last-Attempt-Date: Tue, 21 Mar 2006 08:18:50 +0100 (MET)

--k2L7IoI22312.1142925530/x3commbrsrv.
Content-Type: message/rfc822

Return-Path: <MAILER-DAEMON>
Received: from localhost (localhost)
by x3commbrsrv. (8.11.6+Sun/8.11.6) id k2L7IoH22312;
Tue, 21 Mar 2006 08:18:50 +0100 (MET)
Date: Tue, 21 Mar 2006 08:18:50 +0100 (MET)
From: Mail Delivery Subsystem <MAILER-DAEMON>
Message-Id: <200603210718.k2L7IoH22312@x3commbrsrv.>
To: myaddress@domain.com
MIME-Version: 1.0
Content-Type: multipart/report; report-type=delivery-status;
boundary="k2L7IoH22312.1142925530/x3commbrsrv."
Subject: Returned mail: see transcript for details
Auto-Submitted: auto-generated (failure)

This is a MIME-encapsulated message

--k2L7IoH22312.1142925530/x3commbrsrv.

The original message was received at Tue, 21 Mar 2006 08:18:49 +0100 (MET)
from root@localhost

----- The following addresses had permanent fatal errors -----
myaddress@domain.com

----- Transcript of session follows -----
550 5.1.2 myaddress@domain.com... Host unknown (Name server: mailhost: host not found)

--k2L7IoH22312.1142925530/x3commbrsrv.
Content-Type: message/delivery-status

Reporting-MTA: dns; x3commbrsrv.
Arrival-Date: Tue, 21 Mar 2006 08:18:49 +0100 (MET)

Final-Recipient: RFC822; myaddress@domain.com
Action: failed
Status: 5.1.2
Remote-MTA: DNS; mailhost
Last-Attempt-Date: Tue, 21 Mar 2006 08:18:50 +0100 (MET)

--k2L7IoH22312.1142925530/x3commbrsrv.
Content-Type: message/rfc822

Return-Path: <myaddress@domain.com>
Received: (from root@localhost)
by x3commbrsrv. (8.11.6+Sun/8.11.6) id k2L7InI22310
for myaddress@domain.com; Tue, 21 Mar 2006 08:18:49 +0100 (MET)
Date: Tue, 21 Mar 2006 08:18:49 +0100 (MET)
From: myaddress@domain.com
Message-Id: <200603210718.k2L7InI22310@x3commbrsrv.>
To: myaddress@domain.com
Subject: hi


--k2L7IoH22312.1142925530/x3commbrsrv.--


--k2L7IoI22312.1142925530/x3commbrsrv.--









so I have to say that I send mail with this command:

/bin/mailx -s "hi" -r myaddress@domain.com myaddress@domain.com < t ,


where myaddress@domain.com is my address and I did not put my real address here..
I also set IP of mail server in etc/hosts:

123.123.123.123 domain.com


so what could be a problem??


thanks friends...
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

How to send mail using PHP mail function On apache server.?

Hello, I am using centos-6.2 I have apache server,php5 on my system and I want to send mail using sendmail on my system. when I try to send mail from shell that time mail is succesfully sent to respective address() but when I try to send it through webbrowser I am not able to send it.... (1 Reply)
Discussion started by: Kiran ursal
1 Replies

3. UNIX for Advanced & Expert Users

How can I send a mail from my outlook or other mail accounts to UNIX server?

Hi all, I want to send a mail for my business needs from outlook account to an unix server (HP-UX) but I don't send any mail. While I can send from the unix server to my outlook account, I can't send from outlook to unix. How can I achieve this ? How can I send a mail from my outlook or other... (2 Replies)
Discussion started by: igelegin
2 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. 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

6. 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

7. Shell Programming and Scripting

Pull E-mail address from file, send e-mail

Hello, I am new to perl and need to create a script that will read a file and pull a name from the file and send e-mail. How can I use the following awk statement in a perl script? grep UNIXadmins /root/mail.conf | awk '{ print $2}' and use the output to send a e-mail. Any help would... (1 Reply)
Discussion started by: DC Heard
1 Replies

8. UNIX for Dummies Questions & Answers

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... (1 Reply)
Discussion started by: irasela
1 Replies

9. UNIX for Dummies Questions & Answers

I am not able to send mail form unix to other mail accounts.

Using Mailx command i.e mailx -s "subject" chinni@hotmail.com < \tmp\chin this command executed sucessfully but not able to receive the mail in chinni@hotmail.com please help. (1 Reply)
Discussion started by: chinnigd
1 Replies

10. UNIX for Dummies Questions & Answers

can not send mail from unix server to company/yahoo mail

hi, Gurus, I need some help with sending mail out from my UNIX server: It is running Solaris 2.6 and the sendmail version is 8.8. Output of :/usr/lib/sendmail -d0.1 -bt < /dev/null Version 8.8.8+Sun Compiled with: LOG MATCHGECOS MIME7TO8 MIME8TO7 NAMED_BIND NDBM NETINET ... (5 Replies)
Discussion started by: b5fnpct
5 Replies
Login or Register to Ask a Question