講解cyrus-sasl安裝配置過程與產生rpm

來源:互聯網
上載者:User

在CentOS系統中cyrus-sasl安裝還是比較常用的,於是我研究了一下cyrus-sasl安裝,在這裡拿出來和大家分享一下,希望對大家有用CentOS社區的Linux發行版本被稱為CentOS Linux,由於使用了由RHEL的原始碼重新編譯產生新的發行版本,CentOS Linux具有與RHEL產品非常好的相容性cyrus-sasl安裝。

A、cyrus-sasl安裝中安裝SRPM
[root@localhost ~]# wget ftp://194.199.20.114/linux/fedora/updates/8/SRPMS/cyrus-sasl-2.1.22-8.fc8.src.rpm
[root@localhost ~]# rpm -ivh cyrus-sasl-2.1.22-8.fc8.src.rpm
[root@localhost ~]# cd $SPEC
編輯cyrus-sasl.spec 將下面:
# Bundling copy of Berkeley DB, for sasldb support.
topdir=`pwd`
pushd db-%{db_version}/build_unix
../dist/configure \
--with-mutex=UNIX/fcntl --disable-shared --enable-static --with-pic \
--with-uniquename=_cyrus_sasl_sasldb_rh \
--prefix=${topdir}/db-instroot \
--includedir=${topdir}/db-instroot/include \
--libdir=${topdir}/db-instroot/lib
改為:
# Bundling copy of Berkeley DB, for sasldb support.
topdir=`pwd`
pushd db-%{db_version}/build_unix
../dist/configure \
--with-mutex=UNIX/fcntl --disable-shared --enable-static --with-pic \
--with-uniquename=_cyrus_sasl_sasldb_rh \
--prefix=${topdir}/db-instroot \
--includedir=${topdir}/db-instroot/include \
--libdir=${topdir}/db-instroot/lib \
--with-authdaemond=/var/spool/authdaemon

B、cyrus-sasl安裝中產生rpm
[root@localhost SPECS]# rpmbuild -bb cyrus-sasl.spec
[root@localhost RPMS]# cd $RPMS/i386
[root@localhost i386]# rpm -e --nodeps cyrus-sasl-devel cyrus-sasl-plain cyrus-sasl cyrus-sasl-lib 如果這些包存在)
[root@localhost i386]# rpm -ihv cyrus-sasl-lib-2.1.22-8.i386.rpm
[root@localhost i386]# rpm -ihv cyrus-sasl-2.1.22-8.i386.rpm
[root@localhost i386]# rpm -ihv cyrus-sasl-plain-2.1.22-8.i386.rpm

C、cyrus-sasl安裝配置sasl2
建立/usr/lib/sasl2/smtpd.conf 檔案,輸入下面的內容:
pwcheck_method:authdaemond
log_level:3
mech_list:PLAIN LOGIN
authdaemond_path:/var/spool/authdaemon/socket
以上講解cyrus-sasl安裝過程。

  1. 使用rpm檔案手動安裝CentOS authlib軟體
  2. 運用CentOS RPM安裝CentOS 5.2中相關軟體如vhmgr
  3. CentOS5.3安裝Oracle過程講解與建立軟體賬戶
  4. CentOS VSFTPD安裝時RPM軟體包安裝的方法
  5. 安裝CentOS oracle過程設定使用解壓包

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.