Contos7 postfix dovecot及postfixadmin Roundcube错误汇总

postfixadmin错误一

错误信息:

checking if zts is enabled... no
checking for re2c... no
configure: WARNING: You will need re2c 0.13.4 or later if you want to regenerate PHP parsers.
checking for gawk... gawk
checking for IMAP support... yes, shared
checking for IMAP Kerberos support... yes
checking for IMAP SSL support... yes
checking for utf8_mime2text signature... new
checking for U8T_DECOMPOSE... 
checking for pam_start in -lpam... no
checking for crypt in -lcrypt... yes
configure: error: Cannot find imap library (libc-client.a). Please check your c-client installation.

解决办法:
yum install libc-client-devel.x86_64
ln -s /usr/lib64/libc-client.so /usr/lib/libc-client.so

postfixadmin错误二

错误信息:

Everything seems fine... attempting to create/update database structure
Database is up to date: 1840/0
can't proc_open /usr/bin/doveadm pw

错误原因:
php默认禁止proc_open函数执行
解决方法:
在php.ini中找到disable_functions去掉proc_open函数,然后重启php即可。

dovecot 错误

Mar  3 08:12:07 mail dovecot: auth: Debug: Loading modules from directory: /usr/lib64/dovecot/auth
Mar  3 08:12:07 mail dovecot: auth: Debug: Module loaded: /usr/lib64/dovecot/auth/lib20_auth_var_expand_crypt.so
Mar  3 08:12:07 mail dovecot: auth: Debug: Module loaded: /usr/lib64/dovecot/auth/libdriver_sqlite.so
Mar  3 08:12:07 mail dovecot: auth: Fatal: CRAM-MD5 mechanism can't be supported with given passdbs
Mar  3 08:12:07 mail dovecot: master: Error: service(auth): command startup failed, throttling for 60 secs
Mar  3 08:12:07 mail dovecot: imap-login: Disconnected: Auth process broken (disconnected before auth was ready, waited 0 secs): user=<>, rip=47.106.14.53, lip=172.18.92.117, session=<qDePfSWDSrIvag41>

检查/etc/dovecot/conf.d/10-auth.conf文件以下配置是否正确
auth_mechanisms = plain login cram-md5

查看是否安装dovecot-devel dovecot-mysql,如果未安装及时安装配置。
yum install -y dovecot-devel dovecot-mysql

devecot.service错误

[root@mail ~]# systemctl status dovecot.service
● dovecot.service - Dovecot IMAP/POP3 email server
   Loaded: loaded (/usr/lib/systemd/system/dovecot.service; disabled; vendor preset: disabled)
   Active: failed (Result: exit-code) since Sat 2019-02-16 15:51:02 CST; 1h 12min ago
     Docs: man:dovecot(1)
           http://wiki2.dovecot.org/
 Main PID: 30246 (code=exited, status=0/SUCCESS)
Feb 16 15:51:02 mail.xiaoyapingtai.com systemd[1]: Starting Dovecot IMAP/POP3 email server...
Feb 16 15:51:02 mail.xiaoyapingtai.com dovecot[30849]: doveconf: Fatal: Error in configuration file /etc/dovecot/dovecot.conf: protocols: Unknown protocol: sieve
Feb 16 15:51:02 mail.xiaoyapingtai.com systemd[1]: dovecot.service: control process exited, code=exited status=89
Feb 16 15:51:02 mail.xiaoyapingtai.com systemd[1]: Failed to start Dovecot IMAP/POP3 email server.
Feb 16 15:51:02 mail.xiaoyapingtai.com systemd[1]: Unit dovecot.service entered failed state.
Feb 16 15:51:02 mail.xiaoyapingtai.com systemd[1]: dovecot.service failed.

错误原因:
因为最开始的时候安装过开源项目EwoMail项目,导致配置文件有问题。
解决方法:
无remove掉dovecto服务,然后重新安装,修改配置文件即可。
卸载命令
yum remove dovecot
安装命令
yum install -y dovecot dovecot-devel dovecot-mysql

Roundcube错误一

Sorry but your webserver does not meet the requirements for Roundcube!
Please install the missing modules or fix the php.ini settings according to the above check results.
Hint: only checks showing NOT OK need to be fixed.
Auth_SASL:  NOT OK(Failed to load class Auth_SASL from pear.php.net)
Net_SMTP:  NOT OK(Failed to load class Net_SMTP from pear.php.net; See http://pear.php.net/package/Net_SMTP)
Net_IDNA2:  NOT OK(Failed to load class Net_IDNA2 from pear.php.net; See http://pear.php.net/package/Net_IDNA2)
Mail_mime:  NOT OK(Failed to load class Mail_mime from pear.php.net; See http://pear.php.net/package/Mail_mime)
Net_LDAP3:  NOT AVAILABLE(Recommended to install Net_LDAP3 from git.kolab.org; See https://git.kolab.org/diffusion/PNL)

错误原因:
需要安装php相关内容包。
解决办法:
pear install Auth_SASL
pear install Net_SMTP
pear install Net_IDNA2-0.2.0
pear install Mail_Mime

Roundcube错误二

错误信息:

Test filetype detection
Fileinfo/mime_content_type configuration:  NOT OK
Check the Fileinfo functions of your PHP installation.
The path to the magic.mime file can be set using the mime_magic config option in Roundcube.

错误原因:
提示没有安装FileInfo扩展内容
解决办法:
进入php安装源码中,找到ext/FileInfo目录。
1、执行phpize
2、执行configure
./configure --with-php-config=/usr/local/php/bin/php-config
3、执行make && make install
4、在php.ini文件中加入extension = fileinfo.so

发送邮件错误

Mar  1 16:32:37 mail dovecot: imap(test@fmxos.com): 
Error: dict-client: Lookup 'priv/quota/storage' failed: net_connect_unix(/var/run/dovecot/dict) failed: Permission denied (euid=2000(<unknown>) egid=2000(<unknown>) missing +r perm: /var/run/dovecot/dict, dir owned by 1004:1004 mode=0777) (reply took 0.000 secs (0.000 in dict wait, 0.000 in other ioloops, 0.000 in locks))
Mar  1 16:32:37 mail dovecot: imap(test@fmxos.com): Logged out in=315 out=2628

原因:
dict-client无执行/var/run/dovecot/dict权限
解决方法:
service dict {
unix_listener dict {
mode = 0660 #可以先使用0660,如果还是报错直接使用0777
user = vmail
group = vmail
}
}

执行telnet mail.domain.com 25无响应内容

[root@mail ~]# telnet mail.domain.com 25
解决办法:
因为用的阿里云服务器,25端口默认是没有开启的,需要联系开通,而且“不能使用本机IP直接SMTP发送邮件”,做测试应该问题不大。
在这里插入图片描述
在这里插入图片描述

外部向admin.domain.com发送邮件接收不到

解决办法:
使用dig domain.com MX查看是否解析到指定域名或IP地址,
当前出现的原因是MX同时解析到了多个地方,导致MX同时出现几个指向关系,停用其它的即可。

ROOT-2:~ home$ dig domain.com MX

; <<>> DiG 9.8.3-P1 <<>> fmxos.com MX
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 37501
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 13, ADDITIONAL: 11

;; QUESTION SECTION:
;domain.com.			IN	MX

;; ANSWER SECTION:
domain.com.		598	IN	MX	1 mail.domain.com.
  • 3
    点赞
  • 8
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
CentOS+Postfix+Dovecot+Postfixadmin+Roundcube邮件服务器的搭建步骤如下: 1. 安装 CentOS 操作系统,并更新至最新版。 2. 安装 Postfix 邮件服务器,并进行基本配置。 3. 安装 Dovecot IMAP/POP3 服务器,并进行基本配置。 4. 安装 Postfixadmin 邮箱管理系统,并进行基本配置。 5. 安装 Roundcube Webmail 邮件客户端,并进行基本配置。 具体步骤如下: 1. 安装 CentOS 操作系统,并更新至最新版。 在安装 CentOS 操作系统时,选择最小化安装,并根据实际情况进行分区和网络配置。安装完成后,使用以下命令更新系统: ``` yum update ``` 2. 安装 Postfix 邮件服务器,并进行基本配置。 使用以下命令安装 Postfix: ``` yum install postfix ``` 安装完成后,修改 /etc/postfix/main.cf 文件,使其支持 TLS 和 SASL 认证: ``` smtpd_tls_cert_file = /etc/pki/tls/certs/server.crt smtpd_tls_key_file = /etc/pki/tls/private/server.key smtpd_tls_security_level = may smtp_tls_security_level = may smtpd_sasl_type = dovecot smtpd_sasl_path = private/auth smtpd_sasl_auth_enable = yes smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination ``` 然后重启 Postfix 服务: ``` systemctl restart postfix ``` 3. 安装 Dovecot IMAP/POP3 服务器,并进行基本配置。 使用以下命令安装 Dovecot: ``` yum install dovecot ``` 安装完成后,修改 /etc/dovecot/dovecot.conf 文件,使其支持 TLS 和 SASL 认证: ``` ssl_cert = </etc/pki/tls/certs/server.crt ssl_key = </etc/pki/tls/private/server.key auth_mechanisms = plain login ``` 然后重启 Dovecot 服务: ``` systemctl restart dovecot ``` 4. 安装 Postfixadmin 邮箱管理系统,并进行基本配置。 使用以下命令安装 Postfixadmin: ``` yum install postfixadmin ``` 安装完成后,修改 /etc/httpd/conf.d/postfixadmin.conf 文件,使其支持 SSL: ``` SSLEngine on SSLCertificateFile /etc/pki/tls/certs/server.crt SSLCertificateKeyFile /etc/pki/tls/private/server.key ``` 然后重启 Apache 服务: ``` systemctl restart httpd ``` 访问 https://your-domain.com/postfixadmin,使用管理员账号登录,创建邮箱账号和域名等相关配置。 5. 安装 Roundcube Webmail 邮件客户端,并进行基本配置。 使用以下命令安装 Roundcube: ``` yum install roundcubemail ``` 安装完成后,修改 /etc/httpd/conf.d/roundcubemail.conf 文件,使其支持 SSL: ``` SSLEngine on SSLCertificateFile /etc/pki/tls/certs/server.crt SSLCertificateKeyFile /etc/pki/tls/private/server.key ``` 然后重启 Apache 服务: ``` systemctl restart httpd ``` 访问 https://your-domain.com/roundcubemail,使用邮箱账号登录,即可使用 Roundcube 邮件客户端。 以上就是 CentOS+Postfix+Dovecot+Postfixadmin+Roundcube邮件服务器的搭建步骤,如有问题可以参考相关文档或者咨询技术人员。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值