设为首页 收藏本站
查看: 1230|回复: 0

[经验分享] postfix 错误汇总

[复制链接]

尚未签到

发表于 2015-11-24 09:33:57 | 显示全部楼层 |阅读模式
postfix运行环境错误信息汇总
显示信件列表: postqueue -p
显示信件內容: postcat -q Queue_ID
刪除各別信件:postsuper -d Queue_ID
全部刪除: postsuper -d ALL
扣住信件: postsuper -h Queue_ID
回复: postsuper -H Queue_ID
重新排程:
postsuper -r Queue_ID
postsuper -r ALL
清除信件:
postqueue -f (全部)
postqueue -s 主机名称(个别对象)
要查看Postfix的当前主要配置文件的存放路径:
postconf -n
系统日志:tail -f /var/log/messages
邮件日志:tail -f /var/log/maillog
clamd相关: tail -f /var/log/clamav/clamd.log  tail -f /var/log/clamav/freshclam.log
maildrop相关:tail -f /var/log/maildrop.log
apache相关:tail -f /usr/local/httpd/logs/error_log  tail -f /usr/local/httpd/logs/suexec_log
mysql相关: tail -f /usr/local/mysql/data/linux.linux.com.err
测试amavisd: amavisd -d config debug-sa
测试spam: spamassassin -D --lint
测试maildrop: maildrop -V 10 -d test@test.com

问题一:
Q
Aug 7 22:26:22 mail postfix/smtpd[16829]: warning: xsasl_cyrus_server_get_mechanism_list:
no applicable SASL mechanisms
Aug 7 22:26:22 mail postfix/smtpd[16829]: fatal: no SASL authentication mechanisms
Aug 7 22:26:23 mail postfix/master[16825]: warning: process /usr/libexec/postfix/smtpd
pid 16829 exit status 1
Aug 7 22:26:23 mail postfix/master[16825]: warning: /usr/libexec/postfix/smtpd:
bad command startup -- throttling
Aug 7 22:28:06 mail postfix/smtpd[16830]: warning: xsasl_cyrus_server_get_mechanism_list:
no applicable SASL mechanisms
Aug 7 22:28:06 mail postfix/smtpd[16830]: fatal: no SASL authentication mechanisms
Aug 7 22:28:07 mail postfix/master[16825]: warning: process /usr/libexec/postfix/smtpd
pid 16830 exit status 1
A
ln -s /usr/local/lib/sasl2 /usr/lib/sasl2

问题二:
Q
Jan 15 20:24:43 localhost postfix/smtpd[3048]: warning: SASL authentication problem:
unable to open Berkeley db /etc/sasldb2: No such file or directory
A
系统已经安装sasl-cyrus 删除掉,然后编译重装

问题三:
Q
install_driver(mysql) failed: Can't locate DBD/mysql.pm in @INC (@INC contains:
A
[iyunv@redhat tmp]# tar zxvf DBD-mysql-3.0008.tar.gz 重新安装

问题四:
Q
Can't chdir to /home/mailbox//Maildir, No such file or directory
A
不能进入邮件目录,请先在extman后台建立postmaster用户

问题五:
Q
SELECT username, password, "", '1001', '1001', concat('/var/mailbox/',maildir), "", "",
username, "" FROM mailbox WHERE username = "test@test.com"
maildrop: Timeout quota exceeded.
A
请检查/usr/local/authlib/etc/authlib/mysqlauthrc的quota配置项

问题六:
Q
sh: /usr/sbin/sendmail: No such file or directory
A
ln -s /usr/local/postfix-2.2.8/src/sendmail/sendmail /usr/sbin/sendmail

问题八:
Q
error while loading shared libraries: libstdc++.so.5: cannot open shared object file: No such file or directory
A
[iyunv@linux tmp]# rpm -ivh compat-libstdc++-33-3.2.3-47.3.i386.rpm

问题九:
Q
Starting mail statistics grapher: mailgraph_ext
Can't locate RRDs.pm in @INC (@INC contains:
/usr/lib/perl5/5.8.5/i386-linux-thread-multi
A
ln -sv /usr/local/rrdtool/lib/perl/5.8.5/i386-linux-thread-multi/RRDs.pm \
/usr/lib/perl5/5.8.5/i386-linux-thread-multi/

问题十:
Q
Can't locate loadable object for module RRDs in @INC (@INC contains:
/usr/lib/perl5/5.8.5/i386-linux-thread-multi
A
ln -sv /usr/local/rrdtool/lib/perl/5.8.5/i386-linux-thread-multi/auto/RRDs/RRDs.so \
/usr/lib/perl5/5.8.5/i386-linux-thread-multi/

问题十一:
Q
Can't load '/usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi/auto/GD/GD.so'
for module GD: libgd.so.2:
cannot open shared object file: No such file or directory at
/usr/lib/perl5/5.8.5/i386-linux-thread-multi/DynaLoader.pm
line 230., referer: http://192.168.44.200/extman/cgi/index.cgi
A
[iyunv@linux tmp]# vi /etc/ld.so.conf
[iyunv@linux tmp]# less /etc/ld.so.conf
include ld.so.conf.d/*.conf
/usr/X11R6/lib
/usr/local/mysql/lib
/usr/local/BerkeleyDB/lib
/usr/local/authlib/lib/courier-authlib
/usr/local/sasl2/lib
/usr/local/sasl2/lib/sasl2
/usr/local/clamav/lib
/usr/local/lib
/usr/local/authlib/lib/courier-authlib
/usr/local/gd/lib
/usr/local/jpeg/lib
/usr/local/fontconfig/lib
/usr/local/freetype2/lib
/usr/local/png/lib
[iyunv@linux tmp]# ldconfig -v

问题七:
Q
Jan 28 05:04:56 linux postfix/pickup[13892]: DEBD68075: uid=0 from=<root>
Jan 28 05:04:56 linux postfix/cleanup[14026]: DEBD68075: hold: header Received:
by linux.test.com (Postfix, from userid 0)??id DEBD68075; Mon, 28 Jan 2008 05:04
:56 &#43;0800 (CST) from local; from=<root@test.com>
Jan 28 05:04:56 linux postfix/cleanup[14026]: DEBD68075: message-id=<20080127210
456.DEBD68075@linux.test.com>
A
不要将amavisd和MailScanner装在一起 ##可能有其它解决办法吧

问题十二:
Q
httpd: Syntax error on line 99 of /etc/httpd/httpd.conf:
Cannot load /usr/local/\httpd/modules/libphp5.so into server: /usr/local/\httpd/modules/libphp5.so:
cannot restore segment prot after reloc: Permission denied
A
1:禁用selinux
2:chcon -t texrel_shlib_t /usr/local/apache2/modules/*.so

问题十三:
Q
Jun 20 15:29:08 mail authdaemond: authldaplib: sysusername=<null>, sysuserid=1001, sysgroupid=1001,
homedir=/var/mailbox/test.com/test01, address=test01@test.com, fullname=test01,
maildir=test.com/test01/Maildir/, quota=5242880S, options=<null>
Jun 20 15:29:08 mail authdaemond: authldaplib: clearpasswd=<null>,
passwd=$1$8pBM6cXc$Va6UkybwOdSyExU82pQ1A0
Jun 20 15:29:08 mail authdaemond: rebinding with DN
'mail=test01@test.com,virtualDomain=test.com,o=extmailAccount,dc=test.com'
to validate password
Jun 20 15:29:08 mail authdaemond: authentication bind failed, invalid credentials

A
vi /etc/authlib/authldaprc
72 #LDAP_AUTHBIND 1

问题十四:
Q
pop3d: chdir test.com/test01: No such file or directory
A
vi /etc/authlib/authldaprc
#LDAP_MAILDIR mailMessageStore

问题十五:
Q
configure: error: Please fix the library issues listed above and try again.
A
cp /usr/local/png/lib/pkgconfig/libpng.pc /usr/lib/pkgconfig/

问题十六:
Q
Can't locate GD.pm in @INC (@INC contains:
A
安装GD-2.35.tar.gz

问题十七:
Q
怎样查看postfix日志成功接收到邮件:(交货到邮件目录)
A
cat /var/log/maillog |grep &quot;delivered to maildir&quot;
cat /var/log/maillog |grep &quot;delivered to maildir&quot; | egrep -o &quot;(\w&#43;)([@]{1}\w&#43;[.]{1,})(\w&#43;)&quot;

问题十八:
Q
怎样取当天日志:
A
cat /var/log/maillog | egrep &quot;`data | awk &quot;`'{print &quot;&quot;$2&quot; &quot;$3&quot;&quot;}'`&quot;

问题十九:
Q
怎样取指定日期日志:
A
cat /var/log/maill | grep &quot;^Sep\ 25&quot; | egrep &quot;reject|warning|error|fatal|panic&quot; | more

问题二十:
Q
DBD::mysql::db do failed: INSERT command denied to user 'extmail'@'localhost' for table 'domain' at /var/www/extsuite/extman/libs/Ext/Mgr/MySQL.pmline 359.
A
grant all privileges on *.* to 'extmail'@'localhost' identified by 'extmail' with grant option;
问题二十一:
Q、
出现类同Can't exec &quot;mysql_config&quot;: No such file or directory at Makefile.PL line 76.
A
export PATH=$PATH:/usr/local/mysql/bin  

运维网声明 1、欢迎大家加入本站运维交流群:群②:261659950 群⑤:202807635 群⑦870801961 群⑧679858003
2、本站所有主题由该帖子作者发表,该帖子作者与运维网享有帖子相关版权
3、所有作品的著作权均归原作者享有,请您和我们一样尊重他人的著作权等合法权益。如果您对作品感到满意,请购买正版
4、禁止制作、复制、发布和传播具有反动、淫秽、色情、暴力、凶杀等内容的信息,一经发现立即删除。若您因此触犯法律,一切后果自负,我们对此不承担任何责任
5、所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其内容的准确性、可靠性、正当性、安全性、合法性等负责,亦不承担任何法律责任
6、所有作品仅供您个人学习、研究或欣赏,不得用于商业或者其他用途,否则,一切后果均由您自己承担,我们对此不承担任何法律责任
7、如涉及侵犯版权等问题,请您及时通知我们,我们将立即采取措施予以解决
8、联系人Email:admin@iyunv.com 网址:www.yunweiku.com

所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其承担任何法律责任,如涉及侵犯版权等问题,请您及时通知我们,我们将立即处理,联系人Email:kefu@iyunv.com,QQ:1061981298 本贴地址:https://www.yunweiku.com/thread-142947-1-1.html 上篇帖子: Postfix邮件服务器架设 下篇帖子: 带smtp认证的postfix配置
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

扫码加入运维网微信交流群X

扫码加入运维网微信交流群

扫描二维码加入运维网微信交流群,最新一手资源尽在官方微信交流群!快快加入我们吧...

扫描微信二维码查看详情

客服E-mail:kefu@iyunv.com 客服QQ:1061981298


QQ群⑦:运维网交流群⑦ QQ群⑧:运维网交流群⑧ k8s群:运维网kubernetes交流群


提醒:禁止发布任何违反国家法律、法规的言论与图片等内容;本站内容均来自个人观点与网络等信息,非本站认同之观点.


本站大部分资源是网友从网上搜集分享而来,其版权均归原作者及其网站所有,我们尊重他人的合法权益,如有内容侵犯您的合法权益,请及时与我们联系进行核实删除!



合作伙伴: 青云cloud

快速回复 返回顶部 返回列表