我正在亞馬遜的EC2上設置我的Web服務器。我的網站曾經在本地運行,並使用我的ISP的SMTP服務器發送電子郵件,但之前沒有問題 - 但現在電子郵件是從我的ISP外部發出的,因此不會接受它們。emailrelay「無法綁定偵聽端口」
因此,我試圖the advice here使用EmailRelay轉發電子郵件,通過我在Google上的帳戶添加身份驗證。
我已經按照說明操作,創建emailrelay.auth文件,運行配置,使,使安裝,但是當我嘗試啓動emailrelay服務我得到這個錯誤:
$ emailrelay --as-proxy smtp.gmail.com:587 --client-tls --client-auth /etc/emailrelay.auth
emailrelay: error: cannot bind the listening port: 0.0.0.0:25
emailrelay: exception: cannot bind the listening port: 0.0.0.0:25
我瀏覽了user guide,嘗試使用--interface
選項,認爲這可能是問題 - 提供各種IP,沒有喜悅 - 我不知道接下來要嘗試什麼。
(我的服務器運行的Oracle Enterprise Linux 5.1)
編輯:
由於sendmail正在端口25上運行,我已經試過了不同的端口。現在,我得到一個新的錯誤:
$ emailrelay --as-proxy smtp.gmail.com:587 --client-tls --client-auth /etc/emailrelay.auth --port 8025
emailrelay: error: cannot do tls/ssl: openssl not built in
emailrelay: exception: cannot do tls/ssl: openssl not built in
殺害的sendmail後,我重新嘗試端口25和我得到同樣的錯誤(「不能做TLS/SSL:OpenSSL的未建」)。
編輯:
看起來像OpenSSL是沒有安裝:
$ grep ssl config.log
$ ./configure --with-openssl
configure:7373: checking for openssl
conftest.cpp:31:25: error: openssl/ssl.h: No such file or directory
| #include <openssl/ssl.h>
configure:7431: WARNING: ignoring --with-openssl, check config.log and try setting CFLAGS
config.status:719: creating src/gssl/Makefile
我在serverfault上創建了一個新問題來繼續此操作... http://serverfault.com/questions/168780/send-emails-from-linux-via-google-smtp – 2010-08-10 07:09:00