我在遵循本教程时遇到了一个问题,即在 OS X Lion 上通过 Gmail 为出站中继启用后缀。
按照教程的说明,我在“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
终端命令后,我收到以下错误:
新别名:致命:/etc/postfix/main.cf,第 698 行:属性名称后缺少“=”:“??”
这让我很困惑,因为第 698 行是一条评论:
# authenticated TLS/SASL session.