首页 > 代码库 > postfix报错信息汇总
postfix报错信息汇总
postfix_编译时make: *** [xsasl_cyrus_server.o] Error 1 make: *** [update] //如果编译出错,检查出错情况,一般是有包忘了装,要不是参数路径错误; 【注释】: xsasl_cyrus_server.c:598: error: ‘SASL_OK‘ undeclared (first use in this function) xsasl_cyrus_server.c:600: warning: format ‘%s‘ expects type ‘char *‘, but argument 3 has type ‘int‘ xsasl_cyrus_server.c:603: error: ‘XSASL_CYRUS_SERVER‘ has no member named ‘username‘ xsasl_cyrus_server.c:604: error: ‘XSASL_CYRUS_SERVER‘ has no member named ‘username‘ xsasl_cyrus_server.c:605: error: ‘XSASL_CYRUS_SERVER‘ has no member named ‘username‘ xsasl_cyrus_server.c:606: error: ‘XSASL_CYRUS_SERVER‘ has no member named ‘username‘ xsasl_cyrus_server.c:607: error: ‘XSASL_CYRUS_SERVER‘ has no member named ‘username‘ make: *** [xsasl_cyrus_server.o] Error 1 make: *** [update] Error 1 # 缺少cyrus认证包:有cyrus-sasl-md5 cyrus-sasl-lib cyrus-sasl-plain cyrus-sasl cyrus-sasl-devel http://rpm.pbone.net/index.php3/stat/2/simple/2 可以找到需要的rpm包
[root@mail8 src]# service dovecot start Starting Dovecot Imap: Error: socket() failed: Address family not supported by protocol Error: service(pop3-login): listen(::, 110) failed: Address family not supported by protocol Error: socket() failed: Address family not supported by protocol Error: service(pop3-login): listen(::, 995) failed: Address family not supported by protocol Error: socket() failed: Address family not supported by protocol Error: service(imap-login): listen(::, 143) failed: Address family not supported by protocol Error: socket() failed: Address family not supported by protocol Error: service(imap-login): listen(::, 993) failed: Address family not supported by protocol Fatal: Failed to start listeners [FAILED] 解决方法: 有可能是IPV6的支持被关掉了,改下配置文件,把监听IPV6地址的选项去掉即可 # vi /etc/dovecot/dovecot.conf 默认是 #listen = *, :: 改为 listen = * # /etc/init.d/dovecot start Starting Dovecot Imap: [ OK ]
Can‘t locate RRDs.pm in @INC (@INC contains: /usr/local/smokeping/lib /usr/lib/perl5/vendor_perl/5.8.8 /usr/lib/perl5/vendor_perl /usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi/auto/RRDs /usr/lib64/perl5/site_perl/5.8.8/x86_64-linux-thread-multi /usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl /usr/lib64/perl5/vendor_perl/5.8.8/x86_64-linux-thread-multi /usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi /usr/lib/perl5/5.8.8 .) at /usr/local/smokeping/lib/Smokeping.pm line 13. BEGIN failed--compilation aborted at /usr/local/smokeping/lib/Smokeping.pm line 13. 网上介绍了很多麻烦的办法,其实找到出问题的原因后,直接 yum install perl-rrdtool 即可解决! 理由不多说,看看这条命令就知道了.
extmail图形无法出现原因 [root@node5 log]# ll /var/lib/mail* -rw-r--r-- 1 root root 28256 Dec 26 12:45 /var/lib/mailgraph_bytes.rrd -rw-r--r-- 1 root root 55344 Dec 26 12:45 /var/lib/mailgraph_courier.rrd -rw-r--r-- 1 root root 68888 Dec 26 12:45 /var/lib/mailgraph_queue.rrd -rw-r--r-- 1 root root 55344 Dec 26 12:45 /var/lib/mailgraph.rrd -rw-r--r-- 1 root root 28256 Dec 26 12:45 /var/lib/mailgraph_virus.rrd -rw-r--r-- 1 root root 55344 Dec 26 12:45 /var/lib/mailgraph_webmail.rrd 如果有上面的rrd文件就可以看到图形了,这些图形是通过发送邮件得来的。所以需要发送邮件才能看到图形。
maillog无日志时,启动rsyslog服务 /etc/init.d/rsyslog start chkconfig rsyslog on
启动报错 Dec 12 09:53:05 mail postfix/postsuper[4681]: fatal: scan_dir_push: open directory defer: Permission denied Dec 12 09:53:06 mail postfix/postfix-script[4682]: fatal: Postfix integrity check failed! 错误解决: # postfix -c /etc/postfix set-permissions
使用POP协议认证报错 Dec 13 10:02:46 AY130902101739504f56Z dovecot: auth: Fatal: Unknown database driver ‘mysql‘ Dec 13 10:02:46 AY130902101739504f56Z dovecot: master: Error: service(auth): command startup failed, throttling Dec 13 10:03:17 AY130902101739504f56Z dovecot: pop3-login: Error: Timeout waiting for handshake from auth server. my pid=18864, input bytes=0 Dec 13 10:03:17 AY130902101739504f56Z dovecot: pop3-login: Error: Timeout waiting for handshake from auth server. my pid=18873, input bytes=0 错误解决: # yum install dovecot-mysql
登陆的时候不断提示输入用户名密码 Dec 13 10:06:35 AY130902101739504f56Z dovecot: pop3-login: Disconnected (tried to use disabled plaintext auth): rip=211.160.178.45, lip=112.124.32.88 Dec 13 10:06:37 AY130902101739504f56Z dovecot: pop3-login: Disconnected (tried to use disabled plaintext auth): rip=211.160.178.45, lip=112.124.32.88 Dec 13 10:06:42 AY130902101739504f56Z dovecot: pop3-login: Disconnected (tried to use disabled plaintext auth): rip=211.160.178.45, lip=112.124.32.88 错误解决: # vi /etc/dovecot/conf.d/10-mail.conf #mail_location = mbox:/var/mailbox:INBOX=/var/mailbox/%u mail_location = maildir:/var/mailbox/%d/%n/Maildir # vi /etc/dovecot/dovecot.conf protocols = imap pop3 lmtp disable_plaintext_auth = no
SASL认证失败 Dec 13 10:36:45 AY130902101739504f56Z authdaemond: failed to connect to mysql server (server=localhost., userid=extmail): Unknown MySQL server host ‘localhost.‘ (1) Dec 13 10:36:45 AY130902101739504f56Z postfix/smtpd[20113]: NOQUEUE: reject: RCPT from unknown[211.160.178.45]: 454 4.7.1 <41808100@qq.com>: Relay access denied; from=<test@example.com> to=<418080@qq.com> proto=ESMTP helo=<Jerry> Dec 13 10:36:45 AY130902101739504f56Z postfix/smtpd[20113]: lost connection after RCPT from unknown[211.160.178.45] Dec 13 10:36:45 AY130902101739504f56Z postfix/smtpd[20113]: disconnect from unknown[211.160.178.45] Dec 13 10:40:01 AY130902101739504f56Z postfix/pickup[17317]: 992FEEA185: uid=0 from=<root> 错误解决: # vi /etc/authmysqlrc MYSQL_SERVER localhost #日志里有一个是localhost. 这个可能是因为在配置文件批量的时候,多了空格之类的东西
登陆报错 Dec 13 11:06:50 AY130902101739504f56Z dovecot: auth: mysql: Connected to localhost (extmail) Dec 13 11:06:53 AY130902101739504f56Z dovecot: pop3-login: Login: user=<test@example.com>, method=PLAIN, rip=211.160.178.45, lip=112.124.32.88, mpid=21179 Dec 13 11:06:53 AY130902101739504f56Z dovecot: pop3(test@example.com): Error: user honway.liu@mail1.mdu.pw: Couldn‘t drop privileges: Mail access for users with GID 0 not permitted (see first_valid_gid in config file). Dec 13 11:06:53 AY130902101739504f56Z dovecot: pop3(honway.liu@gm100861.com): Error: Internal error occurred. Refer to server log for more information. 错误解决: # vi /etc/dovecot/conf.d/10-mail.conf first_valid_uid = 0 # /etc/init.d/dovecot restart
启动apache报错 Warning: DocumentRoot [/var/www/extsuite/extmail/html/] does not exist 目录明明是存在的,而且看日志是报403 错误解决: # getenforce Enforcing # setenforce 0 # vi /etc/sysconfig/selinux SELINUX=disabled
打开Extmail报错 Can‘t locate CGI.pm in @INC (@INC contains: /var/www/extsuite/extmail/libs /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5) at /var/www/extsuite/extmail/libs/Ext/CGI.pm line 20. BEGIN failed--compilation aborted at /var/www/extsuite/extmail/libs/Ext/CGI.pm line 20. Compilation failed in require at /var/www/extsuite/extmail/libs/Ext/App.pm line 23. BEGIN failed--compilation aborted at /var/www/extsuite/extmail/libs/Ext/App.pm line 23. Compilation failed in require at /var/www/extsuite/extmail/libs/Ext/App/Login.pm line 16. BEGIN failed--compilation aborted at /var/www/extsuite/extmail/libs/Ext/App/Login.pm line 16. Compilation failed in require at /var/www/extsuite/extmail/cgi/index.cgi line 20. 错误解决 # yum install perl-CGI
不显示验证码报错 查看apache的错误日志报如下 [Mon Dec 16 16:58:58 2013] [error] [client 211.160.178.45] BEGIN failed--compilation aborted at /var/www/extsuite/extman/libs/Ext/GD.pm line 14., referer: http://1.1.1.1/extman/cgi/index.cgi?__mode=show_login&error=vcode [Mon Dec 16 16:58:58 2013] [error] [client 211.160.178.45] Compilation failed in require at /var/www/extsuite/extman/cgi/captcha.cgi line 22., referer: http://1.1.1.1/extman/cgi/index.cgi?__mode=show_login&error=vcode [Mon Dec 16 16:58:58 2013] [error] [client 211.160.178.45] BEGIN failed--compilation aborted at /var/www/extsuite/extman/cgi/captcha.cgi line 22., referer: http://1.1.1.1/extman/cgi/index.cgi?__mode=show_login&error=vcode [Mon Dec 16 16:58:58 2013] [error] [client 211.160.178.45] Premature end of script headers: captcha.cgi, referer: http://1.1.1.1/extman/cgi/index.cgi?__mode=show_login&error=vcode 错误解决: # yum install perl-GD
启动dovecot报错 # /etc/init.d/dovecot start Starting Dovecot Imap: Error: socket() failed: Address family not supported by protocol Error: service(pop3-login): listen(::, 110) failed: Address family not supported by protocol Error: socket() failed: Address family not supported by protocol Error: service(pop3-login): listen(::, 995) failed: Address family not supported by protocol Error: socket() failed: Address family not supported by protocol Error: service(imap-login): listen(::, 143) failed: Address family not supported by protocol Error: socket() failed: Address family not supported by protocol Error: service(imap-login): listen(::, 993) failed: Address family not supported by protocol Fatal: Failed to start listeners [FAILED] 有可能是IPV6的支持被关掉了,改下配置文件,把监听IPV6地址的选项去掉即可 # vi /etc/dovecot/dovecot.conf 默认是 #listen = *, :: 改为 listen = * # /etc/init.d/dovecot start Starting Dovecot Imap: [ OK ]
收件箱目录不全 Dec 31 10:43:21 mailmh postfix/virtual[4496]: EB4F71219A5: to=<sender@meihua.info>, relay=virtual, delay=314, delays=314/0.01/0/0.01, dsn=4.2.0, status=deferred (delivery failed to mailbox /var/mailbox/meihua.info/sender/Maildir: cannot open file: Is a directory) Dec 31 10:43:21 mailmh postfix/virtual[4499]: B35E41219A2: to=<peter.chen@meihua.info>, relay=virtual, delay=599, delays=599/0.02/0/0.01, dsn=4.2.0, status=deferred (delivery failed to mailbox /var/mailbox/meihua.info/peter.chen/Maildir: cannot open file: Is a directory) 解决办法: 由于导入用户收件箱目录路径不全,导致打开文件时提示错误 在mysql数据库中更改Maildir/ /var/mailbox/meihua.info/sender/Maildir/
用户Gid不符,权限错误 Dec 31 10:53:52 mailmh dovecot: pop3(sender@meihua.info): Error: fchown(/var/mailbox/meihua.info/sender/Maildir/dovecot-uidlist.tmp, -1, 2525) failed: Operation not permitted (egid=0, group based on /var/mailbox/meihua.info/sender/Maildir) Dec 31 10:53:52 mailmh dovecot: pop3(sender@meihua.info): Disconnected: Logged out top=0/0, retr=3/5483, del=3/3, size=5433 解决办法: 更改数据库中uid和gid是postfix权限 同样目录权限也一样
启动服务报错: # /usr/local/mailgraph_ext/mailgraph-init start Starting mail statistics grapher: mailgraph_ext Can‘t locate RRDs.pm in @INC (@INC contains: /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .) at /usr/local/mailgraph_ext/mailgraph_ext.pl line 292. BEGIN failed--compilation aborted at /usr/local/mailgraph_ext/mailgraph_ext.pl line 292. Starting queue statistics grapher: qmonitor Can‘t locate RRDs.pm in @INC (@INC contains: /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .) at /usr/local/mailgraph_ext/qmonitor.pl line 8. BEGIN failed--compilation aborted at /usr/local/mailgraph_ext/qmonitor.pl line 8. 解决办法: # yum instal -y perl-RRDs
安装Time-HiRes报错 # perl Makefile.PL Can‘t locate ExtUtils/MakeMaker.pm in @INC (@INC contains: /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .) at Makefile.PL line 11. BEGIN failed--compilation aborted at Makefile.PL line 11. 解决办法: # yum install -y perl-devel
发送邮件报错: Apr 6 04:00:58 localhost postfix/smtp[20329]: CC6AC20C42: to=<timo.fischer@unicepta.com>, relay=mx-rr01.unicepta.de[82.165.8.66]:25, delay=294791, delays=294787/0.02/3.4/0.61, dsn=4.7.1, status=deferred (host mx-rr01.unicepta.de[82.165.8.66] said: 450 4.7.1 <10-6-1-205.localdomain>: Helo command rejected: Host not found (in reply to RCPT TO command)) 解决办法: 日志里报错信息:主机名未找到,说明本地主机名不是规定的fqdn主机名。 # vi /etc/postfix/main.cf myhostname = mail6.meihua.info 测试发送邮件 # echo hello |mail -s ‘hello‘ evelyn.engesser@unicepta.com 日志如下: Apr 9 10:33:10 localhost postfix/qmgr[3199]: D2A28208FF: from=<root@10-6-1-205.localdomain>, size=458, nrcpt=1 (queue active) Apr 9 10:33:13 localhost postfix/smtp[3260]: D2A28208FF: to=<evelyn.engesser@unicepta.com>, relay=mx-rr01.unicepta.de[88.198.40.23]:25, delay=454, delays=450/0.02/2.3/0.88, dsn=2.0.0, status=sent (250 2.0.0 Ok: queued as 6AE06D48067) Apr 9 10:33:13 localhost postfix/qmgr[3199]: D2A28208FF: removed 正常发送成功,解决问题
本文出自 “charlie_cen” 博客,请务必保留此出处http://charlie928.blog.51cto.com/3741218/1433178
声明:以上内容来自用户投稿及互联网公开渠道收集整理发布,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任,若内容有误或涉及侵权可进行投诉: 投诉/举报 工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。