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包
[[email protected] 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图形无法出现原因
[[email protected] 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 <[email protected]>: Relay access denied; from=<[email protected]> to=<[email protected]> 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=<[email protected]>, method=PLAIN, rip=211.160.178.45, lip=112.124.32.88, mpid=21179
Dec 13 11:06:53 AY130902101739504f56Z dovecot: pop3([email protected]): Error: user [email protected]: 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([email protected]): 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=<[email protected]>, 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=<[email protected]>, 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([email protected]): 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([email protected]): 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=<[email protected]>, 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‘  [email protected]
日志如下:
Apr  9 10:33:10 localhost postfix/qmgr[3199]: D2A28208FF: from=<[email protected]>, size=458, nrcpt=1 (queue active)
Apr  9 10:33:13 localhost postfix/smtp[3260]: D2A28208FF: to=<[email protected]>, 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
正常发送成功,解决问题

postfix报错信息汇总

时间: 2025-01-02 16:37:11

postfix报错信息汇总的相关文章

JavaWeb: 报错信息The superclass &quot;javax.servlet.http.HttpServlet&quot; was not found on the Java Build Path

JavaWeb: 报错信息The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path 好久不写Jsp,今天建立了一个Javaweb工程,并在eclipse中配置了Web容器Tomcat.原本开心的新建jsp页面,添加一个简单的Java类.可是,JSP页面顶端出现“红色”的报错信息:The superclass "javax.servlet.http.HttpServl

eclipse:报错信息The superclass &quot;javax.servlet.http.HttpServlet&quot; was not found on the Java Build Path

JavaWeb: 报错信息The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path 今天建立了一个Javaweb工程,并在eclipse中配置了Web容器Tomcat.JSP页面顶端出现“红色”的报错信息:The superclass "javax.servlet.http.HttpServlet" was not found on the Java Bu

Maven项目红色叹号+JavaWeb: 报错信息The superclass &amp;quot;javax.servlet.http.HttpServlet&amp;quot; was not found on the Java B

昨天写的关于解决JavaWeb: 报错信息The superclass "javax.servlet.http.HttpServlet" was not found on the Java的方案非常好的攻克了这个错误,可是它没有全然的解决我的问题,Maven项目依旧有一个红色叹号存在.红色叹号存在的原因是:.classpath配置文件引用了某jar包,可是lib里却不存在此jar.我所遇到的问题又是一种新的情况,jar存在lib里存在,但还是报题目中的两个错误.细致研究发现我的java

【SSH权限故障】 &nbsp; 报错信息:Connection closed by

SSH权限故障 故障现象:业务反馈一台虚拟机无法登陆,早晨还好好的 报错信息: [[email protected] ~]# ssh 10.12.141.111 Connection closed by 10.12.141.111 没有台明显的报错,然后-v [[email protected] ~]# ssh -v 10.12.141.111 OpenSSH_5.3p1, OpenSSL 1.0.1e-fips 11 Feb 2013 debug1: Reading configuration

【php】开启与关闭调试与报错信息

开启调试与报错信息有利于编程人员掌握出错的位置,从而更快地解决问题. 关闭调试信息,则在你的网页发布时候,用户看不到你的php出现运行错误,当然也不会看到正确东西,仅仅会是一篇空白. 关键是在php安装之后,忘记开启调试与报错信息,在你编程的时候写错代码,却发现php没有报错,会产生一头雾水,此时你要关注你的php安装目录下的php.ini 如下图,找到display_errors那行,注意把Off,改成On,On的第一个字母注意大写.反之亦然. 同时,重启一下你的 Apache服务器. 此时你

tomcat部署新的项目的时候出现报错信息: Invalid byte tag in constant pool: 15

上面一堆tomcat启动的提示信息省略掉,下面是报错的具体信息:org.apache.tomcat.util.bcel.classfile.ClassFormatException: Invalid byte tag in constant pool: 15 at org.apache.tomcat.util.bcel.classfile.Constant.readConstant(Constant.java:131) at org.apache.tomcat.util.bcel.classfi

动态添加Fragment的报错信息

05-29 21:23:28.406: E/AndroidRuntime(23636): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.***.Main}: java.lang.IllegalStateException: The specified child already has a parent. You must call removeView() on the child's parent

JavaWeb:报错信息The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path 解决办法

JavaWeb: 报错信息The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path 好久不写Jsp,今天建立了一个Javaweb工程,并在eclipse中配置了Web容器Tomcat.原本开心的新建jsp页面,添加一个简单的Java类.可是,JSP页面顶端出现"红色"的报错信息:The superclass "javax.servlet.http

SVN Cornerstone 报错信息 xcodeproj cannot be opened because the project file cannot be parsed.

svn点击update 之后,打开xcode工程文件,会出现  xxx..xcodeproj  cannot be opened becausethe project file cannot be parsed. 发现项目中代码全没了.只有一个空的工程名字,因为xcodeproj工程文件冲突了,然后就是svn强制给你更新了,内部的文件冲突了,你们改了同样的地方的一段代码,可能是你们只是多加了一个空格,或者你们都加了代码,或者都是把对方的删了,自己又加的.所有svn不知道你们谁的对,到底听你们谁的