教学文库网 - 权威文档分享云平台
您的当前位置:首页 > 精品文档 > 实用模板 >

[精]搭建postfix+dovecot+ courier-authlib+sasl2+mysql邮件系统(11)

来源:网络收集 时间:2026-08-07
导读: (精)搭建postfix+dovecot+ courier-authlib+sasl2+mysql邮件系统 Aug 1 16:42:02 mail postfix/master[6766]: warning: process /usr/lib/postfix/trivial-rewrite pid 7092 exit status 1 Aug 1 16:42:02 mail pos

(精)搭建postfix+dovecot+ courier-authlib+sasl2+mysql邮件系统

Aug 1 16:42:02 mail postfix/master[6766]: warning: process /usr/lib/postfix/trivial-rewrite

pid 7092 exit status 1

Aug 1 16:42:02 mail postfix/master[6766]: warning: /usr/lib/postfix/trivial-rewrite:

bad command startup -- throttling

Aug 1 16:43:02 mail postfix/trivial-rewrite[7094]: warning: connect to mysql server localhost:

Cant connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' #解决、把mysql_virtual_*.cf下的hosts全部改为hosts=127.0.0.1[因为如果使用localhost则是用unix连接主机,而用ip地址则是使用tcp/ip方式连接]

cd /etc/postfix/

vim mysql_virtual_alias_maps.cf vim mysql_virtual_domains_maps.cf vim mysql_virtual_mailbox_maps.cf vim mysql_virtual_sender_maps.cf #错误7:

apache2: Could not reliably determine the server's fully qualified domain name, using 192.168.0.234 for ServerName

... waiting apache2: Could not reliably determine the server's fully qualified domain name, using 192.168.0.234 for ServerName do #解决:

echo \

#错误8:sql_select option missing(此错误)对服务器的影响不大,还未发现运行异常,不过可以添加以下排除错误

tail -f /var/log/auth.log #报错

Aug 4 17:50:40 mail postfix/smtpd[1932]: sql_select option missing

Aug 4 17:50:40 mail postfix/smtpd[1932]: auxpropfunc error no mechanism available Aug 4 17:50:40 mail postfix/smtpd[1932]: _sasl_plugin_load failed

on sasl_auxprop_plug_init for plugin: sql do #错误9、

# cat /usr/local/lib/sasl2/smtpd.conf auxprop_plugin: mysql sql_hostnames: 127.0.0.1 sql_user: extmail

sql_password: extmail sql_database: extmail log_level:7

sql_select: SELECT password FROM mailbox WHERE username='%u@%r' and domain='%r' #将原有的smtpd.conf配置文件添加以上内容(蓝色字体)后,此日志显示消失。 #添加后,执行telnet localhost 25,日志如下,一切正常

tail -f /var/log/auth.log

Aug 4 17:51:44 mail postfix/smtpd[2099]: sql auxprop plugin using mysql engine #错误10、fatal: no SASL authentication mechanisms

apt-get remove libsasl2-modules * #报错,无法正常连接smtp,“fatal: no SASL authentication mechanisms”,说明postfix还是依赖此模块的 smtp--->sasl---->authmysql----->authmysqllib #错误11、connect() : No such file or directory

root@mail:/home/zhangyq# testsaslauthd -u zaza@extmail.com -p 123456 -s smtp connect() : No such file or directory

#说明testsaslauthd没有找到认证的入口,出现这种错误通常是修改了/etc/default/saslauthd中OPTIONS默认的路径造成的

31

(精)搭建postfix+dovecot+ courier-authlib+sasl2+mysql邮件系统

testsaslauthd -u zaza@extmail.org -p 123456 -s smtp -f /var/spool/postfix/var/run/saslauthd/mux #改变socket路径即可

#错误12、PAM unable to dlopen(/lib/security/pam_mysql.so)

grep -R pam_mysql /var/log/

/var/log/auth.log:Aug 4 10:29:21 mail saslauthd[2543]: PAM unable to

dlopen(/lib/security/pam_mysql.so): /lib/security/pam_mysql.so: cannot open shared object file: No such file or directory …… 此处隐藏:697字,全部文档内容请下载后查看。喜欢就下载吧 ……

[精]搭建postfix+dovecot+ courier-authlib+sasl2+mysql邮件系统(11).doc 将本文的Word文档下载到电脑,方便复制、编辑、收藏和打印
本文链接:https://www.jiaowen.net/wendang/519945.html(转载请注明文章来源)
Copyright © 2020-2025 教文网 版权所有
声明 :本网站尊重并保护知识产权,根据《信息网络传播权保护条例》,如果我们转载的作品侵犯了您的权利,请在一个月内通知我们,我们会及时删除。
客服QQ:78024566 邮箱:78024566@qq.com
苏ICP备19068818号-2
Top
× 游客快捷下载通道(下载后可以自由复制和排版)
VIP包月下载
特价:29 元/月 原价:99元
低至 0.3 元/份 每月下载150
全站内容免费自由复制
VIP包月下载
特价:29 元/月 原价:99元
低至 0.3 元/份 每月下载150
全站内容免费自由复制
注:下载文档有可能出现无法下载或内容有问题,请联系客服协助您处理。
× 常见问题(客服时间:周一到周五 9:30-18:00)