hi list

i have already been knee-deep in postings all over the web but still haven't
found a solution for my problem. i'm using postfix with the courier-imap
pop3d, and authentication via pam_mysql. the postfix-auth via pam_mysql
works fine, as does pop3d auth via authmysql. but with pam_mysql, i'm
running into problems ... i guess my pam.d/pop3 config file is not as it
should, but i'm new to pam and haven't found any working solution in any
mailing list archive or anywhere else.

when i login to the pop3d, the authentication itself works (at least it
connects to the mysql-db and makes the right queries), but then the session
closes immediately. for example:

$ telnet localhost 110
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
+OK Hello there.
user mono
+OK Password required.
pass mypassword
Connection closed by foreign host.

$ tail /var/log/messages

Dec 18 15:01:11 edika PAM-warn[2201]: service: pop3 [on terminal: <unknown>]
Dec 18 15:01:11 edika PAM-warn[2201]: service: pop3 [on terminal: <unknown>]
Dec 18 15:01:11 edika PAM-warn[2201]: user: (uid=0) -> mono [remote:
?nobody@?nowhere]
Dec 18 15:01:11 edika PAM-warn[2201]: user: (uid=0) -> mono [remote:
?nobody@?nowhere]
Dec 18 15:01:11 edika PAM-unix2[2201]: session started for user mono,
service pop3
Dec 18 15:01:11 edika PAM-warn[2201]: service: pop3 [on terminal: <unknown>]
Dec 18 15:01:11 edika PAM-warn[2201]: service: pop3 [on terminal: <unknown>]
Dec 18 15:01:11 edika PAM-warn[2201]: user: (uid=0) -> mono [remote:
?nobody@?nowhere]
Dec 18 15:01:11 edika PAM-warn[2201]: user: (uid=0) -> mono [remote:
?nobody@?nowhere]
Dec 18 15:01:11 edika PAM-unix2[2201]: session finished for user mono,
service pop3
Dec 18 15:02:14 edika authpam: pam_mysql: close_session called but not
implemented.
Dec 18 15:02:14 edika authpam: pam_mysql: close_session called but not
implemented.

**note** i don't get the PAM-warn and PAM-unix2 messages when using
pam_mysql as session module in pam.d/pop3

my configs:

/etc/pam.d/pop3:
auth       required     /lib/security/pam_mysql.so user=maildbuser
passwd=maildbpwd host=localhost db=mailconfig table=aliases
usercolumn=username passwdcolumn=clearpassword
account    required     /lib/security/pam_mysql.so (params as above)
session    required     /lib/security/pam_mysql.so (params as above)

**note** if i use
session    required     /lib/security/pam_unix.so
i won't get anything at all in /var/log/messages but the same behaviour as
described above.


*****
any help would be very much appreciated! i'm getting desperate....

many thanks

Nico Wieland


_______________________________________________
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users

Reply via email to