Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
pop3 / imap authentication problem
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
RolfJ
n00b
n00b


Joined: 14 Aug 2002
Posts: 14
Location: Kiel, Germany

PostPosted: Mon Oct 28, 2002 9:01 pm    Post subject: pop3 / imap authentication problem Reply with quote

Hi everyone,

I would like to use my Gentoo box as internet gateway for my home network 8) . Incoming mail receives via fetchmail onto the server - no problem. When fetching that mail from a client from my Gentoo gateway (telnet gentoo 110) I get an -ERR bad login :oops: . The same is valid using the imap-Server. Here some details:
imap/pop Server: wu-imapd
System: Gentoo 1.4
Authentication: pam-module

$ cat /etc/pam.d/pop-3:
#%PAM-1.0

auth required /lib/security/pam_pwdb.so shadow
account required /lib/security/pam_pwdb.so
password required /lib/security/pam_cracklib.so
password required /lib/security/pam_pwdb.so nullok use_authtok md5 shadow
session required /lib/security/pam_pwdb.so

$ cat /etc/xinetd.d/pop:
service pop-3
{
log_on_success += USERID
log_on_failure += USERID
socket_type = stream
user = root
server = /usr/sbin/ipop3d
wait = no
only_from = 192.168.2.0
}

After logging in I get the following:
$ cat /var/log/mail.info
Oct 28 22:48:08 gentoo ipop3d[7143]: PAM unable to dlopen(/lib/security/pam_nologin.so)
Oct 28 22:48:08 gentoo ipop3d[7143]: PAM [dlerror: /lib/security/pam_nologin.so: undefined symbol: pam_get_item]
Oct 28 22:48:08 gentoo ipop3d[7143]: PAM adding faulty module: /lib/security/pam_nologin.so
Oct 28 22:48:08 gentoo ipop3d[7143]: PAM unable to dlopen(/lib/security/pam_stack.so)
Oct 28 22:48:08 gentoo ipop3d[7143]: PAM [dlerror: /lib/security/pam_stack.so: undefined symbol: _pam_make_env]
Oct 28 22:48:08 gentoo ipop3d[7143]: PAM adding faulty module: /lib/security/pam_stack.so
Oct 28 22:49:13 gentoo ipop3d[7143]: Logout user=rolf host=[192.168.2.5]

$ cat auth.log
Oct 28 22:48:01 gentoo xinetd[5476]: START: pop-3 pid=7143 from=192.168.2.5
Oct 28 22:48:08 gentoo ipop3d[7143]: Login failed user=rolf auth=rolf host=[192.168.2.5]

Any ideas on this problem? What does the pam-configuration has to look like?

Greetings

Rolf
Back to top
View user's profile Send private message
RolfJ
n00b
n00b


Joined: 14 Aug 2002
Posts: 14
Location: Kiel, Germany

PostPosted: Wed Oct 30, 2002 9:31 am    Post subject: Reply with quote

Hi again,

OK, I've solved the problem. Looks like it was a buggy pam library. In /var/log/mail.info I saw the problems with the pam-library during authentication. I did an

1. emerge rsync
2. emerge unmerge pam
3. emerge unmerge uw-imap
4. rm /etc/pam.d/ipop*
5. rm /etc/xinetd.d/ipop*
6. rm /etc/xinetd.d/imap*
7. emerge pam
8. emerge uw-imap

After repeating step 2-8 a couple of times and installing teapop in between, it finally worked :). The /etc/pam.d/ configuration-files now look completely different.

Greetings

Rolf

This procedure
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