LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
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 06-04-2009, 05:45 PM   #1
deibertine
Member
 
Registered: Mar 2009
Posts: 222

Rep: Reputation: 30
Unhappy Mail not sending


Hi all,

I need expert advise on this.

I'm trying to send mail in my RH box but when doing so:
mail -s "Test_3&84290.tpxml status" dbertine@csaa-dev.com<. > /dev/null

It seems to have sent with no error returns but looking at my inbox, nothing - no mail received.

I looked at the mail log and found this:
Jun 4 17:21:28 csaa-devbox sendmail[8616]: n54LLSqA008616: to=dbertine@csaa-dev.com, ctladdr=root (0/0), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30043, relay=[127.0.0.1] [127.0.0.1], dsn=4.0.0, stat=Deferred: Connection refused by [127.0.0.1]

nmap gives me this output:
# nmap -p 1-1024 localhost
Starting nmap 3.70 ( http://www.insecure.org/nmap/ ) at 2009-06-04 14:40 PDT
Interesting ports on csaa-devbox (127.0.0.1):
(The 1020 ports scanned but not shown below are in state: closed)
PORT STATE SERVICE
22/tcp open ssh
80/tcp open http
111/tcp open rpcbind
1012/tcp open unknown
Nmap run completed -- 1 IP address (1 host up) scanned in 0.172 seconds

Iptables gives me this:
# iptables -L -n
Chain INPUT (policy ACCEPT)
target prot opt source destination
ACCEPT tcp -- 0.0.0.0/0 0.0.0.0/0 tcp dpt:5666
Chain FORWARD (policy ACCEPT)
target prot opt source destination
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
ACCEPT tcp -- 0.0.0.0/0 0.0.0.0/0 tcp dpt:5666

Please let me know if you have further questions.

Thanks in advance!
DB
 
Old 06-04-2009, 05:54 PM   #2
rweaver
Senior Member
 
Registered: Dec 2008
Location: Louisville, OH
Distribution: Debian, CentOS, Slackware, RHEL, Gentoo
Posts: 1,833

Rep: Reputation: 164Reputation: 164
The simple answer is: "stat=Deferred: Connection refused by [127.0.0.1]" Your machine is refusing connection... and based on what I can see you your "firewall" isnt' blocking anything. Mostly it looks like your mail daemon isn't running.

try /etc/init.d/daemonname start

(eg: where daemonname is exim, postfix, etc-- whatever you have setup.)

Ralph
 
Old 06-05-2009, 12:42 PM   #3
deibertine
Member
 
Registered: Mar 2009
Posts: 222

Original Poster
Rep: Reputation: 30
Talking Mail not sending

Quote:
Originally Posted by rweaver View Post
The simple answer is: "stat=Deferred: Connection refused by [127.0.0.1]" Your machine is refusing connection... and based on what I can see you your "firewall" isnt' blocking anything. Mostly it looks like your mail daemon isn't running.

try /etc/init.d/daemonname start

(eg: where daemonname is exim, postfix, etc-- whatever you have setup.)

Ralph
Restarting the daemon did it for me!

Thanks Ralph.
 
Old 06-08-2009, 03:43 PM   #4
rweaver
Senior Member
 
Registered: Dec 2008
Location: Louisville, OH
Distribution: Debian, CentOS, Slackware, RHEL, Gentoo
Posts: 1,833

Rep: Reputation: 164Reputation: 164
Quote:
Originally Posted by deibertine View Post
Restarting the daemon did it for me!

Thanks Ralph.
No problem, glad to help
 
  


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
sending mail from win xp to linux imap mail server cvdsamy Red Hat 2 05-30-2009 01:37 AM
Sending root mail to an external mail account aquaboot Debian 13 01-09-2009 08:23 PM
Mailserver sending but not sending mail from outside. simango Linux - Newbie 1 10-28-2008 09:51 AM
Postfix mail transfer agent not sending mail locally or to other servers sketelsen Linux - Software 3 02-09-2006 12:16 PM
Cron mail sending using outside SMTP mail server Utah Linux - Software 6 08-24-2005 08:44 PM


All times are GMT -5. The time now is 05:34 AM.

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