Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Disallowing certain hosts with courier-imap/pam?
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
cryo
n00b
n00b


Joined: 16 May 2003
Posts: 23
Location: Denmark

PostPosted: Sun May 18, 2003 9:03 pm    Post subject: Disallowing certain hosts with courier-imap/pam? Reply with quote

I am running both courier-imapd and courier-imapd-ssl, and now I want to disallow the former from being accessed from anywhere except localhost and hosts on my local (10.x.x.x) network.

First I enabled seperate authentication in the /etc/courier-imap/imapd file, so the normal connection uses /etc/pam.d/imap and the SSL one uses /etc/pam.d/imaps. I then tried using the PAM module pam_access.so to limit access, but it doesn't seem to work; access it allowed even if I put -:ALL:ALL in my /etc/security/access.conf.

I tried with more drastic things like auth required pam_deny.so in the /etc/pam.d/imap file, which works fine. Maybe Courier-IMAP only does auth and not account with PAM? I also tried to use pam_rhosts and make an /etc/hosts.equiv file... but.. it didn't quite work either, it just disallowed access from everyone.

Anyone got an idea? :)
_________________
Sune.
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