Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
pop imap on gentoo doesn't work, why is this so hard???
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
michal65
n00b
n00b


Joined: 30 Nov 2002
Posts: 58

PostPosted: Wed Mar 26, 2003 5:20 pm    Post subject: pop imap on gentoo doesn't work, why is this so hard??? Reply with quote

Here is my situation. Sendmail on my gentoo server works. I can send files from a mail client on another pc (mozilla, kmail), that's fine. But when I try to retrieve mail via pop or imap from that gentoo server it just doesn't want to work. Using wu-imap package pop and imap works locally because I can retrieve email via pop using a webmail client on the server. When I try to get email using mozilla-mail or kmail it says the connection to 192.168.1.1 is bad. What the heck does that mean? I had debian before, everything worked like a charm. I don't see any config files for wu-imap/pop stuff.
Can someone point me in the right direction?
gentoo kernel 2.4.20, no firewall
Thanks.
Back to top
View user's profile Send private message
seaweed
n00b
n00b


Joined: 22 Apr 2002
Posts: 53
Location: NJ, USA

PostPosted: Wed Mar 26, 2003 8:26 pm    Post subject: Wrappers? Reply with quote

Assuming that the imap/pop packages are setup and running. You might want to check your hosts.deny and hosts.allow files.
Back to top
View user's profile Send private message
seaweed
n00b
n00b


Joined: 22 Apr 2002
Posts: 53
Location: NJ, USA

PostPosted: Wed Mar 26, 2003 8:30 pm    Post subject: Wrappers? Reply with quote

Assuming that the imap/pop packages are setup and running. You might want to check your hosts.deny and hosts.allow files.
Back to top
View user's profile Send private message
joycea
Apprentice
Apprentice


Joined: 23 Jul 2002
Posts: 191
Location: Kingston, Canada

PostPosted: Wed Mar 26, 2003 8:53 pm    Post subject: Reply with quote

What error message do you get from your mail client? Is there any error messages appearing the logs of your gentoo mail server?
Back to top
View user's profile Send private message
michal65
n00b
n00b


Joined: 30 Nov 2002
Posts: 58

PostPosted: Thu Mar 27, 2003 2:29 pm    Post subject: My hosts.allow and hosts.deny don't exist Reply with quote

My hosts.allow and hosts.deny don't exist so I created hosts.allow and added:
ALL: 192.168.1.6 (machine thats trying to get the pop mail)
Still nothing.
As far as logs are concerned, I couldn't find anything, btw which logs should I be looking at?
Usually there is no error message in Mozilla mail, it just says: "connecting to 192.168.1.1 ..." and nothing else happens, sometimes I get "bad connection" error, sometimes I get no status and no error messages but it's just not pulling any mail. Ilohamail which is on the same server as the sendmail and pop servers can grab mail via pop with no problem.
Any suggestions?
Back to top
View user's profile Send private message
caffiend
n00b
n00b


Joined: 26 Mar 2003
Posts: 48
Location: Oakland, CA

PostPosted: Thu Mar 27, 2003 4:22 pm    Post subject: Reply with quote

what does
Code:
telnet your.mailserver.ip 143


do for you?

If it actually connects try this test...

Code:
1 LOGIN username password


and see if that gets you anything helpful
Back to top
View user's profile Send private message
michal65
n00b
n00b


Joined: 30 Nov 2002
Posts: 58

PostPosted: Thu Mar 27, 2003 9:12 pm    Post subject: Looks like I'm getting somwhere Reply with quote

When I try telnet 192.168.1.1 110 from my pc it gives me this and exits right away:
Trying 192.168.1.1...
Connected to 192.168.1.1.
Escape character is '^]'.
Connection closed by foreign host.

When I try the same thing from 192.168.1.1 it connects:
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
+OK POP3 localhost v2001.78 server ready

What's preventing me from making a connection to that port from a different machine?
Back to top
View user's profile Send private message
cjs94
n00b
n00b


Joined: 24 Jan 2003
Posts: 7

PostPosted: Fri Mar 28, 2003 4:49 pm    Post subject: Is this a reverse lookup problem? Reply with quote

Whenever I've had problems like that, on a private network, it has been due to the server not knowing the workstations. Does the server have hosts entries for the workstations?

What about a firewall, I assume you don't have a default 'reject everything' rule on the server?

Chris
Back to top
View user's profile Send private message
vision
n00b
n00b


Joined: 31 Mar 2003
Posts: 1

PostPosted: Mon Mar 31, 2003 12:43 am    Post subject: Quick fix for me Reply with quote

I put an "only_from = 192.168.7.0/24" in the /etc/xinetd.d/ipop3 file. I know this isn't the 100% proper way to fix it, but it got me up and running for the time being.

Hope this helps
Daryl

thorin2 xinetd.d # cat ipop3
# default: off
# $Header: /home/cvsroot/gentoo-x86/net-mail/uw-imap/files/uw-ipop3.xinetd,v 1.2 2002/06/07 02:01:38 woodchip Exp $
# description: The POP3 service allows remote users to access their mail \
# using an POP3 client such as Netscape Communicator, mutt, \
# or fetchmail.
service pop-3
{
only_from = 192.168.7.0/24
socket_type = stream
wait = no
user = root
server = /usr/sbin/ipop3d
log_on_success += USERID
log_on_failure += USERID
disable = no
}
Back to top
View user's profile Send private message
Crocodile
n00b
n00b


Joined: 08 Dec 2002
Posts: 5
Location: Varberg, Sweden

PostPosted: Mon Mar 31, 2003 5:59 am    Post subject: Reply with quote

edit /etc/xinetd.conf and comment out:
only_from = localhost
then restart xinetd
/etc/init.d/xinetd restart

Should fix your problem I suspect.
Back to top
View user's profile Send private message
michal65
n00b
n00b


Joined: 30 Nov 2002
Posts: 58

PostPosted: Sat Apr 05, 2003 10:13 pm    Post subject: WOOHOO!!! Worked like a charm! Reply with quote

I changed the line only_from = localhost to
only_from = 192.168.1.0/24 in xined.conf and it worked right away.

Thanks guys.
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