1 最后由 Gavin (2015-02-04 13:22:11) 编辑

主题: iredmail装后无法发送邮件,且postfix报Permission denied错误

==== 必填信息。没有填写将不予回复 ====
- iRedMail 版本号:0.9.0
- 使用哪个数据库存储用户帐号(MySQL):MySQL
- 使用的 Linux/BSD 发行版名称及版本号:ubuntu14.04
- 与您的问题相关的日志信息:
====
Feb  4 12:58:26 DPMail postfix/master[3380]: daemon started -- version 2.11.0, configuration /etc/postfix
Feb  4 12:58:26 DPMail postfix/proxymap[3384]: error: open /etc/postfix/mysql/relay_domains.cf: Permission denied
Feb  4 12:58:26 DPMail postfix/proxymap[3384]: error: open /etc/postfix/mysql/virtual_alias_maps.cf: Permission denied
Feb  4 12:58:26 DPMail postfix/proxymap[3384]: error: open /etc/postfix/mysql/domain_alias_maps.cf: Permission denied
Feb  4 12:58:26 DPMail postfix/proxymap[3384]: error: open /etc/postfix/mysql/catchall_maps.cf: Permission denied
Feb  4 12:58:26 DPMail postfix/proxymap[3384]: error: open /etc/postfix/mysql/domain_alias_catchall_maps.cf: Permission denied
Feb  4 12:58:26 DPMail postfix/proxymap[3384]: error: open /etc/postfix/mysql/sender_bcc_maps_user.cf: Permission denied
Feb  4 12:58:26 DPMail postfix/proxymap[3384]: error: open /etc/postfix/mysql/sender_bcc_maps_domain.cf: Permission denied
Feb  4 12:58:26 DPMail postfix/proxymap[3384]: error: open /etc/postfix/mysql/recipient_bcc_maps_user.cf: Permission denied
Feb  4 12:58:26 DPMail postfix/proxymap[3384]: error: open /etc/postfix/mysql/recipient_bcc_maps_domain.cf: Permission denied
Feb  4 12:58:26 DPMail postfix/pickup[3381]: 8B8506C81020: uid=111 from=<amavis>
Feb  4 12:58:26 DPMail postfix/proxymap[3384]: error: open /etc/postfix/mysql/virtual_mailbox_domains.cf: Permission denied
Feb  4 12:58:26 DPMail postfix/proxymap[3384]: error: open /etc/postfix/mysql/transport_maps_user.cf: Permission denied
Feb  4 12:58:26 DPMail postfix/proxymap[3384]: error: open /etc/postfix/mysql/transport_maps_domain.cf: Permission denied
Feb  4 12:58:26 DPMail postfix/proxymap[3384]: warning: mysql:/etc/postfix/mysql/transport_maps_user.cf is unavailable. open /etc/postfix/mysql/transport_maps_user.cf: Permission denied
Feb  4 12:58:26 DPMail postfix/trivial-rewrite[3385]: warning: proxy:mysql:/etc/postfix/mysql/transport_maps_user.cf lookup error for "*"
Feb  4 12:58:26 DPMail postfix/proxymap[3384]: warning: mysql:/etc/postfix/mysql/transport_maps_user.cf is unavailable. open /etc/postfix/mysql/transport_maps_user.cf: Permission denied
Feb  4 12:58:26 DPMail postfix/proxymap[3384]: warning: mysql:/etc/postfix/mysql/sender_bcc_maps_user.cf is unavailable. open /etc/postfix/mysql/sender_bcc_maps_user.cf: Permission denied
Feb  4 12:58:26 DPMail postfix/cleanup[3383]: warning: proxy:mysql:/etc/postfix/mysql/sender_bcc_maps_user.cf lookup error for "amavis@DPMail"
Feb  4 12:58:26 DPMail postfix/cleanup[3383]: warning: 8B8506C81020: sender_bcc_maps map lookup problem -- message not accepted, try again later
Feb  4 12:58:26 DPMail postfix/pickup[3381]: warning: maildrop/E7BDC6C80F87: error writing 8B8506C81020: queue file write error
Feb  4 12:58:26 DPMail postfix/pickup[3381]: 8E8B56C81020: uid=0 from=<root@>
Feb  4 12:58:26 DPMail postfix/cleanup[3383]: warning: proxy:mysql:/etc/postfix/mysql/sender_bcc_maps_user.cf lookup error for "root@DPMail"
Feb  4 12:58:26 DPMail postfix/cleanup[3383]: warning: 8E8B56C81020: sender_bcc_maps map lookup problem -- message not accepted, try again later
Feb  4 12:58:26 DPMail postfix/pickup[3381]: warning: maildrop/49A5D6C8000C: error writing 8E8B56C81020: queue file write error

=============================
发送邮件时的日志
==============================
b  4 13:04:48 DPMail postfix/proxymap[3409]: error: open /etc/postfix/mysql/virtual_mailbox_domains.cf: Permission denied
Feb  4 13:04:48 DPMail postfix/proxymap[3409]: warning: mysql:/etc/postfix/mysql/virtual_mailbox_domains.cf is unavailable. open /etc/postfix/mysql/virtual_mailbox_domains.cf: Permission denied
Feb  4 12:58:26 DPMail postfix/trivial-rewrite[3385]: warning: proxy:mysql:/etc/postfix/mysql/transport_maps_user.cf lookup error for "*"
Feb  4 13:04:48 DPMail postfix/trivial-rewrite[3385]: warning: proxy:mysql:/etc/postfix/mysql/virtual_mailbox_domains.cf: table lookup problem
Feb  4 13:04:48 DPMail postfix/trivial-rewrite[3385]: warning: virtual_mailbox_domains lookup failure
Feb  4 13:04:48 DPMail postfix/trivial-rewrite[3385]: warning: proxy:mysql:/etc/postfix/mysql/virtual_mailbox_domains.cf: table lookup problem
Feb  4 13:04:48 DPMail postfix/trivial-rewrite[3385]: warning: virtual_mailbox_domains lookup failure
Feb  4 13:04:48 DPMail postfix/smtpd[3408]: NOQUEUE: reject: RCPT from localhost[127.0.0.1]: 451 4.3.0 <bbb@DPMail.net>: Temporary lookup failure; from=<bbb@DPMail.net> to=<aaa@DPMail.net> proto=ESMTP helo=<mailtest.DPMail>
Feb  4 13:04:48 DPMail roundcube: SMTP Error: SMTP error: Failed to add recipient 'aaa@DPMail.net' in /usr/share/apache2/roundcubemail-1.0.4/program/lib/Roundcube/rcube.php on line 1505 (POST /mail/?_task=mail&_unlock=loading1423026281003&_lang=en&_framed=1?_task=mail&_action=send)
Feb  4 13:04:48 DPMail postfix/smtpd[3408]: disconnect from localhost[127.0.0.1]

回复: iredmail装后无法发送邮件,且postfix报Permission denied错误

/etc/postfix/mysql/*.cf 的文件所有者必须是 root:postfix,权限 0640。同时检查一下文件里的 SQL 用户名密码是否正确。然后重启 postfix 服务再试试。

/etc/postfix/mysql/virtual_mailbox_domains.cf 这个文件里的 SQL 用户名密码可能有误。

回复: iredmail装后无法发送邮件,且postfix报Permission denied错误

文件的权限并没有问题。我已经在centos环境上重新搭建尝试,没有问题了。谢谢!