Apache Web using POP3 Auth

One fine day one the project leader asked that he we to share files over internet to employees, he was looking for some auth system where only existing employee can login. Since we have hosted mail server & no auth system in office the convenient way we found was to use POP3 Auth.

Following is the configuration I am sharing to use pop3 auth for web site running over apache.

Install Auth mechanism.
Refer

yum -y install mod_perl
 
cpan
install Apache::AuthPOP3
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


if you find any missing point in here, please let us know in comment section or tweet us at @linuxreaders. To get more articles like this, subscribe to our RSS feeds / Mails.

Article by Dhaval Thakar

Hi, I am Linux Admin. You'll find my articles small & without much descriptions.
Read 218 articles by

Archives

Categories

Page optimized by WP Minify WordPress Plugin