LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   mail command issue ...!!! (https://www.linuxquestions.org/questions/linux-newbie-8/mail-command-issue-395901/)

balavignesh 12-23-2005 08:47 AM

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

MensaWater 12-23-2005 02:50 PM

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

balavignesh 12-27-2005 08:19 AM

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


All times are GMT -5. The time now is 03:36 AM.