LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris
User Name
Password
Solaris / OpenSolaris This forum is for the discussion of Solaris and OpenSolaris.
General Sun, SunOS and Sparc related questions also go here.

Notices

Reply
 
Search this Thread
Old 06-09-2009, 02:45 AM   #1
smart_jija
LQ Newbie
 
Registered: Jun 2009
Posts: 6
Blog Entries: 1

Rep: Reputation: 0
Smile Send mail to root but it send to other email


OS : Sun OS 5.7

[root@test /etc]$ mail root
Subject: test_1
test^D
EOT
[root@test /etc]
[root@test /etc]$ mail
No mail for root

I find it other email.

Please solve problem.
 
Old 06-09-2009, 04:10 AM   #2
IW2B
Member
 
Registered: Aug 2008
Location: Denmark
Distribution: Fedora, Ubuntu, Solaris
Posts: 35

Rep: Reputation: 19
Hi,

Try running the following:

sendmail -bv root
grep root /etc/mail/aliases

Both should just tell you where root emails go, it should be defined in the alias file. If the outputs does not match it could be that the alias file is not updated, run:

newalias

Check for a .forward file in roots home directory.

Regards
Ian
 
Old 06-11-2009, 05:57 AM   #3
smart_jija
LQ Newbie
 
Registered: Jun 2009
Posts: 6
Blog Entries: 1

Original Poster
Rep: Reputation: 0
Thank you. for Answer

I try to follow :
sendmail -bv root
grep root /etc/mail/aliases

Resutl :

[root@frontal2 ~]$ sendmail -bv root
bash: sendmail: command not found
[root@frontal2 ~]$ grep root /etc/mail/aliases
Postmaster: root
nobody: root
hostmaster: root
usenet: root
news: root
webmaster: root
www: root
ftp: root
abuse: root
noc: root
security: root


I found email at /root/.forword and I change email in .forword file.
It doesn't send to new email. I use old email . It send.

I guess that Network not send to other email.

Do I guess true?
Please Answer me.
 
Old 06-18-2009, 08:06 AM   #4
IW2B
Member
 
Registered: Aug 2008
Location: Denmark
Distribution: Fedora, Ubuntu, Solaris
Posts: 35

Rep: Reputation: 19
Hi,

The full command path is:

/usr/sbin/sendmail -bv root

is the other email address local on this machine?

Also check /var/log/syslog.

What exactly was/is the content of roots .forward file.

Ian
 
Old 06-29-2009, 03:51 AM   #5
smart_jija
LQ Newbie
 
Registered: Jun 2009
Posts: 6
Blog Entries: 1

Original Poster
Rep: Reputation: 0
sendmail have not in path:/usr/sbin/.
I think that it have not this command.

/var/log/syslog have not content.
-rw-r--r-- 1 root 0 Jul 9 2000 syslog
 
Old 07-01-2009, 01:33 AM   #6
smart_jija
LQ Newbie
 
Registered: Jun 2009
Posts: 6
Blog Entries: 1

Original Poster
Rep: Reputation: 0
file : /var/mail/root

somprat@<mydomain>.net
(reason: 550 Host unknown)

----- Transcript of session follows -----
550 5.1.2 somprat@<mydomain>.net... Host unknown (Name server: mailhost.loxinfo.co.th: host not found)

I don't know that why somprat@<mydomain>.net Host unknown.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
command line email client to send mail to remote mail server dhanju Linux - Software 1 03-07-2008 06:37 AM
Postfix : mail cannot send to send outside ( can send/receive locally) bobbinsupport Linux - Networking 3 12-15-2007 10:40 PM
how do I send email through mail noninteractively? laggerific Linux - Software 2 12-15-2006 09:28 AM
Send Email from root janap-146 Slackware 4 10-02-2006 01:51 PM
Send root mail to email address GUIPenguin Linux - General 1 03-01-2005 07:16 PM


All times are GMT -5. The time now is 04:12 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration