[精]搭建postfix+dovecot+ courier-authlib+sasl2+mysql邮件系统(11)
(精)搭建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字,全部文档内容请下载后查看。喜欢就下载吧 ……
相关推荐:
- [实用模板]第八章:法国“新浪潮”与“左岸派”
- [实用模板]2021年北京上半年临床医学检验技师生物
- [实用模板]SAP GUI 7.10客户端安装配置文档
- [实用模板]2001年临床执业医师资格考试综合笔试试
- [实用模板]36机场工作实用英语词汇总结
- [实用模板](一)社会保险稽核通知书
- [实用模板]安全教育主题班会材料
- [实用模板]濉溪县春季呼吸道传染病防控应急演练方
- [实用模板]长沙房地产市场周报(1.30-2.3)
- [实用模板]六年级数学上册典中点 - 图文
- [实用模板]C程序设计(红皮书)习题官方参考答案
- [实用模板]中国证监会第一届创业板发行审核委员会
- [实用模板]桥梁工程复习题
- [实用模板]2011学而思数学及答案
- [实用模板]初中病句修改专项练习
- [实用模板]监理学习知识1 - 图文
- [实用模板]小机灵杯四年级试题
- [实用模板]国贸专业毕业论文模板
- [实用模板]教育学概论考试练习题-判断题4
- [实用模板]2015届高考英语一轮复习精品资料(译林
- 00Nkmhe_市场营销学工商管理_电子商务_
- 事业单位考试法律常识
- 诚信教育实施方案
- 吉大小天鹅食品安全检测箱方案(高中低
- 房地产销售培训资料
- 高一地理必修1复习提纲
- 新概念英语第二册lesson_1_练习题
- 证券公司内部培训资料
- 小学英语时间介词专项练习
- 新世纪英语专业综合教程(第二版)第1册U
- 【新课标】浙教版最新2018年八年级数学
- 工程建设管理纲要
- 外研版 必修一Module 4 A Social Surve
- Adobe认证考试 AE复习资料
- 基于H.264AVC与AVS标准的帧内预测技术
- 《食品检验机构资质认定管理办法》(质
- ABB变频器培训课件
- (完整版)小学说明文阅读练习题及答案
- 深思洛克(SenseLock) 深思IV,深思4,深
- 弟子规全文带拼音




