postmap:致命:打开数据库/etc/postfix/sasl_passwd.db:权限被
发布时间:2020-12-12 16:53:25 所属栏目:MsSql教程 来源:网络整理
导读:我正在配置Postfix以使用外部smtp.为此,我使用了 this tutorial 在关注之后,我在日志中发现无法读取/etc/postfix/sasl_passwd.db.该文件不存在.我使用postmap hash:/ etc / postfix / sasl_passwd(http://postfix.state-of-mind.de/patrick.koetter/smtpauth
我正在配置Postfix以使用外部smtp.为此,我使用了
this tutorial
在关注之后,我在日志中发现无法读取/etc/postfix/sasl_passwd.db.该文件不存在.我使用postmap hash:/ etc / postfix / sasl_passwd(http://postfix.state-of-mind.de/patrick.koetter/smtpauth/smtp_auth_mailservers.html)作为root,但我得到: postmap: fatal: open database /etc/postfix/sasl_passwd.db: Permission denied 为什么我会这样? OS: Fedora 14 User "postfix" exists. 更新: sudo ls -l /etc/postfix/sasl_passwd.db ls: cannot access /etc/postfix/sasl_passwd.db: No such file or directory touch /etc/postfix/sasl_passwd.db chmod 640 /etc/postfix/sasl_passwd.db chown postfix:root /etc/postfix/sasl_passwd.db sudo ls -l /etc/postfix/sasl_passwd.db -rwxr--r--. 1 postfix root 0 Feb 19 04:16 /etc/postfix/sasl_passwd.db -rw-r-----. 1 postfix root 0 Feb 19 04:16 /etc/postfix/sasl_passwd.db postmap hash:/etc/postfix/sasl_passwd postmap: fatal: cannot remove zero-length database file /etc/postfix/sasl_passwd.db: Permission denied. chmod 777给出了与上面相同的错误. 解决方法您需要确保postfix用户能够读取该文件.您可以发布$sudo ls -l /etc/postfix/sasl_passwd.db的输出以获得更多帮助.要创建此文件,您可以使用以下命令: $sudo postmap sasl_passwd 这将创建.db文件. (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |