Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Server
User Name
Linux - Server This forum is for the discussion of Linux Software used in a server related context.


  Search this Thread
Old 05-04-2007, 04:50 AM   #1
LQ Newbie
Registered: Apr 2007
Posts: 14

Rep: Reputation: 1
Cool sendmail deferred: Connection refused


I'm posting this again because the previous post seems to not have appeared.

I've setup my email system on fedora 5 with the following: sendmail, dovecot, squirrelmail with authentication against w2k3 active directory.

Email works fine except for inbound mail from the internet. They come into the mail queue (/var/spool/mqueue) and don't seem to get distributed to the mailboxes.

sendmail -q -v gives:
... Deferred: Connection refused by

/var/log/maillog shows:

May 4 09:31:49 mailgate2 sendmail[24266]: l3UB91eZ003231: to=<>, delay=3+21:22:48, xdelay=00:00:00, mailer=esmtp, pri=10952815,, dsn=4.0.0, stat=Deferred: Connection refused by

Any help would be appreciated
Old 05-04-2007, 06:14 AM   #2
LQ Newbie
Registered: Apr 2007
Posts: 14

Original Poster
Rep: Reputation: 1


I've isolated the above problem to be a name resolution thing. If I send a mail to, (assuming is my domain) the mail gets to the queue and no further. If I send to, then the mail is delivered.

Also, if I open squirrelmail and send a mail to "myself" (without the, then the mail is delivered, but the From field says

However, I'd appreciate suggestions. Thanks
Old 05-04-2007, 06:34 AM   #3
LQ Newbie
Registered: Apr 2007
Posts: 14

Original Poster
Rep: Reputation: 1
Just to let you know the problem seems to be sorted. I had to put my domain name in /etc/mail/local-host-names

That was it! Thanks for looking.
1 members found this post helpful.


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 - Connection timed out [dsn=4.0.0 stat=Deferred: Connection timed out] ananthak Linux - Software 0 04-24-2007 08:28 AM
SendMail Not Sending, Messages Stuck In Queue As: Deferred: Connection JustinK101 Linux - Software 43 03-30-2007 01:21 AM
sendmail: stat=Deferred: Connection timed out with intranet_man Linux - Software 1 07-19-2005 12:04 PM
sendmail Deferred: Connection refused by localhost.localdomain. 360 Linux - Software 6 03-31-2003 02:07 PM
Pine: Deferred: Connection refused .... katana Linux - General 4 08-09-2001 10:07 AM > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 08:06 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration