我正在使用rails 4应用程序,并试图通过SendGrid发送电子邮件。我让应用程序从一个GCE实例中运行。
在阅读了关于通过sendgrid发送电子邮件的之后,我注意到他们只使用端口2525。我想通过端口465 (或587)进行连接,因为在阅读了之后,我了解到SendGrid只允许通过这个端口进行SSL连接。它还建议端口587 to avoid any rate limiting that your server host may apply.。
是否有方法在GCE实例上使用2525以外的端口?
Google Compute Engine does not allow outbound c
我正在尝试使用这个命令来检查我的后缀服务器的端口587。
使用nmap -P0 mail.server.com,我可以看到以下内容:
Starting Nmap 5.51 ( http://nmap.org ) at 2013-11-04 05:01 PST
Nmap scan report for mail.server.com (xx.xx.xx.xx)
Host is up (0.0016s latency).
rDNS record for xx.xx.xx.xx: another.server.com
Not shown: 990 closed ports
PORT STAT
我有一个包含以下内容的文件:
# Disabling this option will break firewall functionality that relies on
# stateful packet inspection (e.g. DNAT, PACKET_FILTER) and makes the firewall
# less secure
#
# This option should be set to "1" in all other circumstances
LF_SPI = "1"
# Allow incoming TCP port
在我的rails应用程序,我有电子邮件设置与亚马逊SES,因为我以前是使用豆茎。
我已经转到了Google引擎,但我想继续使用Amazon,因为免费层每天允许多达50000封电子邮件,我的应用程序已经被编码以处理亚马逊服务的反弹和投诉。
亚马逊州:
You need to confirm with your host that ports 465 and 587 are open
for outgoing SMTP calls. It will not be possible to use Amazon SES
unless these ports are open.
谷歌状态:
Goog
当我在本地主机上时,我在.env文件中使用了以下行,一切都正常:
MAIL_MAILER=smtp
MAIL_HOST=smtp.googlemail.com
MAIL_PORT=465
MAIL_USERNAME=myaddress@gmail.com
MAIL_PASSWORD=mypwd
MAIL_ENCRYPTION=ssl
但是当我通过cpanel托管laravel项目时,它显示了以下错误:
Connection could not be established with host smtp.googlemail.com :stream_socket_client(): unable
我使用libetpan1.0开源(邮件库的东西)的SMTP和POP3访问在"C“语言。我在SMTP和POP3中的SSL连接有问题。当我建立SSL连接并且连接失败时,我的套接字保持在CLOSE_WAIT状态。这会导致长时间的内存泄漏。这是我的命令"netstat -an“的输出。我正在ARM板上运行这个应用程序。有人能告诉我,我应该做什么吗?提前谢谢。
Here is my code that i am trying.
pSmtp = mailsmtp_new(0, NULL); (Create new object)
if (SMTP_NO_ERROR != mailsmtp