Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 12-23-2005, 08:47 AM   #1
LQ Newbie
Registered: Dec 2005
Posts: 5

Rep: Reputation: 0
mail command issue ...!!!

hai experts,

We have Linux servers for our clients and we need to use mail command from the servers as follows

mail -s "test" emailid

this command is working good and we are able to receive mail from some of the Linux servers and the command is not working it seems as we could not get any mails from some of Linux servers.

what might be the cause and fix for the same..?

Plz help out...!!!

Old 12-23-2005, 02:50 PM   #2
LQ Guru
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,237
Blog Entries: 15

Rep: Reputation: 1319Reputation: 1319Reputation: 1319Reputation: 1319Reputation: 1319Reputation: 1319Reputation: 1319Reputation: 1319Reputation: 1319Reputation: 1319
You may need to specify the mail relay host in Here they made a change recently to ignore mail from machines that didn't specify the relay explicitly - it sounds like you may have the same issue.

Look for entries in (usually /etc/mail/ like:

# "Smart" relay host (may be null)

Just append the name of your mail server to the "DS":
# "Smart" relay host (may be null)
Old 12-27-2005, 08:19 AM   #3
LQ Newbie
Registered: Dec 2005
Posts: 5

Original Poster
Rep: Reputation: 0
i have seen the in /etc and it seems that file contents are same when compared to the file in a linux server where mail could be received with the other linux server where mail could not be received.

In both cases
it is set as
# "Smart" relay host (may be null)

This is working for a machine and not for another machine..
Moreover we would like to get the email from Linux server to our mail account which belongs to yahoo,gmail or any other domains.

This is the scenario.

what else need to be looked out..?
what could be done to fix the issue...?

plz help out..!!


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
Mail Issue sachinh Linux - Software 1 02-23-2005 08:28 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
mail is not delivered thru the mail command aadilkhan Linux - General 1 11-18-2003 05:37 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 > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:29 PM.

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