我正在亚马逊的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