转自白手起家博客

http://bbs.chinaunix.net/forum.php?mod=viewthread&tid=770141

说明一下:Q代表安装过程中遇到的问题,或者是日志中出现的现象。A:代表解决方法。

Q:
Jan 13 11:26:29 mail authdaemond: failed to connect to mysql server (server=localhost , userid=postfix ): Unknown MySQL server host 'localhost ' (2)
Jan 13 11:26:29 mail postfix/smtpd[2829]: warning: SASL authentication failure: could not verify password
Jan 13 12:11:19 mail authdaemond: failed to connect to mysql server (server=localhost, userid=postfix ): Can't connect to local MySQL server through socket '/tmp/mysql.sock ' (2)
Jan 13 12:11:19 mail postfix/smtpd[2870]: warning: SASL authentication failure: could not verify password
A:
将vi /usr/local/courier-authlib/etc/authmysqlrc中参数后的空格删除即可

Q:
编译pam_mysql:
[root@mail src]# tar -zxf pam_mysql-0.5.tar.gz
[root@mail src]# cd pam_mysql
修改pam_mysql.c的源代码,去掉调试消息:
[root@mail pam_mysql]# vi +54 pam_mysql.c
将如下一行:
#define DEBUG
修改为:
/* #define DEBUG */
然后编译:
[root@mail pam_mysql]# make
然后报错“make: *** [dynamic/pam_mysql.o] Error 1”无法尽心,没有生成pam_mysql.so模块。
A:
装mysql的devel和shared包吧,对应版本的,用mysql.com上面的就行

Q:
安装POSTFIX2.2.7出错
[root@mail postfix-2.2.7]# make
make -f Makefile.in MAKELEVEL= Makefiles
(echo "# Do not edit -- this file documents how Postfix was built for your machine."; /bin/sh makedefs) >makedefs.tmp
No <db.h> include file found.
Install the appropriate db*-devel package first.
See the RELEASE_NOTES file for more information.
make: *** [Makefiles] Error 1
make: *** [Makefiles] Error 2
A:
没装berkeleyDB的开发库,或者是指定路径没有找到,所以报这个错了。如果是linux, 注意看有没有db*-devel的rpm,或者libdb*-dev的deb(debian)如果是bsd,则看看有没有装db3/db4等包

Q:
按照Postfix+Cyrus-IMAP+Cyrus-SASL+MySQL+IMP(王兴宇的)完全指南进行到了步骤8.5 ,用cyradm创建邮箱,可是却出现了如下错误:
[root@localhost bin]# cyradm --user cyrus localhost
Can't load '/usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi/auto/Cyrus/IMAP/IMAP.so' for module Cyrus::IMAP: /usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi/auto/Cyrus/IMAP/IMAP.so: undefined symbol: db_version at /usr/lib/perl5/5.8.5/i386-linux-thread-multi/DynaLoader.pm line 230.
at /usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi/Cyrus/IMAP/Admin.pm line 44
Compilation failed in require at /usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi/Cyrus/IMAP/Admin.pm line 44.
BEGIN failed--compilation aborted at /usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi/Cyrus/IMAP/Admin.pm line 44.
Compilation failed in require at /usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi/Cyrus/IMAP/Shell.pm line 60.
BEGIN failed--compilation aborted at /usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi/Cyrus/IMAP/Shell.pm line 60.
Compilation failed in require.
BEGIN failed--compilation aborted.请问是什么原因?应该怎么解决?
A:
安装了perl-Cyrus包后就好了。

Q:
[root@mail postfix]# /usr/sbin/postfix start
postfix/postfix-script: warning: not owned by postfix: /var/spool/postfix/hold
postsuper: fatal: scan_dir_push: open directory hold: Permission denied
postfix/postfix-script: fatal: Postfix integrity check failed!
呵呵权限问题,看你的postfix的用户和用户组是什么。是/usr/sbin/postfix的权限吗?我改为1777还是不行
A:
chown postfix:postfix /var/spool/postfix/hold

Q:
Oct 24 11:38:24 qmail postfix/smtpd[2004]: warning: SASL authentication failure: Password verification failed
Oct 24 11:38:24 qmail postfix/smtpd[2004]: warning: unknown[221.221.172.11]: SASL plain authentication failed无法通过认证,请问高手这是什么原因?
A:
将main.cf中的smtpd_sasl_local_domain设为空即可。

Q:
Oct 24 11:38:24 qmail postfix/smtpd[2004]: warning: SASL authentication failure: Password verification failed
Oct 24 11:38:24 qmail postfix/smtpd[2004]: warning: unknown[221.221.172.11]: SASL plain authentication failed无法通过认证,请问高手这是什么原因?
A:
将main.cf中的smtpd_sasl_local_domain设为空即可。

Q:
[root@mail postfix]# /usr/sbin/postfix start
postfix/postfix-script: warning: not owned by group postdrop: /var/spool/postfix/public
postfix/postfix-script: warning: not owned by group postdrop: /var/spool/postfix/maildrop
postfix/postfix-script: warning: not owned by root: /var/spool/postfix/etc
postfix/postfix-script: starting the Postfix mail system
A:
chgrp postdrop /var/spool/postfix/maildrop
chgrp postdrop /var/spool/postfix/public

Q:
[root@mail postfix]# /usr/sbin/postfix start
postfix/postfix-script: warning: not owned by root: /var/spool/postfix/etc
postfix/postfix-script: starting the Postfix mail system
A:
chown root /var/spool/postfix/etc

Q:
postalias: warning: /usr/local/etc/postfix/aliases.db: duplicate entry: "root"
A:
这个已经很清楚告诉您,您的aliases档案内有重复的root别名设定。修正一下该问题吧.. 

Q:
postfix/master [200]: fatal: bind INADDR_ANY port 25: address already in use
A:
可能是其他的邮件服务还在运行,停掉就好了

Q:
Jan 2 12:36:31 mail saslauthd[29494]: do_auth: auth failure: [user=yardian] [service=smtp] [realm=] [mech=pam] [reason=PAM auth error]
A:
MECH=pam那个改为shadow 再relstart

Q:
fatal: unsupported dictionary type: mysql
A:
没增加mysql的支持:)

Q:
temporarily suspended: connect to 127.0.0.1[127.0.0.1]: Connection refused)
A:
没打开amavisd吧。。内容过滤器那里没打开。

Q:
[root@mail root]# echo pwcheck_method: saslauthd > /usr/lib/sasl2/smtpd.conf
[root@mail root]# echo mech_list: plain login >> /usr/lib/sasl2/smtpd.conf
[root@mail root]# vi /etc/sysconfig/saslauthd
MECH=shadow我想问一下我现在到底用的是shadow还是saslauthd?
A:
shadow是saslauthd认的,而pwcheck_method是postfix + sasl库认的。2个不是一个东西

Q:
[root@localhost mysql]# mysql -u root password
ERROR 2002 (HY000): Can't connect to local MySQL server through socket /var/lib/mysql/mysql.sock' (2)
A:
在/etc/rc.conf中增加mysql_enable="YES"

Q:
perl Makefile.PL
make installDBI connect('database=extmail;host=localhost;mysql_socket=/var/lib/mysql/mysql.sock','extmail',...) failed: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) at /usr/local/httpd/htdocs/extmail/libs/Ext/Auth/MySQL.pm line 44
A:
vi webmail.cf
修改
SYS_MYSQL_SOCKET = /tmp/mysql.sock

Q:
Can't call method "prepare" on an undefined value at /usr/local/httpd/htdocs/extman/libs/Ext/Mgr/MySQL.pm line 59.
A:
在mysql.pm里将RaiseError => 0 改为1 这个是打开mysql更多的出错提示。

Q:
smtpd认证失败:无权限连接authdaemond
Nov 20 15:58:54 bsd6 postfix/smtpd[900]: warning: SASL authentication failure: cannot connect to Courier authdaemond: Permission denied
A:
检查 authdaemond的socket所在目录及其父目录的属性是否对smtpd可读。如果不可读则出现这个问题(permission的问题)。chmod +x /var/spool/authdaemon

Q:
Jan 13 13:18:27 mail postfix/virtual[3787]: warning: maildir access problem for UID/GID=502/502: create /home/mail/showdesign.com/demo/Maildir/tmp/1137129507.P3787.mail: Permission denied
A:
更改main.cf中
virtual_uid_maps = static:502
virtual_gid_maps = static:502组ID

2006-01-13 15:22加入
Q:
在extmail中不能发信,提示:Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
在apache日志中显示:
[root@mail ~]# tail -f /usr/local/httpd/logs/error_log
sh: /usr/sbin/sendmail: No such file or directory
sh: /usr/sbin/sendmail: No such file or directory
sh: /usr/sbin/sendmail: No such file or directory
[Thu Jan 12 17:11:19 2006] [notice] caught SIGTERM, shutting down
[Fri Jan 13 12:34:46 2006] [warn] Init: Session Cache is not configured [hint: SSLSessionCache]
[Fri Jan 13 12:34:46 2006] [notice] suEXEC mechanism enabled (wrapper: /usr/local/httpd/bin/suexec)
[Fri Jan 13 12:34:47 2006] [notice] Apache/2.2.0 (Unix) mod_ssl/2.2.0 OpenSSL/0.9.7a PHP/4.4.1 configured -- resuming normal operations
sh: /usr/sbin/sendmail: No such file or directory
sh: /usr/sbin/sendmail: No such file or directory
sh: /usr/sbin/sendmail: No such file or directory
A:

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

本文转自 wdy198622 51CTO博客,原文链接:

http://blog.51cto.com/weimouren/1826048

创建邮箱过程中的问题及解决办法相关推荐

  1. 异常“只能在执行Render()的过程中调用RegisterForEventValidation”的解决办法(转)...

    当出现下面的异常的时候: 只能在执行Render()的过程中调用RegisterForEventValidation 当出现的异常的提示: 异常详细信息: System.InvalidOperatio ...

  2. npm使用过程中的一些错误解决办法及npm常用命令

    node,npm在前端开发流程中提供了非常完善的自动化工具链,但是同样由于其复杂性导致有很多奇奇怪怪的问题.本文将记录使用过程中出现的一些问题及其解决方法备案. 国内由于gfw问题,导致很多国外的网站 ...

  3. [Django]我的第一个网页,报错啦~(自己实现过程中遇到问题以及解决办法)

    环境配置: python :2.7.13 django:1.10.5 OS:Win7(64位)& Centos7 问题描述  解决办法   global name 'render' is no ...

  4. wincc不正确的过程数据服务器,WinCC安装过程中的问题及其解决办法

    西门子的工控软件,尤其像WinCC安装起来有时候并不是那么顺手,可能会遇到各种问题.WinCC安装之前,硬件和软件都应该正确配置,在安装过程中,WinCC安装程序会注意检查是否满足以下安装条件: 1. ...

  5. oracle错误oui 25031,搭建Oracle10gRAC过程中出现OUI-25031的解决办法

    OS 版本是:Enterprise Linux Enterprise Linux Server release 5.4DB 版本是:Oracle Database 10g Enterprise Edi ...

  6. oracle 10grac搭建,搭建ORACLE 10g RAC过程中出现 OUI-25031 的解决办法

    OS 版本是:Enterprise Linux Enterprise Linux Server release5.4 DB版本是:Oracle Database 10g Enterprise Edit ...

  7. Revit使用过程中打开闪退解决办法

    在使用revit软件建模的过程中,会遇到软件闪退的情况.关于闪退的原因会有很多,所以这里只针对两种比较常见的情况进行讲解. 解决办法: 1.关闭硬件加速: 找到Revit.ini配置文件,修改开启硬件 ...

  8. idea安装及项目导入过程中pom报错解决办法

    1.idea安装可用破解版或者在淘宝上买正版账号(20多块钱一年,挺便宜的) 2.pom报错解决办法: 在项目导入过程中pom报错: 原因:相关jar包未下载完.(下载速度慢,因为下载的链接是国外的节 ...

  9. Pytorch使用过程中显存爆炸解决办法

    pytorch中的python对象占用空间很大,模型可以用.cuda()方法放在GPU上,临时的一个batch数据也在训练时放在GPU上进行计算,随着时间推移,显存占用指数倍增长,如果可以的话,把训练 ...

最新文章

  1. 论坛报名 | 视觉大模型是实现视觉智能的必由之路吗?
  2. 利用dns解析来实现网站的负载均衡
  3. 【转】VScode快捷键(超无敌详细版)
  4. 联想Z6 Pro测评:斗战圣佛?很能打!
  5. java 监听者模式有啥用,监听者模式在系统中的应用 —— 事件总线
  6. 关于char, wchar_t, TCHAR, _T(),L,宏 _T、TEXT,_TEXT
  7. java获取hive表结构_oracle12c中 表结构转换成hive表结构的脚本
  8. C++的 RTTI 观念和用途
  9. (论文加源码)通过构建脑图基于DEAP的情绪识别多任务CNN模型(提取了功率谱密度psd和微分熵DE)
  10. iOS country code及国际区号
  11. MyBatis Generator 代码生成器窜库问题
  12. 在线广告结算方式及对比
  13. Tomcat 开启远程监控(JMX)
  14. 【论文阅读】Advances and challenges in conversational recommender systems: A survey
  15. C++中自带的二分查找函数
  16. 如何恢复删除好友的微信聊天记录?iPhone手机高效操作方法
  17. 发现一个推特前端替代网站,可以直接浏览推特用户发布的内容。
  18. 北漂码农的真实心声:赚一线城市的钱,还二线城市的房贷
  19. 在ubuntu安装最新版QQ教程
  20. 《从程序员到项目经理》读后感-直率

热门文章

  1. C和汇编混合编程----printf
  2. excel oledb mysql_OLEDB操作Excel
  3. python用电度数设计_无所不能的Python之配电设计自动化系统
  4. Unix网络编程(六)高级I/O技术之复用技术 select
  5. 【电路原理】学习笔记(0):电路与电路模型
  6. nginx源码阅读(一).综述
  7. 使用Tomcat+MyEclipse开发Java Web配置
  8. 一步搞定你疑惑的数据结构与算法系列,原理+实战讲解
  9. 【工作经验分享】这些新技术你们都知道吗
  10. vue实现可编辑的文字_苹果还自带文字转语音,只要一键按下便可实现,今天分享给大家...