lisun
Intern
Intern
  • UID1682
  • Fans0
  • Follows0
  • Posts1
Reads:2618Replies:10

[Others]How to send email from ECS instances

Created#
More Posted time:Jan 11, 2017 12:39 PM
Can someone post a working example to send emails from ECS instances (preferably in python)?

The examples in this doc does not really work

http://docs-aliyun.cn-hangzhou.oss.aliyun-inc.com/pdf/directmail-smtp-reference-cn-zh-2016-05-12.pdf

since smtpdm.aliyun.com:25 can't connect

Thanks!

shhanshan
Forum Moderator
Forum Moderator
  • UID105
  • Fans3
  • Follows0
  • Posts209
1st Reply#
Posted time:Jan 12, 2017 11:00 AM
If you want to apply to open port 25, you can create a ticket. Support team will guide you. And then you can have a try again. Thanks

jan
jan
Intern
Intern
  • UID1736
  • Fans0
  • Follows0
  • Posts1
2nd Reply#
Posted time:Jan 16, 2017 20:56 PM
I really don't get it. Seriously your company needs to revise the security policy. Why on earth is the outgoing port 25 blocked by default? At least AWS, Linode and DO don't do that.

shhanshan
Forum Moderator
Forum Moderator
  • UID105
  • Fans3
  • Follows0
  • Posts209
3rd Reply#
Posted time:Jan 24, 2017 20:02 PM
For ECS in VPC, you can apply to unlock in the console - risk control

THC
THC
Intern
Intern
  • UID2134
  • Fans0
  • Follows0
  • Posts1
4Floor#
Posted time:Feb 26, 2017 20:46 PM
Does anyone has the exact steps to unblock port 25 from the ECS console?
We just purchase an ECS to host our email server and now we are stuck due to this unexpected block for our email services.


We really need help on this.

shhanshan
Forum Moderator
Forum Moderator
  • UID105
  • Fans3
  • Follows0
  • Posts209
5Floor#
Posted time:Feb 28, 2017 14:07 PM
THC:Does anyone has the exact steps to unblock port 25 from the ECS console?
We just purchase an ECS to host our email serv...
回到原帖
Sorry that we don't support to setup mail server in ECS if you are using port 25.
We suggest you to use ssl protocol with porrt 465 or use third-party mail service

estunner
Intern
Intern
  • UID2244
  • Fans0
  • Follows1
  • Posts3
6Floor#
Posted time:Mar 10, 2017 19:54 PM
is port 22 works ?

shhanshan
Forum Moderator
Forum Moderator
  • UID105
  • Fans3
  • Follows0
  • Posts209
7Floor#
Posted time:Mar 13, 2017 16:05 PM
Yes, port 22 is supported, normally used as  SSH service.

alexbyk
Intern
Intern
  • UID2208
  • Fans0
  • Follows0
  • Posts2
8Floor#
Posted time:Jun 15, 2017 9:01 AM
fck! Spend about an hour to understand that port 25 is blocked.
How to deal with it?

alexbyk
Intern
Intern
  • UID2208
  • Fans0
  • Follows0
  • Posts2
9Floor#
Posted time:Jun 15, 2017 16:04 PM
Support engineer answered me that 25 port is blocked and suggested me to use any other port. This doesn't make any sense. It may have sense if he suggested to use external SMTP server, but to do that, I need to own an external SMPT server outside Aliyun, which I don't.

So there is no way to send email from Aliyun at all? Nobody uses email in China? Pls help

shhanshan
Forum Moderator
Forum Moderator
  • UID105
  • Fans3
  • Follows0
  • Posts209
10Floor#
Posted time:Jun 19, 2017 21:04 PM
We don't allow port 25 for setting up mail service, if you are not setting up mail server on the ECS, but calling 3rd party mail service provider, If you are using port 25 to connect to 3rd party mail service provider, please check with them if they can redirect the request from other port to port 25.

Sorry for the inconvenience.
Guest