Could not connect to server localhost

Discussion Forum for YPOPs!/Linux.


Could not connect to server localhost

Postby kiboke on December 4th, 2005, 3:32 am

"Could not connect to server localhost; the connection was refused." This is what Thunderbird sais to me every time.

I'm using RH9, ypops installation went alright. I'm using apache so localhost is already in use. If i stop apache, nothing changes. Only if i change the port number to 80 at server settings (which doesn't have any sense, right?), thunderbird keeps trying connecting to the localhost and that's all.

I set up thunderbird correctly, i've read FAQ and some topics here at forum but didn't find anything that helps.

Please, does somebody know what should i do to get ypops working?
Thank you! Really!

kiboke
YPOPs! Newbie
YPOPs! Newbie
 
Posts: 2
Joined: December 4th, 2005, 3:20 am

Postby Degauss on December 4th, 2005, 10:21 am

Hi.

If you are not running YPoPs! as root, it cannot bind to any port below 1024, so it's not listening for connection attempts; you'll get connection refused. This is assuming you're not setup for actual internal email; if so you'd get bad account warnings because your local or ISP email server doesn't know about your Y! accounts. It's always a good idea to use arbitrary and unused high ports anyway - never run anything as root that doesn't require it.

In ypopsrc:
YPOPS_PORTNUMBER 5252
YAHOO_SMTP_PORT 5151

Then for these Y! accounts, set Thunderbird to check for mail on 5252 and send mail on 5151.
(For incoming go to Edit / Account Settings / (account) / Server Settings / Port and then Outgoing Server / Port for outbound.)

Good luck!
Degauss
YPOPs! Newbie
YPOPs! Newbie
 
Posts: 5
Joined: December 3rd, 2005, 1:26 pm

Documentation a joke.

Postby themainliner on December 4th, 2005, 11:27 am

There isn't acutally any documentation to laugh at...

yPOPs returns a lovely 'Could not connect to server localhost; the connection was refused.'

I tried creating a link to 'usr/bin/yPOPs/yahoopops' and launching that and checking mail (with Thunderbird) nothing. No error either: this is what the yahoopops.log shows:

Code: Select all
[ Sun Dec  4 14:00:44 2005 ] =========================================================================
[ Sun Dec  4 14:00:54 2005 ] Starting POP3 session for "mainliner_the".
[ Sun Dec  4 14:00:54 2005 ] <mainliner_the> Password received from client.
[ Sun Dec  4 14:00:54 2005 ] <mainliner_the> Connecting to Yahoo...
[ Sun Dec  4 14:01:46 2005 ] =========================================================================
[ Sun Dec  4 14:01:46 2005 ] Configuration:
[ Sun Dec  4 14:01:46 2005 ]  Log Mode = Advanced
[ Sun Dec  4 14:01:46 2005 ]  MD5 = 0, Secure Mode = 0
[ Sun Dec  4 14:01:46 2005 ]  Use Proxy = 0, HTTP Proxy = "":0, HTTPS Proxy = "":0
[ Sun Dec  4 14:01:46 2005 ]  Max Emails = 10, Leave as unread = 0
[ Sun Dec  4 14:01:46 2005 ]  Emtpy Trash = 1, Empty Bulk = 0
[ Sun Dec  4 14:01:46 2005 ]  Download Inbox = 1, Download BulkMail = 1
[ Sun Dec  4 14:01:46 2005 ]  Email Category = All
[ Sun Dec  4 14:01:46 2005 ]  Proxy Auth = 0, Username = "", Password = <HIDDEN>
[ Sun Dec  4 14:01:46 2005 ]  Quiet Mode = 0, Autostart = 0, Always on Top = 0
[ Sun Dec  4 14:01:46 2005 ]  Network IP = , POP3 Port = 5058, SMTP Enable = 1, SMTP Port = 5059
[ Sun Dec  4 14:01:46 2005 ]  Save Sent Email = 1, Enable UIDL = 1, Hide Tray Icon = 0
[ Sun Dec  4 14:01:46 2005 ]  User Agent = Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; Win 9x 4.90)
[ Sun Dec  4 14:01:46 2005 ] =========================================================================


When I'm not getting that I get:
Code: Select all
[ Sun Dec  4 17:50:16 2005 ] Unable to bind 163 SmtpListener.cpp.Reason = Address already in use


A quick kill on whatever PID Yahoopops is using will fix that and takes us back to the beginning.

yahoopopsrc has the following entries:
Code: Select all
YAHOOPOPS_PORTNUMBER  5058
...
YAHOO_SMTP_PORT 5059


The Server setting for Thunderbird are:
Code: Select all
Server Name: Localhost  Port: 5058


Port Forwarding...I forward 5058-5059 just in case (firewall and router).

So why isn't it working?
User avatar
themainliner
YPOPs! Newbie
YPOPs! Newbie
 
Posts: 3
Joined: December 4th, 2005, 11:14 am

Postby kiboke on December 4th, 2005, 2:28 pm

Degauss wrote:Good luck!


Oh right! Thanks, now this part works! Ypops asks password and then crashes (segmentation fault). I haven't found any useful suggestion for this problem also.

If i use static binary, ypops connects, sends password but cannot do anything. When i use other versions, segmentation fault comes again.

I tried to use tips like: set download from bulk folder to 0 etc... doesn't work.
Please tell me that you have the answer for this, too! :-) Thanks!
Last edited by kiboke on December 4th, 2005, 2:37 pm, edited 1 time in total.
kiboke
YPOPs! Newbie
YPOPs! Newbie
 
Posts: 2
Joined: December 4th, 2005, 3:20 am

Postby SES21 on December 4th, 2005, 2:28 pm

Hey, I'm no Linux expert but I know on the Windows side, people often have trouble using "localhost" & have to use the actual 127.0.0.1 IP instead. It's worth a try since your problem is that you're unable to bind to localhost...
"The problems that exist in the world today cannot be solved by the level of thinking that created them." - Albert Einstein
User avatar
SES21
YPOPs! Master
YPOPs! Master
 
Posts: 717
Joined: March 4th, 2005, 6:34 pm

Re: Documentation a joke.

Postby Degauss on December 4th, 2005, 4:30 pm

Please do not hijack threads; start your own!
I'll help anyway though:

themainliner wrote:... yahoopops.log shows:

When I'm not getting that I get:
Sun Dec 4 17:50:16 2005 ] Unable to bind 163 SmtpListener.cpp.Reason = Address already in use

So why isn't it working?


For one, the software is old; it's not called YahooPoPs anymore and that error message from SmtpListener.cpp doesn't read that way anymore. Grab 0.8.3 or the CVS version. (I couldn't get any version under 0.8.3 to work well, and even it's got problems.)

BTW, there's no need to forward those ports through your firewall, although probably not dangerous it's unnecessary. That's only connecting on localhost that way; and the PoPs! software is actually just a textual web browser (cURL) as far as firewalls are concerned.

Also, shouldn't there be an IP bound?

Network IP = , POP3 Port = 5058, SMTP Enable = 1, SMTP Port = 5059
should read:
Network IP = 127.0.0.1, POP3 Port = 5058, SMTP Enable = 1, SMTP Port = 5059

..or another machine's IP if you are doing a remote connect - but it shouldn't be blank.
Last edited by Degauss on December 4th, 2005, 4:56 pm, edited 1 time in total.
Degauss
YPOPs! Newbie
YPOPs! Newbie
 
Posts: 5
Joined: December 3rd, 2005, 1:26 pm

Postby Degauss on December 4th, 2005, 4:49 pm

kiboke wrote:
Oh right! Thanks, now this part works! Ypops asks password and then crashes (segmentation fault). I haven't found any useful suggestion for this problem also.

If i use static binary, ypops connects, sends password but cannot do anything. When i use other versions, segmentation fault comes again.

I tried to use tips like: set download from bulk folder to 0 etc... doesn't work.
Please tell me that you have the answer for this, too! :-) Thanks!


No clue, sorry. :( See if you can determine where is it breaking. Start with net traffic, sniff the connection with something (say Ethereal) does it actually connect to Y! and try to login? etc.

re: other versions and segfaults, yea like I said above to the other guy, I was having tons of goofy stuff happen, 0.8.3 works sorta O.K. (leaks VM on me, but it functions perfectly well.)
Degauss
YPOPs! Newbie
YPOPs! Newbie
 
Posts: 5
Joined: December 3rd, 2005, 1:26 pm

CVS, OK...

Postby themainliner on December 5th, 2005, 12:16 pm

Degauss wrote:Please do not hijack threads; start your own!
I'll help anyway though...

Thanks, but I thought I was doing the right thing, kiboke and I seem to have the same issue: same error; same OS; same Email client.

I thought any solution might well work for us both and anyone else sharing our issue might draw illumination quickly from having all the answers in one place...

For one, the software is old; it's not called YahooPoPs anymore and that error message from SmtpListener.cpp doesn't read that way anymore. Grab 0.8.3 or the CVS version. (I couldn't get any version under 0.8.3 to work well, and even it's got problems.)

BTW, there's no need to forward those ports through your firewall, although probably not dangerous it's unnecessary. That's only connecting on localhost that way; and the PoPs! software is actually just a textual web browser (cURL) as far as firewalls are concerned.

Also, shouldn't there be an IP bound?

Network IP = , POP3 Port = 5058, SMTP Enable = 1, SMTP Port = 5059
should read:
Network IP = 127.0.0.1, POP3 Port = 5058, SMTP Enable = 1, SMTP Port = 5059 .


OK, I downloaded the latest binary available. 0.8.3 is a Windows executable, no good to me. What about this CVS business I found a CVS tree for Yahoopops at Sourcenet and I found an ISS file that displayed in a browser window. Does this help me, what should I do next?

Thanks. :D
User avatar
themainliner
YPOPs! Newbie
YPOPs! Newbie
 
Posts: 3
Joined: December 4th, 2005, 11:14 am

Postby themainliner on December 5th, 2005, 12:20 pm

SES21 wrote:Hey, I'm no Linux expert but I know on the Windows side, people often have trouble using "localhost" & have to use the actual 127.0.0.1 IP instead. It's worth a try since your problem is that you're unable to bind to localhost...

Nice idea...but, it didn't work. :wink:
User avatar
themainliner
YPOPs! Newbie
YPOPs! Newbie
 
Posts: 3
Joined: December 4th, 2005, 11:14 am

Re: CVS, OK...

Postby Degauss on December 5th, 2005, 7:53 pm

themainliner wrote:OK, I downloaded the latest binary available. 0.8.3 is a Windows executable, no good to me.


Nope, it sure isn't. :P Where are you going to D/L that? Get source here:
http://prdownloads.sourceforge.net/yahoopops/ypops-src-0.8.3.zip?download

extract, modify the Makefile for your setup, and make install.

Don't forget to investigate the rc file, like why it doesn't have an IP listed in the logfile... that's not a good sign.
Degauss
YPOPs! Newbie
YPOPs! Newbie
 
Posts: 5
Joined: December 3rd, 2005, 1:26 pm

I HAVE a possible solution

Postby bigdon on June 29th, 2006, 12:53 am

If you have access to a windows based computer on your local network or have a friend that is willing to open up port 5058, you can install the windows Ypops on their machine (or if you can access a linux box with a working Ypops in the way I just mentioned) all you have to do for your incoming server on your email app is to set it at the IP or the web address of the machine that has a running Ypops.
If you are connecting to a Windows based machine, check the ports that are set up there. When I d/l the latest version of Ypops for Windows, the ports were set up as 110 incoming, and 25 outgoing. I changed those settings to 5058 and 5059, respectively. I did this just to keep in sync with the old standard port settings.
I had to puy in my passwords the first time, as usual. This worked PERFECTLY for me.

:D Good luck everybody!!!

P.S. If it is set up on a windows machine, be sure to open the ports and set access to the Ypops program.

P.P.S. Another idea is if you and a friend or twenty have a website that will allow you to run Ypops on it, you can use that as you Yahoo mail Ypops location!
bigdon
YPOPs! Newbie
YPOPs! Newbie
 
Posts: 3
Joined: June 29th, 2006, 12:41 am


Return to YPOPs!/Linux

Who is online

Users browsing this forum: No registered users and 0 guests

paw prints
SourceForge