我有以下this tutorial on enabling postfix for outbound relay via Gmail on OS X Lion的问题。
作为教程指示,我添加下列行到“main.cf”后缀配置文件。
# Set the relayhost to the Gmail Server. Replace with your SMTP server as needed
relayhost = [smtp.gmail.com]:587
# Postfix 2.2 uses the generic(5) address mapping to replace local fantasy email
# addresses by valid Internet addresses. This mapping happens ONLY when mail
# leaves the machine; not when you send mail between users on the same machine.
smtp_generic_maps = hash:/etc/postfix/generic
# These settings (along with the relayhost setting above) will make
# postfix relay all outbound non-local email via Gmail using an
# authenticated TLS/SASL session.
smtp_tls_loglevel=1
smtp_tls_security_level=encrypt
smtp_sasl_auth_enable=yes
smtp_sasl_password_maps=hash:/etc/postfix/sasl/passwd
smtp_sasl_security_options = noanonymous
在完成教程的步骤3和运行newaliases
终端命令后,收到以下错误:
newaliases这个:致命:/etc/postfix/main.cf中,线698:错过 '=' 后的属性名: “??”
这有我很为难,因为线698是一条评论:
# authenticated TLS/SASL session.
它看起来像你有一个不完整的或可疑哈希标记,检查整个文件,并查看是否有“#”的标志之一前一个符号/字符。
它发生在我身上,幸运的是在第一线。室内情况下,它看起来像它在文件的底部,只是当你添加的线GMAIL继电器之前。
希望能帮助到你