powered by Jive Software

Openfire-3.6.4 with pop3 pam auth

Connectivity flow.

Spark –> Openfire server –> Openfire native plugin –> Pop3 PAM module –> pop3 server

Getting Started

In the admin interface after initial configuration,

Server -> Server Manager -> System Properties

modify following values, make sure no blank space before / after value.

hybridAuthProvider.primaryProvider.className

org.jivesoftware.openfire.auth.DefaultAuthProvider

hybridAuthProvider.primaryProvider.overrideList

admin

hybridAuthProvider.secondaryProvider.className

org.jivesoftware.openfire.auth.NativeAuthProvider

nativeAuth.domain

openfire

provider.auth.className

org.jivesoftware.openfire.auth.HybridAuthProvider

provider.user.className

org.jivesoftware.openfire.user.NativeUserProvider

Here we are using hybrid auth, thus admin login will be done using default auth provider.

cp -Rp /opt/openfire/resources/nativeAuth/linux-i386/libshaj.so /opt/openfire/lib

cd /opt/openfire/lib

wget http://repository.atlassian.com/maven2/com/cenqua/shaj/shaj/0.5/shaj-0.5.jar

PAM POP3 AUTH Module

download & install plugin from

cd /tmp

wget [http://www.schapiro.org/schlomo/huji/linux/pam_pop3/pam_pop3-1.0.tar.gz](http://www.schapiro.org/schlomo/huji/linux/pam_pop3/pam_pop3-1.0.tar.gz)

tar zxvf pam_pop3-1.0.tar.gz

cd pam_pop3

yum install gcc pam-devel -y

make

cp pam_pop3.so /lib/security/

Create file /etc/pam.d/openfire with following content

auth required /lib/security/pam_pop3.so hostname=POP.SERVER info pwprompt=Passwort: timeout=20

service openfire restart

now you should be able to login with your email id & password.