Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ports are open, but connection refused

Status
Not open for further replies.

MiniMe001

Programmer
Nov 7, 2004
13
US
I don't know if this is specific to qmail or not. I got everything working okay, but I can't download my mail. I set up Thunderbird to download it and got a connection refused error. Figured maybe my ISP was blocking port 110. So I switched to a high-level port (tried a few)--didn't help.
Is there something else I need to open/enable/whatever?
 
You can test this via telnet to see what the issue is, probably an authentication problem...

"telnet mail.example.com 110"

receive a banner from POP3 server

"user username[@example.com]"

receive an acknowledgement

"pass [password]"

receive an acknowledgement

"list"

should show a list of available email messages by number and size (and not much else)

"quit"

If you can do this, the problem is not with POP3 or the user account.

Internet Directory
 
No connection could be made because the target machine actively refused it.
 
Even tried disabling all my firewalls and trying to telnet to 127.0.0.1 using multiple ports. NOTHING works. wtf.
 
are you absolutely sure you have a tcpserver binary listening on that port? I had a problem similar to yours and I figured out that I never started tcpserver to listen on port 110
 
wow, what'dya know. I'm pretty new at the whole server buisness. :p So how do I set it to listen at port 110?
Code:
COMMAND     PID    USER   FD   TYPE DEVICE SIZE NODE NAME
dhclient   1564    root    5u  IPv4   2706       UDP *:68
portmap    1639     rpc    3u  IPv4   2910       UDP *:111
portmap    1639     rpc    4u  IPv4   2911       TCP *:111 (LISTEN)
rpc.statd  1659 rpcuser    4u  IPv4   2945       UDP *:32768
rpc.statd  1659 rpcuser    5u  IPv4   2935       UDP *:987
rpc.statd  1659 rpcuser    6u  IPv4   2948       TCP *:32769 (LISTEN)
sshd       2005    root    3u  IPv6   3297       TCP *:22 (LISTEN)
xinetd     2020    root    5u  IPv4   3343       TCP 127.0.0.1:32770 (LISTEN)
httpd      2066    root    3u  IPv6   3427       TCP *:80 (LISTEN)
httpd      2066    root    4u  IPv6   3429       TCP *:443 (LISTEN)
sshd       3248    root    4u  IPv6  68878       TCP 192.168.1.101:22->192.168.1.103:3963 (ESTABLISHED)
sshd       3250   skara    4u  IPv6  68878       TCP 192.168.1.101:22->192.168.1.103:3963 (ESTABLISHED)
mysqld     4958   mysql    3u  IPv4  13788       TCP *:3306 (LISTEN)
tcpserver  5069  qmaild    3u  IPv4  14039       TCP *:25 (LISTEN)
named      5402   named   20u  IPv4  15260       UDP 127.0.0.1:53
named      5402   named   21u  IPv4  15261       TCP 127.0.0.1:53 (LISTEN)
named      5402   named   22u  IPv4  15262       UDP 192.168.1.101:53
named      5402   named   23u  IPv4  15263       TCP 192.168.1.101:53 (LISTEN)
named      5402   named   24u  IPv4  15264       UDP *:32848
named      5402   named   25u  IPv6  15265       UDP *:32849
ircd      15491    root    0u  IPv4  32770       UDP *:32873
ircd      15491    root    2u  IPv4  32772       TCP *:6398 (LISTEN)
ircd      15491    root    3u  IPv4  32773       TCP *:5823 (LISTEN)
ircd      15491    root    4u  IPv4  32774       TCP *:6667 (LISTEN)
ircd      15491    root    5u  IPv4  32775       TCP *:8067 (LISTEN)
ircd      15491    root    6u  IPv4  32776       TCP *:6697 (LISTEN)
ircd      15491    root    7u  IPv4  32794       TCP 127.0.0.1:5823->127.0.0.1:33077 (ESTABLISHED)
services  15495    root    1u  IPv4  32793       TCP 127.0.0.1:33077->127.0.0.1:5823 (ESTABLISHED)
cupsd     15921    root    0u  IPv4  34658       TCP 127.0.0.1:631 (LISTEN)
cupsd     15921    root    2u  IPv4  34659       UDP *:631
httpd     16128  apache    3u  IPv6   3427       TCP *:80 (LISTEN)
httpd     16128  apache    4u  IPv6   3429       TCP *:443 (LISTEN)
httpd     16129  apache    3u  IPv6   3427       TCP *:80 (LISTEN)
httpd     16129  apache    4u  IPv6   3429       TCP *:443 (LISTEN)
httpd     16130  apache    3u  IPv6   3427       TCP *:80 (LISTEN)
httpd     16130  apache    4u  IPv6   3429       TCP *:443 (LISTEN)
httpd     16131  apache    3u  IPv6   3427       TCP *:80 (LISTEN)
httpd     16131  apache    4u  IPv6   3429       TCP *:443 (LISTEN)
httpd     16132  apache    3u  IPv6   3427       TCP *:80 (LISTEN)
httpd     16132  apache    4u  IPv6   3429       TCP *:443 (LISTEN)
httpd     16133  apache    3u  IPv6   3427       TCP *:80 (LISTEN)
httpd     16133  apache    4u  IPv6   3429       TCP *:443 (LISTEN)
httpd     16134  apache    3u  IPv6   3427       TCP *:80 (LISTEN)
httpd     16134  apache    4u  IPv6   3429       TCP *:443 (LISTEN)
httpd     16135  apache    3u  IPv6   3427       TCP *:80 (LISTEN)
httpd     16135  apache    4u  IPv6   3429       TCP *:443 (LISTEN)
 
yeah, I read LwQ to set it up. It doesn't have anything about setting up pop3d, though.
I actually..sorta..did it, though. After googleing 20 or so tutorials on setting it up, I finally put a few of them together and mushed up the following scripts if you're interested:
pop3d/run
Code:
#!/bin/sh
exec /usr/local/bin/softlimit -m 30000000 \
/usr/local/bin/tcpserver \
  -H -l jumpfrog.no-ip.org \
  -v -x /etc/tcp.pop3.cdb -c 30 -R 0 pop3 \
/var/qmail/bin/qmail-popup jumpfrog.no-ip.org \
/var/lib/vpopmail/bin/vchkpw /var/qmail/bin/qmail-pop3d Maildir 2>&1
pop3d/log/run
Code:
#!/bin/sh
exec /usr/local/bin/setuidgid qmaill /usr/local/bin/multilog t s10000000 \
        n30 /var/log/qmail/pop3d
I say sorta because Thunderbird still won't read the mail... ^^; It does connect. It just sits there, though, doing nothing. Weird.
 
yhack!! I thought I had it. :p I just had to edit /usr/bin/qmailctl to get it all running at once. ^^; slipped my mind to do that part too.
changed this part too:
Code:
#!/bin/sh
exec /usr/local/bin/tcpserver -v 0 110 \
/var/qmail/bin/qmail-popup 127.0.0.1 \
/bin/checkpassword /var/qmail/bin/qmail-pop3d Maildir 2>&1
Anyway, it asks for my pass but doesn't take it:
"Sending of password did not succeed. Mail server * responded: unable to write pipe
...what's a pipe and why can't it write to it? o_O
*tries more things*
aha, didn't have checkpassword installed...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top