postfix运行环境错误信息汇总

本文涉及的产品
RDS MySQL Serverless 基础系列,0.5-2RCU 50GB
云数据库 RDS PostgreSQL,高可用系列 2核4GB
RDS MySQL Serverless 高可用系列,价值2615元额度,1个月
简介:
显示信件列表: 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 
[email]test@test.com[/email]

问题一: 

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  

ln -s /usr/local/lib/sasl2 /usr/lib/sasl2 

问题二: 

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  

系统已经安装sasl-cyrus 删除掉,然后编译重装 

问题三: 

install_driver(mysql) failed: Can't locate DBD/mysql.pm in @INC (@INC contains:  

[root@redhat tmp]# tar zxvf DBD-mysql-3.0008.tar.gz 重新安装 

问题四: 

Can't chdir to /home/mailbox//Maildir, No such file or directory  

不能进入邮件目录,请先在extman后台建立postmaster用户 

问题五: 

SELECT username, password, "", '1001', '1001', concat('/var/mailbox/',maildir), "", "", 
username, "" FROM mailbox WHERE username = "
[email]test@test.com[/email]
maildrop: Timeout quota exceeded.  

请检查/usr/local/authlib/etc/authlib/mysqlauthrc的quota配置项 

问题六: 

sh: /usr/sbin/sendmail: No such file or directory  

ln -s /usr/local/postfix-2.2.8/src/sendmail/sendmail /usr/sbin/sendmail 

问题八: 

error while loading shared libraries: libstdc++.so.5: cannot open shared object file: No such file or directory  

[root@linux tmp]# rpm -ivh compat-libstdc++-33-3.2.3-47.3.i386.rpm 

问题九: 

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  

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/ 

问题十: 

Can't locate loadable object for module RRDs in @INC (@INC contains: 
/usr/lib/perl5/5.8.5/i386-linux-thread-multi  

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/ 

问题十一: 

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: 
[url]http://192.168.44.200/extman/cgi/index.cgi[/url]   

[root@linux tmp]# vi /etc/ld.so.conf 
[root@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 
[root@linux tmp]# ldconfig -v 

问题七: 

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 +0800 (CST) from local; from=<
[email]root@test.com[/email]
Jan 28 05:04:56 linux postfix/cleanup[14026]: DEBD68075: message-id=<20080127210 
[email]456.DEBD68075@linux.test.com[/email] >  

不要将amavisd和MailScanner装在一起 ##可能有其它解决办法吧 
 
问题十二: 

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  

1:禁用selinux 
2:chcon -t texrel_shlib_t /usr/local/apache2/modules/*.so 
 
问题十三: 

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 
 

vi /etc/authlib/authldaprc 
72 #LDAP_AUTHBIND 1 
 
问题十四: 

pop3d: chdir test.com/test01: No such file or directory  

vi /etc/authlib/authldaprc 
#LDAP_MAILDIR mailMessageStore 
 
问题十五: 

configure: error: Please fix the library issues listed above and try again.  

cp /usr/local/png/lib/pkgconfig/libpng.pc /usr/lib/pkgconfig/ 

问题十六: 

Can't locate GD.pm in @INC (@INC contains:  

安装GD-2.35.tar.gz 

问题十七: 

怎样查看postfix日志成功接收到邮件:(交货到邮件目录)  

cat /var/log/maillog |grep "delivered to maildir" 
cat /var/log/maillog |grep "delivered to maildir" | egrep -o "(\w+)([@]{1}\w+[.]{1,})(\w+)" 

问题十八: 

怎样取当天日志:  

cat /var/log/maillog | egrep "`data | awk "`'{print ""$2" "$3""}'`" 

问题十九: 

怎样取指定日期日志:  

cat /var/log/maill | grep "^Sep\ 25" | egrep "reject|warning|error|fatal|panic" | 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.pm line 359. 
A
grant all privileges on *.* to 
'extmail'@'localhost'  identified by 'extmail' with grant option;
问题二十一:
Q、
出现类同Can't exec "mysql_config": No such file or directory at Makefile.PL line 76.
A
export PATH=$PATH:/usr/local/mysql/bin  


本文转自king_819 51CTO博客,原文链接:http://blog.51cto.com/kerry/102158,如需转载请自行联系原作者
相关实践学习
每个IT人都想学的“Web应用上云经典架构”实战
本实验从Web应用上云这个最基本的、最普遍的需求出发,帮助IT从业者们通过“阿里云Web应用上云解决方案”,了解一个企业级Web应用上云的常见架构,了解如何构建一个高可用、可扩展的企业级应用架构。
MySQL数据库入门学习
本课程通过最流行的开源数据库MySQL带你了解数据库的世界。 &nbsp; 相关的阿里云产品:云数据库RDS MySQL 版 阿里云关系型数据库RDS(Relational Database Service)是一种稳定可靠、可弹性伸缩的在线数据库服务,提供容灾、备份、恢复、迁移等方面的全套解决方案,彻底解决数据库运维的烦恼。 了解产品详情:&nbsp;https://www.aliyun.com/product/rds/mysql&nbsp;
相关文章
|
网络协议 Linux 文件存储
Postfix 邮件服务器的配置
Postfix是一种功能强大且功能多样的邮件传输代理。在本文中,我们已经了解了如何使用postfix 和 dovecot为基于系统用户帐户的单个域实现基本电子邮件服务器。我们几乎没有涉及基于 postfix 的系统的真正功能,但希望能为新用户构建提供坚实的工作基础。
2094 0
|
网络协议 Linux 网络安全
Linux服务器---邮件服务安装postfix
安装postfix      postfix是一个快速、易于管理、安全性高的邮件发送服务,可以配合dovecot实现一个完美的邮箱服务器。1、安装postfix       [root@localhost ~]# rpm -qa | grep postfix      [root@localhos...
2467 0
|
网络协议 关系型数据库 MySQL
|
开发工具 网络安全 数据安全/隐私保护
Postfix 邮件服务器安装与配置
#!/bin/bash yum -y install postfix dovecot; #/etc/postfix/main.cf #postfix check  postfix start  postfix stop postfix flush  postfixreload #/etc/postfix/main.
1410 0
|
网络协议 测试技术 开发工具
|
网络协议 测试技术 数据安全/隐私保护
|
测试技术 开发工具 数据安全/隐私保护
|
网络协议 安全 关系型数据库
|
Linux 开发工具 数据安全/隐私保护