Tuesday, August 30, 2011

Apache Web using POP3 Auth

Install Auth mechanism.
cpan install Apache::AuthPOP3
cpan install Net::POP3

Apache configuration
httpd.conf
ServerName userweb.linuxreaders.com
DocumentRoot /home/userweb
DirectoryIndex index.html
PerlModule Apache::AuthDBI
AuthName "Enter your Email ID & Password"
AuthType Basic
PerlAuthenHandler Apache::AuthPOP3
PerlSetVar        MailHost pop.linuxreaders.com
#PerlSetVar        UserMap pop3user1=>realname1,pop3user2=>realname2
Require valid-user