LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices

Reply
 
Search this Thread
Old 03-03-2009, 12:41 AM   #1
djcs
Member
 
Registered: Jun 2006
Posts: 43

Rep: Reputation: 15
Cool Sendmail: Socket wedge , 504 error , dsn error, mail relay connection error


I'm hoping that the above title will help other users out there in nix world. Especially those that use sendmail as a simple mail transfer agent to get email out of a lan off a box thats used as a webserver or monitoring machine.

This was all on Debian stable btw. And its an older box which just works so i haven't ever really updated.

I have been using sendmail very happily for a few years now on a number of boxes, and used a very simple config file with only one major change from the Debian default config, that i use my isp's smtp server as the thing that actually sends the emails on. This saves me from having rdns etc....

We had a power issue at the hosting site and found the ups's had run out before power was back, yay for local power company. It even took out ups beside the main server ups as well as a few monitors in the workshop...

Anyways, sendmail stopped working, checking the log files, i got stupid messages about socket wedge's? what the hell, went searching round the net and every thing that was supposed to be in place was in place, and the config files were ok, and nothing had changed from what i had seen. Even did a fsck on the hard drive and came up with no errors.

Wade thru more logfiles, tells me my isp isnt accepting connections for mail transport, do a telnet to mail.isp.com on port 25, everything works fine. Another log entry shows i might have a dsn error. Huh, dns maybe, but no, specifically a dsn error, more hunting, apparently i have issues with my hosts file, but no, everything was as it supposed to be.

After spending 4 hours pulling out what little hair i had left, i said bugger it, and apt-get remove sendmail and everything non critical to do with sendmail with a --purge. Moved all the files in the /etc/mail directory to a new folder and then reinstalled sendmail, and its bits and pieces including rmail. Set my little change up and away it went.

Its working fine now!

Something somewhere go corrupted. I had very little to go on and the error messages just did not add up to what was being described in the various forums etc that i went too. And 90 % of the time, they only got so far and everyone eventually give up on the problem. With very few people giving answers as to what to do and if they did fix it.

I am writing so that this might come up your regular search site and give you a conclusive answer on the problem, if you come across it. I see too many post of problems with no answers. If this helps 1 person, its worth it.


Here is some of the error messages from the log files....
opendaemonsocket: daemon Daemon0: server SMTP socket wedged: exiting

cannot bind: Address already in use

connection timed out; no servers could be reached>, proto=SMTP, daemon=MTA-v4

xdelay=00:00:00, mailer=relay, pri=150857, relay=mail.isp.com [ip.address.here], dsn=5.0.0, stat=Service unavailable

If anyone can elaborate as to what happened or has answers as to how why and what. It would be appreciated....

Last edited by djcs; 03-04-2009 at 01:04 AM. Reason: Spelling Mistake
 
  


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
Sendmail : relay=[127.0.0.1] [127.0.0.1], dsn=4.0.0, stat=Deferred: Connection refuse macadam Linux - Software 0 09-23-2007 02:44 PM
DNS - mail relay error wazza4610 Linux - Networking 4 03-14-2006 08:43 AM
qmailrocks help - No mail? 550 relay not permitted error nixinbarrie Linux - Software 1 07-20-2005 01:41 PM
sendmail error Fetching mail could not lock /var/spool/mail/username sukhdev50 Linux - Networking 0 05-04-2005 03:41 AM
DSN: Data format error & relay=[127.0.0.1] [127.0.0.1] calmbomb Linux - Software 0 11-07-2004 03:24 PM


All times are GMT -5. The time now is 05:56 PM.

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