LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 12-23-2005, 09:47 AM   #1
balavignesh
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...!!!



regards
bala
 
Old 12-23-2005, 03:50 PM   #2
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 6,580
Blog Entries: 14

Rep: Reputation: 969Reputation: 969Reputation: 969Reputation: 969Reputation: 969Reputation: 969Reputation: 969Reputation: 969
You may need to specify the mail relay host in sendmail.cf. 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 sendmail.cf (usually /etc/mail/sendmail.cf) like:

# "Smart" relay host (may be null)
DS

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

Original Poster
Rep: Reputation: 0
i have seen the sendmail.cf 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)
DS

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


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
Mail Issue sachinh Linux - Software 1 02-23-2005 09: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 07:06 PM
mail is not delivered thru the mail command aadilkhan Linux - General 1 11-18-2003 06:37 PM
cannot receive mail -- mail command andy18 Linux - General 1 09-09-2003 04:13 PM
Using the 'mail' command to mail a file Crashed_Again Linux - Software 2 08-08-2003 06:19 AM


All times are GMT -5. The time now is 01:04 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration