0
我在this tutorial on enabling postfix for outbound relay via Gmail on OS X Lion後遇到問題。Mac OS Postfix 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
終端命令後,我收到以下錯誤:
newaliases: fatal: /etc/postfix/main.cf, line 698: missing '=' after attribute name: "??"
這我很爲難,因爲線698是一條評論:
# authenticated TLS/SASL session.
有什麼建議嗎?謝謝!
嗯,我從來沒有想通了。我被建議嘗試[Mandrill](https://mandrillapp.com),並立即啓動並運行。 – dmoench
儘管聽起來像你找到了一個替代解決方案,但我敢打賭,問題在於之前的函數行「smtp_generic_maps = hash:/ etc/postfix/generic」包含在設置文件中準備好了(準備工作是本教程的第4步)。 – blahdiblah
我同意@blahdiblah;在編輯generic和新的sasl/passwd文件之後,還要檢查你是否運行了postmap * –