阿里云邮件推送无法使用

AI 生成的摘要

AkarinLiu reported issues configuring the Aliyun email push service for their Discourse instance, encountering a Net::ReadTimeout error when testing SMTP on port 465. Although itsbhanusharma suggested verifying connectivity via telnet, AkarinLiu confirmed that while the connection was possible, sending emails on port 465 failed. itsbhanusharma inquired about alternative ports, and AkarinLiu clarified that Aliyun only supported ports 25 and 80 for this service, while port 465 was non-functional. AkarinLiu noted that ports 587 and 2525 were unsupported and mentioned submitting a request to Aliyun to add port 587 support. Ultimately, AkarinLiu resolved the issue by switching to Brevo, as Outlook continued to reject emails from the Aliyun IP address.

最近我在为 Discourse 配置阿里云邮件推送服务,但是一直出现了阻碍,邮件推送服务无法正常使用,你们能找出问题吗?

==================== DOCKER INFO ====================
DOCKER VERSION: Docker version 29.2.1, build a5c7197

DOCKER PROCESSES (docker ps -a)

CONTAINER ID   IMAGE                 COMMAND        CREATED         STATUS         PORTS                                                                          NAMES
412d2aebeefc   local_discourse/app   "/sbin/boot"   4 seconds ago   Up 3 seconds   0.0.0.0:80->80/tcp, [::]:80->80/tcp, 0.0.0.0:443->443/tcp, [::]:443->443/tcp   app

412d2aebeefc   local_discourse/app   "/sbin/boot"   4 seconds ago   Up 3 seconds   0.0.0.0:80->80/tcp, [::]:80->80/tcp, 0.0.0.0:443->443/tcp, [::]:443->443/tcp   app

Discourse container app is running


==================== PLUGINS ====================
          - git clone https://github.com/discourse/docker_manager.git
          - git clone https://github.com/sydomo/discourse-cloudflare-turnstile.git

WARNING:
You have what appear to be non-official plugins.
If you are having trouble, you should disable them and try rebuilding again.

See https://github.com/discourse/discourse/blob/main/lib/plugin/metadata.rb for the official list.

========================================
Discourse version at communitytest.akarinliu.com: NOT FOUND
Discourse version at localhost: NOT FOUND


==================== MEMORY INFORMATION ====================
RAM (MB): 2069

               total        used        free      shared  buff/cache   available
Mem:            1973         479        1191          18         492        1493
Swap:           2047          68        1979

==================== DISK SPACE CHECK ====================
---------- OS Disk Space ----------
Filesystem      Size  Used Avail Use% Mounted on
/dev/sda1        30G  8.8G   20G  32% /

==================== DISK INFORMATION ====================
Disk /dev/sda: 30 GiB, 32212254720 bytes, 62914560 sectors
Disk model: QEMU HARDDISK
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x86a4d272

Device     Boot Start      End  Sectors Size Id Type
/dev/sda1  *     2048 62914526 62912479  30G 83 Linux

==================== END DISK INFORMATION ====================

==================== MAIL TEST ====================
For a robust test, get an address from http://www.mail-tester.com/
Or just send a test message to yourself.
Email address for mail test? ('n' to skip) [akarinliu@outlook.com]:
Sending mail to akarinliu@outlook.com. . .
Testing sending to akarinliu@outlook.com using smtpdm.aliyun.com:465, username:hi@notify.akarinliu.com with plain auth.
==================================== ERROR =====================================
UNKNOWN ERROR!
Net::ReadTimeout: Net::ReadTimeout with #<TCPSocket:(closed)>
=================================== SOLUTION ===================================
This is not a common error. No recommended solution exists!

Please report the exact error message above to https://meta.discourse.org/
(And a solution, if you find one!)
================================================================================
Replacing: SMTP_PASSWORD
Replacing: LETSENCRYPT_ACCOUNT_EMAIL
Replacing: DEVELOPER_EMAILS
Replacing: DISCOURSE_DB_PASSWORD
Replacing: Sending mail to

==================== DONE! ====================
Would you like to serve a publicly available version of this file? (Y/n) n
'Publicly available log not generated.

You can examine the output of this script with
LESS=-Ri less /tmp/discourse-debug.txt

BUT FIRST, make sure that you know the first three commands below!!!

Commands to know when viewing the file with the above command (called 'less'):
q              -- quit
/error<ENTER>  -- search for the word 'error'
n              -- search for the next occurrence
g              -- go to the beginning of the file
f              -- go forward a page
b              -- go back a page
G              -- go to the end of the file

您能 telnet 到 smtp 服务器吗?

telnet smtpadm.aliyun.com 465

可以,但是就是无法使用 465 端口发送邮件

这可能是由于您的 ESP(邮件服务提供商)的特定原因,最近有关于另一个 ESP 导致问题的报告,阿里云是否支持其他端口用于发送?

支持 25端口和 80端口发送邮件,465 端口不能正常使用

他们不支持 587 或 2525 吗?

是的,我向官方提交了一个意见,内容是要求服务商为邮件推送服务提供 587 端口。

我已将阿里云邮件推送服务换成了 Brevo,因为我的 Outlook 无法收到邮件,IP 被拒收了……