postfix运行环境错误信息汇总(转)-凯发app官方网站

凯发app官方网站-凯发k8官网下载客户端中心 | | 凯发app官方网站-凯发k8官网下载客户端中心
  • 博客访问: 6315269
  • 博文数量: 162
  • 博客积分: 3600
  • 博客等级: 中校
  • 技术积分: 10366
  • 用 户 组: 普通用户
  • 注册时间: 2011-01-19 11:23
个人简介

专注系统运维、网络架构,研究技术凯发app官方网站的解决方案,记录我的思想轨迹、工作学习、生活和关注的领域

文章分类
文章存档

2014年(2)

2013年(16)

2012年(27)

2011年(117)

相关博文
  • ·
  • ·
  • ·
  • ·
  • ·
  • ·
  • ·
  • ·
  • ·
  • ·

分类: linux

2011-04-04 13:04:09

显示信件列表: 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

问题一:
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
[root@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 = ""
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
[root@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:
a
[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

问题七:
q
jan 28 05:04:56 linux postfix/pickup[13892]: debd68075: uid=0 from=
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=<>
jan 28 05:04:56 linux postfix/cleanup[14026]: debd68075: message-id=<20080127210
>
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=, sysuserid=1001, sysgroupid=1001,
homedir=/var/mailbox/test.com/test01, , fullname=test01,
maildir=test.com/test01/maildir/, quota=5242880s, options=
jun 20 15:29:08 mail authdaemond: authldaplib: clearpasswd=,
passwd=$1$8pbm6cxc$va6ukybwodsyexu82pq1a0
jun 20 15:29:08 mail authdaemond: rebinding with dn

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 "delivered to maildir"
cat /var/log/maillog |grep "delivered to maildir" | egrep -o "(\w )([@]{1}\w [.]{1,})(\w )"

问题十八:
q
怎样取当天日志:
a
cat /var/log/maillog | egrep "`data | awk "`'{print ""$2" "$3""}'`"

问题十九:
q
怎样取指定日期日志:
a
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 for table 'domain' at /var/www/extsuite/extman/libs/ext/mgr/mysql.pm line 359.
a
grant all privileges on *.* to 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  

阅读(14537) | 评论(0) | 转发(3) |
1

上一篇:linux上创建除root的超级用户

下一篇:

给主人留下些什么吧!~~
")); function link(t){ var href= $(t).attr('href'); href ="?url=" encodeuricomponent(location.href); $(t).attr('href',href); //setcookie("returnouturl", location.href, 60, "/"); }
网站地图