Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
After emerge -u system: imap/ssh can't connect to server.
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
cayenne
l33t
l33t


Joined: 17 Oct 2002
Posts: 945
Location: New Orleans

PostPosted: Tue Mar 02, 2004 1:26 am    Post subject: After emerge -u system: imap/ssh can't connect to server. Reply with quote

Hello!

I'm a little new and setting up and maintaining my email server. Have had it up for awhile..using postfix, sasl, imap. I've used the thread https://forums.gentoo.org/viewtopic.php?t=56633&highlight=email+postfix for setting it up with the exception of not using fetchmail and not forwarding through my ISP's email server...I've got a domain name, MX record...so am an independant email server.

I did an emerge -u system the other day...and thought I was quite careful to not overwrite anything pertaining to my sasl...ca certs...etc.

However, all of a sudden...none of my email client, Kmail...can't connect. It says unable to authenticate via PLAIN.

I looked at my log file and it gave me this:

Feb 29 21:27:15 [imapd-ssl] LOGOUT, user= myusername, ip=[192.168.0.106], headers=0, body=736260
Feb 29 21:28:17 [imapd-ssl] Connection, ip=[192.168.0.xxx]
Feb 29 21:28:24 [imapd-ssl] LOGIN FAILED, ip=[192.168.0.xxx]
Feb 29 21:28:24 [imapd-ssl] Unexpected SSL connection shutdown.
Feb 29 21:28:40 [imapd-ssl] Connection, ip=[192.168.0.xxx]
Feb 29 21:28:45 [imapd-ssl] LOGIN FAILED, ip=[192.168.0.xxx]
Feb 29 21:28:45 [imapd-ssl] Unexpected SSL connection shutdown.
Feb 29 21:28:55 [imapd-ssl] Connection, ip=[192.168.0.xxx]
Feb 29 21:29:00 [imapd-ssl] LOGIN FAILED, ip=[192.168.0.xxx]
Feb 29 21:29:00 [imapd-ssl] Unexpected SSL connection shutdown.
Feb 29 21:29:10 [postfix/smtpd] starting TLS engine

Username and ip address edited.

Could something in the update changed...and I need to look at a diff. config? I started and stoped the courier-imapd-ssl daemon...but, same error.
Quote:

EDIT: Ok...as soon as I posted...found a thread saying to just mkdir /var/empty for sshd...apparently an ebuild bug..the email still is busted and no answer.


My ssh isn't accepting connections either...I stopped sshd, and restarted and got this error:

* Starting sshd...
Missing privilege separation directory: /var/empty

Has something changed with an update of ssh? My config files there are the same.


Can anyone give me some pointers on what to look for here...

Many thanks!!

cayenne
_________________
Light travels faster than sound. This is why some people appear bright until you hear them speak.........
Back to top
View user's profile Send private message
kashani
Advocate
Advocate


Joined: 02 Sep 2002
Posts: 2032
Location: San Francisco

PostPosted: Tue Mar 02, 2004 8:57 am    Post subject: Reply with quote

You didn't happen to upgrade openssl in your latest emerge system did you? I'm guessing it's the openssl upgrade that is causing the issue.

emerge -s openssl
If it it says you've got 0.9.7c installed your TLS is probably broken becuase it's linked against 0.9.6k.

You'll need to run revdep-rebuild which IIRC is part of gentoolkit. Or you can just re-emerge courier-imap, which is going to be faster for the moment.

I haven't seen this type of error yet personally, but it's a good guess that it's the culprit.

kashani
_________________
Will personally fix your server in exchange for motorcycle related shop tools in good shape.
Back to top
View user's profile Send private message
cayenne
l33t
l33t


Joined: 17 Oct 2002
Posts: 945
Location: New Orleans

PostPosted: Tue Mar 02, 2004 4:20 pm    Post subject: still broken... Reply with quote

kashani wrote:
You didn't happen to upgrade openssl in your latest emerge system did you? I'm guessing it's the openssl upgrade that is causing the issue.

emerge -s openssl
If it it says you've got 0.9.7c installed your TLS is probably broken becuase it's linked against 0.9.6k.

You'll need to run revdep-rebuild which IIRC is part of gentoolkit. Or you can just re-emerge courier-imap, which is going to be faster for the moment.

I haven't seen this type of error yet personally, but it's a good guess that it's the culprit.

kashani


Thanks for the help. I tried revdep-rebuild...it appears all it rebuilt was opera and xpdf.

I re-emerged courier-imap...

Still...same problems. I've started and stopped imap....same problems.

Kmail client on another machine still says..unable to authenticate via plain...

My log says:

Mar 2 10:07:35 [imapd-ssl] Connection, ip=[192.168.0.xxx]
Mar 2 10:07:41 [imapd-ssl] LOGIN FAILED, ip=[192.168.0.xxx]
Mar 2 10:07:41 [imapd-ssl] Unexpected SSL connection shutdown.
Mar 2 10:21:42 [imapd-ssl] Connection, ip=[192.168.0.xxx]
Mar 2 10:21:48 [imapd-ssl] LOGIN FAILED, ip=[192.168.0.xxx]
Mar 2 10:21:48 [imapd-ssl] Unexpected SSL connection shutdown.

From where my client tried to connect. I have not changed anything nor updated anything on the client box...

All suggestions or links greatly appreciated.

cayenne
_________________
Light travels faster than sound. This is why some people appear bright until you hear them speak.........
Back to top
View user's profile Send private message
cayenne
l33t
l33t


Joined: 17 Oct 2002
Posts: 945
Location: New Orleans

PostPosted: Wed Mar 03, 2004 1:45 pm    Post subject: bump Reply with quote

bump
_________________
Light travels faster than sound. This is why some people appear bright until you hear them speak.........
Back to top
View user's profile Send private message
TJNII
l33t
l33t


Joined: 09 Nov 2003
Posts: 648
Location: for(;;);

PostPosted: Sat Mar 06, 2004 1:50 am    Post subject: Reply with quote

Yea, that last portage update farked up ssh good. I'm having the same ssh problems, as well.
Back to top
View user's profile Send private message
TJNII
l33t
l33t


Joined: 09 Nov 2003
Posts: 648
Location: for(;;);

PostPosted: Sat Mar 06, 2004 2:05 am    Post subject: Reply with quote

A re-emerge of openssh fixed it on one of my boxen, I have another with the problem still. Will post back if I fond a better solution.
Back to top
View user's profile Send private message
cayenne
l33t
l33t


Joined: 17 Oct 2002
Posts: 945
Location: New Orleans

PostPosted: Wed Mar 10, 2004 4:20 am    Post subject: Half way there... Reply with quote

TJNII wrote:
A re-emerge of openssh fixed it on one of my boxen, I have another with the problem still. Will post back if I fond a better solution.


Well, my ssh is working now...but, the IMAP authentication as 'plain' is still borked....any thoughts out there on this?

TIA,

cayenne
_________________
Light travels faster than sound. This is why some people appear bright until you hear them speak.........
Back to top
View user's profile Send private message
cayenne
l33t
l33t


Joined: 17 Oct 2002
Posts: 945
Location: New Orleans

PostPosted: Fri Apr 02, 2004 5:58 am    Post subject: Still borked... Reply with quote

Ok...the box I originally posted this on...never solved.

But, started install on a fresh box...postfix, courier-imap, ssl...followed the virtual host email howto.

It is up and running. I can connect to it locally, send email, read email fine.

However, when I try to connect to it with Kmail, I get:

imapd-ssl: LOGIN FAILED, ip=[192.168.0.x]
imapd-ssl: Unexpected SSL connection shutdown.

I've double and triple checked all config files..cannot figure this one out..

Any ideas out there?

cayenne
_________________
Light travels faster than sound. This is why some people appear bright until you hear them speak.........
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum