我在Ubuntu機器上安裝了postfix郵件服務器.我發現郵件發送到其他域郵件服務器(谷歌,雅虎,Outlook ......)時遇到了一些問题.我正在使用虛擬域使用郵件服務器的SMTP發送電子郵件(比如[email protected])
当我尝試通過postfix SMTP發送多封電子郵件時,它無法發送郵件.有時他们会成功發送,有時会失败.但是,如果我尝試使用relayhost發送相同的內容,則其工作没有任何問题. [我無法使用relayhost(比如gmail中繼服務器),因為它不提供將發件人電子郵件ID設置為我自己的選項,它有自己的限製(每天500个像這樣)]
在mail.log檔案中提供以下錯誤訊息.
Jan 14 11:40:25 server1 postfix/smtp[4776]: connect to gmail-smtp-in.l.google.com[2607:f8b0:400e:c02::1a]:25: Network is unreachable
Jan 14 11:41:25 server1 postfix/smtp[4776]: 6F11361C56: to=<[email protected]>, relay=none, delay=61, delays=0.71/0/60/0, dsn=4.4.1, status=deferred (connect to alt2.gmail-smtp-in.l.google.com[2607:f8b0:4002:c09::1b]:25: **Network is unreachable**)
Jan 14 07:33:42 server1 postfix/smtp[4780]: 1BE9261CF6: to=<[email protected]>, relay=none, delay=151, delays=0.68/0/150/0, dsn=4.4.1, status=deferred (connect to mx4.hotmail.com[207.46.8.199]:25: **Connection timed out**)
我試圖改變
inet_protocols
對
ipv4
的value
在檔案
/etc/postfix/main.cf
並重新啟動後缀服務器.但它不会解決這个問题.
註意:
- Mailserver hosted in Amazon EC2 instance with a static IP address (connect to internet, and all traffic ports are opened for inbound and outbound in security groups).
- Telnet to the port 25 of the specific SMTP server is working randomly (sometimes works and sometimes not).
- Ping to the SMTP server is always successful (Telnet to port 25 fails most of the time).
- I am using self signed certificate in my Mail server.
任何人都可以告诉我们,如何解決這个問题.這是我们需要查看我们的郵件服務器配置吗?
最新回復
- 2019-9-151 #
如果您遇到遠端登錄到其他SMTP服務器的問题,我会与亚马逊聯系.亚马逊對出站SMTP連線設置限製,以防止將其服務用於垃圾郵件.