Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to install CentOS authlib software manually using rpm files

2025-03-31 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

This article shows you how to use rpm files to manually install CentOS authlib software, the content is concise and easy to understand, absolutely can make your eyes bright, through the detailed introduction of this article, I hope you can get something.

The steps to install CentOS authlib software using rpm are described below.

A, CentOS authlib software installation lazy package

[root@localhost ~] # yum-y install postgresql-devel expect libtool-ltdl-devel

[root@localhost ~] # wget http://prdownloads.sourceforge.net/courier/courier-authlib-0.61.0.tar.bz2

[root@localhost ~] # tar xjf courier-authlib-0.61.0.tar.bz2

[root@localhost ~] # cd courier-authlib-0.61.0

[root@localhost courier-authlib-0.61.0] # cp courier-authlib.spec $SPEC

[root@localhost courier-authlib-0.61.0] # cd..

[root@localhost ~] # cp courier-authlib-0.61.0.tar.bz2 $SOURCE

[root@localhost ~] # cd $SPEC

[root@localhost SPECS] # rpmbuild-bb courier-authlib.spec (create rpm file)

B. Install the generated rpm

[root@localhost SPECS] # cd $RPMS/i386

[root@localhost i386] # rpm-ivh courier-authlib-0.61.0-1.i386.rpm

[root@localhost i386] # rpm-ivh courier-authlib-devel-0.61.0-1.i386.rpm

[root@localhost i386] # rpm-ivh courier-authlib-mysql-0.61.0-1.i386.rpm

C, CentOS authlib software configuration daemon

[root@localhost i386] # cd / etc/authlib/

[root@localhost authlib] # mv authdaemonrc authdaemonrc.bak

[root@localhost authlib] # vim authdaemonrc

Enter the following:

Authmodulelist= "authmysql"

Authmodulelistorig= "authmysql"

Daemons=10

Authdaemonvar=/var/spool/authdaemon

DEBUG_LOGIN=2

DEFAULTOPTIONS= "wbnodsn=1"

LOGGEROPTS= ""

D, CentOS authlib software configuration authmysqlrc

[root@localhost authlib] # mv authmysqlrc authmysqlrc.bak

[root@localhost authlib] # vim authmysqlrc

Enter the following:

MYSQL_SERVER localhost

MYSQL_USERNAME extmail

MYSQL_PASSWORD extmail

MYSQL_PORT 0

MYSQL_SOCKET / var/lib/mysql/mysql.sock

MYSQL_OPT 0

MYSQL_DATABASE extmail

MYSQL_SELECT_CLAUSE SELECT username,password, ", uidnumber,gidnumber

CONCAT ('/ home/data/domains/',homedir)

CONCAT ('/ home/data/domains/',maildir)

Quota

Name

FROM mailbox

WHERE username ='$(local_part) @ $(domain)'

E, start the CentOS authlib software

[root@localhost ~] # service courier-authlib start

Starting Courier authentication services: authdaemond

[root@localhost ~] # chmod 777 / var/spool/authdaemon

The above content is how to use rpm files to manually install CentOS authlib software, have you learned the knowledge or skills? If you want to learn more skills or enrich your knowledge reserve, you are welcome to follow the industry information channel.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report