Get the App
SLTechnology News&Howtos  ›  Servers  › 

How to install CentOS authlib software manually using rpm files

Shulou Source: shulou.com Published: 2022-06-01 07:15:24 10月04日 Update

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.

Tags: Software content documents manual skills knowledge faceted input configuration concise concise that is articles more steps articles industry information channels channels Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Docker Shulou Technology NVidia Microsoft OPPO Reno