LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 11-18-2005, 01:30 PM   #1
bmeckle
Member
 
Registered: Jun 2004
Posts: 60

Rep: Reputation: 15
mail command


I have a box that recently stopped sending emails. Originally I thought it was because we changed the firewall and the rules where probably not set up correctly. But upon further review I see that it is trying to connect back to the loop back address instead of connecting to the mail server. It use to work fine, not sure what changed, but I really don't know mail that well and the man page was not much help on this one. This is what I get when I try to send a test email.

somebox:[/root]$echo "test" | mail user@company.com -v
root... Connecting to [127.0.0.1] via relay...
root... Deferred: Connection refused by [127.0.0.1]

I don't understand why it would be trying to send things back to it's self. I don't have mailx on this particular system. It does not run sendmail or any other mail server for security reasons. The server does resolve the name of the mail server and is able to ping it.

Any help is greatly appreciated.

Thanks,
Bob
 
Old 11-18-2005, 06:07 PM   #2
Berhanie
Senior Member
 
Registered: Dec 2003
Location: phnom penh
Distribution: Fedora
Posts: 1,625

Rep: Reputation: 165Reputation: 165
You might check the man page for the name and location of the config file (something like /etc/mailrc) and then look for a line with 'smtp' (something like set smtp=localhost which should be changed to reflect the desired smtp server, like set smtp=smtp.isp.com). Bear in mind that many mailers are not intelligent enough to submit to remote smtp servers, so what you're looking for may not be possible with your present software. In the worst case, you can look for a program called nail which does have this functionality.
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Using the MAIL command iatemyfingers Linux - Newbie 1 06-29-2005 11:56 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

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 08:31 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
Open Source Consulting | Domain Registration