我正在配置Postfix以使用外部smtp。为此,我使用了本教程
遵循它之后,我在/etc/postfix/sasl_passwd.db
无法读取的日志中找到了。该文件不存在。我使用postmap hash:/ etc / postfix / sasl_passwd(http://postfix.state-of-mind.de/patrick.koetter/smtpauth/smtp_auth_mailservers.html)作为根目录,但我得到了:
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
给出与上述相同的错误。