0

このチュートリアルに従って、OS X Lion で Gmail 経由のアウトバウンド リレーの postfix を有効にする際に問題が発生しています。

チュートリアルで指示されているように、次の行を「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.
4

1 に答える 1

0

不完全または疑わしいハッシュ マークがあるようです。ファイル全体を確認し、「#」マークの前に記号/文字があるかどうかを確認してください。

幸いなことに、それは最初の行にありました。屋内の場合、GMAIL リレーの行を追加する直前に、ファイルの下部にあるように見えます。

それが役に立てば幸い

于 2014-08-05T04:08:21.853 に答える