lisun
Intern
Intern
  • UID1682
  • Fans0
  • Follows0
  • Posts1
Reads:187046Replies:19

[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
Senior Engineer
Senior Engineer
  • UID105
  • Fans5
  • Follows0
  • Posts344
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
AlibabaCloud.com

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
Senior Engineer
Senior Engineer
  • UID105
  • Fans5
  • Follows0
  • Posts344
3rd Reply#
Posted time:Jan 24, 2017 20:02 PM
For ECS in VPC, you can apply to unlock in the console - risk control
AlibabaCloud.com

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
Senior Engineer
Senior Engineer
  • UID105
  • Fans5
  • Follows0
  • Posts344
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
AlibabaCloud.com

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

shhanshan
Senior Engineer
Senior Engineer
  • UID105
  • Fans5
  • Follows0
  • Posts344
7Floor#
Posted time:Mar 13, 2017 16:05 PM
Yes, port 22 is supported, normally used as  SSH service.
AlibabaCloud.com

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
Senior Engineer
Senior Engineer
  • UID105
  • Fans5
  • Follows0
  • Posts344
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.
AlibabaCloud.com

andee
Intern
Intern
  • UID4536
  • Fans0
  • Follows0
  • Posts1
11Floor#
Posted time:Dec 2, 2017 16:24 PM
ec  2 16:18:43 47 postfix/error[16776]: 5B4C91A3330: to=<anmoldeep0123@gmail.com>, relay=none, delay=0.02, delays=0.01/0/0/0, dsn=4.4.1, status=deferred (delivery temporarily suspended: connect to alt4.gmail-smtp-in.l.google.com[74.125.192.27]:25: Connection timed out)
^C
andee@47:/var/log$ telnet 64.233.160.27 25
Trying 64.233.160.27...
^C
andee@47:/var/log$
andee@47:/var/log$ telnet 64.233.160.27 25
Trying 64.233.160.27...
telnet: Unable to connect to remote host: Connection timed out

hanneng
Engineer
Engineer
  • UID3277
  • Fans5
  • Follows0
  • Posts83
12Floor#
Posted time:Dec 4, 2017 16:37 PM
I would suggest to use third party email services, such as sendgrid, mailgun, mandrill, etc

shhanshan
Senior Engineer
Senior Engineer
  • UID105
  • Fans5
  • Follows0
  • Posts344
13Floor#
Posted time:Dec 5, 2017 2:19 AM
You can use tcp protocol to send/receive email
AlibabaCloud.com

frdhgn
Intern
Intern
  • UID4785
  • Fans0
  • Follows0
  • Posts1
14Floor#
Posted time:Jan 2, 2018 23:44 PM
Sad moment to discover such a totally unexpected stumbling block after having spent several weeks evaluating and to set up all the non-trivial features in our cloud server.

Reconfiguring to a third party email service on literally dozens of android-devices is a real PITA!

Wish I knew beforehand...any chance of change in this seemingly meaningless policy anytime soon?

Previous
Guest