Aliyun email push not working

I am currently configuring the Alibaba Cloud email push service for Discourse, but I keep encountering obstacles, and the email push service cannot be used normally. Can you find the problem?

==================== 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

Are you able to telnet into the smtp server?

telnet smtpadm.aliyun.com 465

Yes, but port 465 cannot be used to send emails.

This could be due to something specific to your ESP, there were recent reports from another ESP causing issues, does aliyun support any other ports for sending?

Supports sending emails on ports 25 and 80; port 465 cannot be used normally.

They don’t support 587 or 2525?

Yes, I submitted feedback to the official channels requesting that the service provider offer port 587 for email push services.

1 Like