hosted by liquidweb


Go Back   Web Hosting Talk : Web Hosting Main Forums : Hosting Security and Technology : Qmail hangs on external connections
Reply

Hosting Security and Technology Configuring and optimizing web hosting servers and operating systems, developing administration scripts, building servers, protecting against hackers, and general security (SSL certificates, etc.)
Forum Jump

Qmail hangs on external connections

Reply Post New Thread In Hosting Security and Technology Subscription
 
Send news tip View All Posts Thread Tools Search this Thread Display Modes
  #1  
Old 05-19-2005, 03:55 AM
Pingu Pingu is offline
Junior Guru
 
Join Date: Jan 2001
Location: Netherlands
Posts: 236

Qmail hangs on external connections


I'm installing a new server (CentOS4), and most of it is done. I was under the impression that even Qmail works as expected, until I noticed I wasn't getting any email from outside the server. Locally it works fine. Email from one local user to another works fine. I've done testing with Telnet sessions to port 25. Locally, again, it responds all happy and everything is just fine.
But when I start a telnet session to port 25 from my home pc, it makes a connection, and then just "hangs", nothing happens...

I've tried with my firewall down, but that's not the problem. I've checked file permissions/ownership as much as I could, but that's not clear as Qmail uses half a dozen accounts

Two questions here:
Anyone have a clue why external connections to port 25 end up hanging in nothingness?

Where oh where can I find info about file permissions and ownerships and such for Qmail related stuff?

__________________
Hmm, what does this do... Oops!

Reply With Quote


Sponsored Links
  #2  
Old 05-19-2005, 11:27 AM
jesta jesta is offline
Newbie
 
Join Date: Apr 2005
Posts: 13
Is it possilbe that there is a firewall in between your server and the rest of the world. Having the connection hang rather than drop sounds very much like someone along the line is droping your connection attempt, rather than the server denying it. Even having bogus settings passed to tcpserver (which is assume you have running qmail-smtpd) it won't just hang it will drop your connection.

On the other hand I might be completely wrong.

Pete

Reply With Quote
  #3  
Old 05-19-2005, 11:41 AM
Arny Arny is offline
WHT Addict
 
Join Date: Oct 2004
Posts: 133
I know that this may not sound very helpful, but why not remove the Qmail and install Exim ?
Qmail is good but hard to configure, and one day you will have to set up some kind of spam filters, which will take time with Qmail,
Exim seems much easier to configure and run.

Reply With Quote
Sponsored Links
  #4  
Old 05-19-2005, 03:37 PM
Pingu Pingu is offline
Junior Guru
 
Join Date: Jan 2001
Location: Netherlands
Posts: 236
A firewall was my thought as there are no problems locally, just externally. Weird though, because port 25 is open of course. Plus my home ip has special privileges. Still, you never know, so I've tried without the firewall and unfortunately the result is exactly the same.

I've also no problems with sending email to external addresses. The emails I've send were send from webmail, so I guess from local to external. I wonder if I can connect a mailclient from the outside...

With reagrds to Arny, not helpful is any reply not given. A reply seriously suggesting an alternative is as good as any answer and I will look into Exim. I'm rather attached to Qmail though. Last time I installed it (with virusscanning and SpamAssassin integrated) was a while ago, and I also ran into some issues. But the benefit of Qmail is that the version I installed back then has done an excellent job for two years, practically without manual interference. Can Exim, or any other mailsolution, beat that?

Anyway, about the problem I'm facing now, can selinux have something to do with it? selinux is running, and no, I have no experience whatsoever with it.

__________________
Hmm, what does this do... Oops!

Reply With Quote
  #5  
Old 05-19-2005, 07:34 PM
Arny Arny is offline
WHT Addict
 
Join Date: Oct 2004
Posts: 133
Pingu, I`m agree with you. Qmail rocks, but the problems that I have met (and my colleagues as well) with it were more than the benefits.
I don`t know if Exim can beat that If you are happy with Qmail, than don`t change it. I`m not from the kind of ppl who would say
that something is good simply because I did not have any problems with. Everything is good as long as it does the job

Ask your ISP if they can connect. This can be because a router in-between cuts that port. If you have a hosting account anywhere(not on that server) with SSH access, try to connect from there to your server and see what will happen.

Reply With Quote
  #6  
Old 05-19-2005, 07:50 PM
choon choon is offline
Retired Moderator
 
Join Date: Jul 2001
Location: Singapore
Posts: 1,790
Pingu, try to setup/configure another smtpd listening on port 26 and see whether you are able to relay mails through it?

__________________
Giam Teck Choon
:: Join choon.net Community today to share your tips and tricks on server issues please ::
:: Singapore Dedicated Servers :: Singapore Virtual Private Servers :: Linux/FreeBSD Server Management ::


Reply With Quote
  #7  
Old 05-20-2005, 05:43 AM
Pingu Pingu is offline
Junior Guru
 
Join Date: Jan 2001
Location: Netherlands
Posts: 236
Thanks for the replies, guys. I've got it working now, after spending a couple of hours doing a (re)reinstall. The reinstall messed things up even more though, so I had even more to fix.

For those interested, I had to fix a couple of things:
Permissions and ownership needed to be corrected on several files and directories. Especially since for the reinstall new accounts were used, and those accounts weren't compiled in. After recompiling and reinstalling with the right accounts I still had permission issues that needed to be fixed.

But the biggest issue was with my /var/qmail/supervise/qmail-smtpd/run file. It's hard to say what was wrong exactly, but somehow the whole thing got stuck when bumping in a no permission to run or not existing /usr/local/bin/rblsmtpd. "ps -ef" showed "readproctitle service errors: ...38463?rblsmtpd: fatal: unable to run : file does n" Try and guess the full line here...
Anyway, that's pretty weird because /usr/local/bin/rblsmtpd exists and permissions are correct. Perhaps some hidden characters/spaces were in odd places in the run file? It was a copy/paste job from the previous server.
I corrected the error by trying a minimal run file and built up gradually. I've got the full deal running now, basically the same as the one that crashed on rblsmtpd. With rblsmtpd of course...

All is well now? Umm, next I need to figure out how to fix "warning: unable to stat mess"
Qmail stat seems to think there are hundreds of messages in the queues, but there's nothing there.

But for today (and probably the whole weekend) I'm kinda fed up with the darn thing...

__________________
Hmm, what does this do... Oops!

Reply With Quote
Reply

Related posts from TheWhir.com
Title Type Date Posted
50e60d71-40a8-4ceb-9b88-356345a799de Listing 2013-03-05 18:26:17
50d46ad4-7db4-42e5-ba39-4c2745a799bf Listing 2013-03-05 18:24:19
50d46ad4-f098-434a-9294-4c2a45a799bf Listing 2013-03-05 18:24:20
50d46ad3-cd68-4c75-8da2-4c1e45a799bf Listing 2013-03-05 18:24:17
50d46ad3-2118-4e13-a702-4c2245a799bf Listing 2013-03-05 18:24:18


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes
Postbit Selector

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

Forum Jump
Login:
Log in with your username and password
Username:
Password:



Forgot Password?
Advertisement:
Web Hosting News:



 

X

Welcome to WebHostingTalk.com

Create your username to jump into the discussion!

WebHostingTalk.com is the largest, most influentual web hosting community on the Internet. Join us by filling in the form below.


(4 digit year)

Already a member?