このチュートリアルに従って、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.