日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 运维知识 > 数据库 >内容正文

数据库

extmail mysql数据库 重启_centos 5.8 x86_64下安装mysql+postfix+extmail+extman+courier-authlib+courier-imap...

發布時間:2025/3/19 数据库 23 豆豆
生活随笔 收集整理的這篇文章主要介紹了 extmail mysql数据库 重启_centos 5.8 x86_64下安装mysql+postfix+extmail+extman+courier-authlib+courier-imap... 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

前面的apache+php或者nginx+php-fpm就不在介紹!

記得把mysql的lib放進ld.so.conf里面,以免在后面編譯sasl的時候出現問題

本次使用的軟件:

準備工作:

1、安裝一些perl的模塊和其他的軟件

DBI、DBI::Mysql、Unix:syslogd、perl-GD、Time::HiRes、File::Tail

rrdtool、giflib、libgdiplus、mono-core、dbus-sharp、dbus-sharp-devel、dbh、dbh-devel、pcre、pcre-devel

2、添加用戶和屬組

groupadd -g 1000 vgroup

useradd -g 1000 -u 1000 -M -s

/bin/false vuser

說明:vuser和vgroup是重要的用戶和輸組,而且uid、gid必須是1000(如果不是1000,后面很多地方都需要調整,有點麻煩而且很容易遺忘造成一些問題的出現)

groupadd postdrop

useradd -d /var/spool/postfix

-s /bin/true -g postfix -G postdrop postfix

3、安裝courier-authlib

tar jxf

courier-authlib-0.61.0.tar.bz2

./configure

\

--prefix=/usr/local/courier-authlib \

--without-stdheaderdir \

--without-authuserdb \

--without-authpam \

--without-authldap \

--without-authpwd \

--without-authshadow \

--without-authvchkpw \

--without-authpgsql \

--without-authcustom \

--with-authmysql \

--with-mysql-libs=/usr/local/mysql/lib/mysql \

--with-mysql-includes=/usr/local/mysql/include/mysql \

--with-redhat \

--with-mailuser=vuser \

--with-mailgroup=vgroup

(因為改變了 courier-authlib 的安裝位置,所以需要加選項

--without-stdheaderdir,不然找不到header之類)

編譯 courier-authlib 必須要加入--with-mailuser,--with-mailgroup 這兩項;否則在

postfix 收取郵件的時候就會出現錯誤,在 /var/log/maillog 日志文件中可以看到這個錯誤提示:

temporary failure. Command output: ERR: authdaemon: s_connect()

failed: Permission denied maildrop: Temporary authentication

failure. )

make && make install

make install-migrate

make install-configure

echo "/usr/local/courier-authlib/lib/courier-authlib"

>> /etc/ld.so.conf

ldconfig -v

記得在此運行ldconfig讓剛才的ld.so.conf生效,不然在后面測試maildrop

-v時會報錯:maildrop:error while loading shared libraries:

libcourierauth.so.0)

設置courier-authlib的開機啟動

cp courier-authlib.sysvinit /etc/init.d/courier-authlib

chkconfig --add courier-authlib

chkconfig courier-authlib on

chmod 755 /usr/local/courier-authlib/var/spool/authdaemon

設置認證

cd?/usr/local/courier-authlib/etc/authlib

vim authdaemonrc

修改

authmodulelist="authmysql"

authmodulelistorig="authmysql"

vim authmysqlrc

MYSQL_SERVER?localhost

MYSQL_USERNAME?extmail

MYSQL_PASSWORD?extmail

MYSQL_SOCKET?/tmp/mysql.sock?(注意這里修改成你實際mysql.sock的位置)

YSQL_PORT?3306

MYSQL_OPT?0

MYSQL_DATABASE?extmail

MYSQL_USER_TABLE?mailbox

MYSQL_CRYPT_PWFIELD?password

MYSQL_UID_FIELD?uidnumber

MYSQL_GID_FIELD?gidnumber

MYSQL_LOGIN_FIELD?username

MYSQL_HOME_FIELD?homedir

MYSQL_NAME_FIELD?name

MYSQL_MAILDIR_FIELD?maildir

MYSQL_QUOTA_FIELD?quota

MYSQL_SELECT_CLAUSE?SELECT

username,"",password,uidnumber,gidnumber,?\

CONCAT('/home/domains/',homedir),?\

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

總結

以上是生活随笔為你收集整理的extmail mysql数据库 重启_centos 5.8 x86_64下安装mysql+postfix+extmail+extman+courier-authlib+courier-imap...的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。