LinuxQuestions.org
Review your favorite Linux distribution.
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 01-05-2007, 12:24 AM   #1
dphe
LQ Newbie
 
Registered: Jan 2007
Posts: 2

Rep: Reputation: 0
Question Mail -s command not working appropriately


Hi,

Was trying out the mail -s "subject" [addr] < "filename" command. This only seems to work for some of the email addresses.

I tried sending the mail to around 5 email addresses and found that even though I sent the mail, the mails are not delivered to few of the addresses. If I were to make a grouped mails address for these people it seems to go, that is since the mail is first sent to the group and then distributed by the corresp. server.

In the above case the mail -s command was used individually for these email addresses.

Not sure why the few addresses where not delivered the mail. All of the email addresses belong to the same domain.

So is there any way to check why was the mail not delivered or is there any concept of white/black listing with the mail client. If so how to check that. I am working on Redhat AS-4 server. Can anybody guide me on this.

Thanks in advance.
 
Old 01-05-2007, 05:15 PM   #2
Berhanie
Senior Member
 
Registered: Dec 2003
Location: phnom penh
Distribution: Fedora
Posts: 1,625

Rep: Reputation: 165Reputation: 165
First, welcome to LQ.

Regarding your question, you can check your maillog as to the reason why some of the mail wasn't delivered. Also, make sure you are using the appropriate syntax for the mail command, e.g.
Code:
mail -s "The Subject" alice@example.net bob@whatever.com < message_file
 
Old 01-09-2007, 12:02 AM   #3
dphe
LQ Newbie
 
Registered: Jan 2007
Posts: 2

Original Poster
Rep: Reputation: 0
Yeah the syntax is pretty much right. Thanks for the welcome line. But the problem is that i was able to send mails to these addresses before. But now the same set of addresses don't receive any mails. So just wanted to knw whether is there any logs that are maintained for mail delivery failure? or might be anything else that can help me debug the problem.
 
Old 01-09-2007, 12:13 AM   #4
Berhanie
Senior Member
 
Registered: Dec 2003
Location: phnom penh
Distribution: Fedora
Posts: 1,625

Rep: Reputation: 165Reputation: 165
Mail messages usually logged in something like /var/log/maillog. If there's a problem with some recipients, it'll be logged there.
 
  


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
NEED HELP - - Yum is not executing appropriately purple.moon.man Fedora 2 09-06-2005 09:37 PM
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


All times are GMT -5. The time now is 01:04 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