Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Technical

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 15th October 2007, 23:59
Mosquito Mosquito is offline
Member
 
Join Date: Nov 2006
Posts: 85
Thanks: 5
Thanked 6 Times in 5 Posts
Default Sendmail stat=Deferred: Connection refused by [127.0.0.1]

Recently I started having a problem with Sendmail on my Fedora 7 server. The only thing that I can thing of that has changed recently, is I did a yum update. I know that's know very specific, and no I don't know exactly what was installed when I did it, because I am not 100% sure of when it broke.

The problem is, when I use send mail to send a message from the server, I am getting the following error in my maillog:

Code:
Oct 15 10:07:25 mail sendmail[16375]: l9FF7Pp6016375: to=user@mydomain.com, ctladdr=Mosquito (500/500), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30099, relay=[127.0.0.1] [127.0.0.1], dsn=4.0.0, stat=Deferred: Connection refused by [127.0.0.1]
Oct 15 10:42:06 mail sendmail[16478]: l9FFg0a6016478: from=Mosquito, size=11, class=0, nrcpts=1, msgid=<200710151542.l9FFg0a6016478@mail.mydomain.com>, relay=Mosquito@localhost
(Domain information has been sanitized)

First, I thought it was a firewall issue, so I compared it to my Fedora 7 desktop - which is located on the same network behind the same router. The firewall rules match.

Code:
sudo iptables -L
Password:
Chain INPUT (policy ACCEPT)
target     prot opt source               destination
RH-Firewall-1-INPUT  all  --  anywhere             anywhere

Chain FORWARD (policy ACCEPT)
target     prot opt source               destination
REJECT     all  --  anywhere             anywhere            reject-with icmp-host-prohibited

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination

Chain RH-Firewall-1-INPUT (1 references)
target     prot opt source               destination
ACCEPT     all  --  anywhere             anywhere
DROP       icmp --  anywhere             anywhere            icmp any
ACCEPT     tcp  --  anywhere             anywhere            tcp dpt:ipp
ACCEPT     all  --  anywhere             anywhere            state RELATED,ESTABLISHED
ACCEPT     tcp  --  anywhere             anywhere            state NEW tcp dpt:ftp
ACCEPT     tcp  --  anywhere             anywhere            state NEW tcp dpt:smtp
ACCEPT     tcp  --  anywhere             anywhere            state NEW tcp dpt:ssh
ACCEPT     tcp  --  anywhere             anywhere            state NEW tcp dpt:https
ACCEPT     tcp  --  anywhere             anywhere            state NEW tcp dpt:http
ACCEPT     tcp  --  anywhere             anywhere            state NEW tcp dpt:mysql
REJECT     all  --  anywhere             anywhere            reject-with icmp-host-prohibited
Can anyone help me? Why does send mail fail on the server but succeed on the desktop? Both are running Fedora 7 and are on the same network behind the same firewall. There are no external firewall rules forwarding to either machine (I use sendmail to send out monitoring alerts, not to receive email)

Last edited by Mosquito; 16th October 2007 at 15:23.
Reply With Quote
The Following User Says Thank You to Mosquito For This Useful Post:
Williamsl (11th July 2014)
Sponsored Links
  #2  
Old 17th October 2007, 04:39
Mosquito Mosquito is offline
Member
 
Join Date: Nov 2006
Posts: 85
Thanks: 5
Thanked 6 Times in 5 Posts
Default

I figured out how to solve this problem. I'm not entirely sure what caused it in the first place, but I did determine some differences between the server and the desktop and was able to use that to solve my problems.

First, on the server, sendmail had been changed to run only on run level 4 - while on the desktop it runs on 2, 3, 4 and 5.

I ran the following to reset sendmail to match the desktop.
Code:
sudo chkconfig --levels 235 sendmail on
After this, simply restarting the sendmail service made sendmail work.
Code:
sudo service sendmail restart
Reply With Quote
The Following User Says Thank You to Mosquito For This Useful Post:
bowlAltetle (21st July 2014)
  #3  
Old 18th January 2010, 22:51
seangates seangates is offline
Junior Member
 
Join Date: Jan 2010
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by Mosquito View Post
I ran the following to reset sendmail to match the desktop.
Code:
sudo chkconfig --levels 235 sendmail on
After this, simply restarting the sendmail service made sendmail work.
Code:
sudo service sendmail restart
I know this is old, but: Thank you, thank you, THANK YOU!

This totally fixed my issue. I was pulling my hair out knowing that sendmail was up and running, but just not configured correctly. I'm using an Amazon Web Serveces (EC2) off-the-shelf instance. Hope this helps someone else figure out sendmail on Amazon.

Also, two other settings of note:
  1. use an Elastic IP
  2. then, you need to set up a domain or subdomain for your instance

Last edited by seangates; 18th January 2010 at 22:52. Reason: misspelling
Reply With Quote
  #4  
Old 4th July 2014, 21:14
brum brum is offline
Junior Member
 
Join Date: Jul 2014
Posts: 1
Thanks: 0
Thanked 1 Time in 1 Post
 
Default

What fixed my exact issue is very simple
http://www.dolejarz.com/sendmail-def...sed-127-0-0-1/
Reply With Quote
The Following User Says Thank You to brum For This Useful Post:
Williamsl (24th July 2014)
Reply

Bookmarks

Thread Tools
Display Modes

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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Email not going out! cybereatl Installation/Configuration 12 28th February 2007 14:02
My php scripts don't send e-mail html forms. CombatGod Installation/Configuration 5 8th November 2006 10:16
E-mail problem MateKrisz Installation/Configuration 9 2nd June 2006 09:48
Email seemingly not working... Duplex Installation/Configuration 11 19th April 2006 14:48
plenty of procmail/trashscan processes ZyanKLee Installation/Configuration 10 27th December 2005 20:09


All times are GMT +2. The time now is 23:08.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.