LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 06-15-2007, 09:25 PM   #1
jhwilliams
Senior Member
 
Registered: Apr 2007
Location: Portland, OR
Distribution: Debian, Android, LFS
Posts: 1,168

Rep: Reputation: 211Reputation: 211Reputation: 211
mail command


when i issue

echo "Hello someone!" | mail someone@domain.com,

someone@domain.com does not receive my message. What could be causing this? How do I set this up?

Fedora Core 6, firewall on, selinux off. Thanks!
 
Old 06-15-2007, 09:59 PM   #2
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
Does typing this from a terminal give you an error (I get one)?


Try single quotes
 
Old 06-15-2007, 10:42 PM   #3
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Quote:
Originally Posted by jhwilliams
when i issue

echo "Hello someone!" | mail someone@domain.com,

someone@domain.com does not receive my message. What could be causing this? How do I set this up?

Fedora Core 6, firewall on, selinux off. Thanks!
Hard to say ... what does the mail-log say, when you
fire up mail (just type mail<RET>, no parameters), do
you see any responses from a postmaster?



Cheers,
Tink
 
Old 06-16-2007, 08:45 AM   #4
jhwilliams
Senior Member
 
Registered: Apr 2007
Location: Portland, OR
Distribution: Debian, Android, LFS
Posts: 1,168

Original Poster
Rep: Reputation: 211Reputation: 211Reputation: 211
Yes, you are right... the ! causes an error on bash. I fabricated the example. I had actually done an ls | mail, to send my movie list to a friend.

Anyway, there is nothing from the post master, when i issue mail without any parameter My account has no mail. It is as though the mail never leaves my computer. Thunderbird works fine on 25 outbound.

/var/log/maillog has this to say:

Jun 15 22:05:10 sage sendmail[26400]: l5G25Awh026400: to=[email removed from this post], ctladdr=jameson (500/500), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30655, relay=[127.0.0.1] [127.0.0.1], dsn=4.0.0, stat=Deferred: Connection refused by [127.0.0.1]

Last edited by jhwilliams; 06-16-2007 at 08:55 AM.
 
Old 06-16-2007, 02:41 PM   #5
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Has the machine ever been able to deliver any mail?
It looks like it's trying to deliver the mail locally,
but is getting a "connection refused"



Cheers,
Tink
 
  


Reply

Tags
command, fc6, mail



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
Unable to send mail using mail command faruque.ahmed Linux - Software 1 02-03-2007 10:29 AM
mail settings in linux mail command cad Linux - General 1 01-27-2007 04:23 AM
Cannot send mail with mail() command in PHP 4.3.4, Apache 2.0.48, Mandrake Linux 10 arcanum Linux - General 3 06-27-2004 06:06 PM
cannot receive mail -- mail command andy18 Linux - General 1 09-09-2003 03:13 PM
Using the 'mail' command to mail a file Crashed_Again Linux - Software 2 08-08-2003 05:19 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:34 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration