我正在配置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给出了与上面相同的错误.