标签 free 下的文章

说明:ss-panel-v3使用的SMTP发邮件,之前阿里云国际版用465端口正常,迁移到DigitalOcean不能使用25和465给客服发ticket,得到的回复如下:

[scode type="share"]Thank you for reaching out to us. We're very sorry that you are facing issues with SMTP.

Stopping spam is a constant fight and due to this, your account has restrictions specifically on ports 25 and 465. However, you are be able to send out mail using port 587. You will need to open the port in your firewall.

We realize this is inconvenient, but many customers in your position move their mailing activities to a third party service such as SendGrid or similar which processes such mail separately from their droplet. I'm sorry for the frustration but we're not able to lift these port restrictions at this time.

In terms of a workaround, here are a few alternatives:

  1. Utilize port 587 for SMTP relay via another mail provider, for example G Suite/Gmail, Mailgun, etc. We have a guide on doing so using Postfix here:

https://www.digitalocean.com/community/tutorials/how-to-set-up-a-mail-relay-with-postfix-and-mailgun-on-ubuntu-16-04

  1. Configure your app or service to send mail directly using either a SMTP client connection (typically using port 587), or API call via another mail provider such as Sendgrid, Mailgun, Mandrill, etc.

Please note that with this restriction in place on port 25, mail servers hosted here will be unable to directly relay email to other mail servers, as communication between mail servers typically takes place on port 25.

We think the API is the best solution, as it is honestly more scalable and what we would use if we wanted to "future proof" the project.

Please feel free to reach out to us via this ticket if you have further queries or concerns, we will be around to help you out!

Regards,

Saurabh
Developer Support Specialist - DigitalOcean

(Check out our fantastic community articles: https://www.digitalocean.com/community)[/scode]
所以决定使用Gmail的587来发送邮件。

开启IMAP

1.在计算机上打开 Gmail。
2.点击右上方的“设置”图标。
3.点击转发和 POP/IMAP 标签。
4.在“IMAP 访问”部分,点击启用 IMAP。
5.点击保存更改。

开启安全性较低的应用的访问权限

直达链接:https://myaccount.google.com/lesssecureapps

SMTP设置

发送邮件 (SMTP) 服务器:smtp.gmail.com
要求 SSL:是
要求 TLS:是(如适用)
使用身份验证:是
TLS/STARTTLS 端口:587
完整名称或显示名称:您的姓名
帐号名、用户名或电子邮件地址:您的完整电子邮件地址
密码:您的 Gmail 密码

Free Cloud-Based Web Hosting | AFreeCloud.com
*A Free Cloud (VestaCP)
Disk Space: 1024MB
Bandwidth: 100GB
Control Panel: VestaCP
Cost: 0.00 Credits/Day ($0.00/Month)
Free subdomains are available!
A basic free web hosting plan.*
注册地址
https://afreecloud.com/register.php

填写注册信息
Free Cloud-Based Web Hosting填写注册信息

到邮箱中点击激活邮件
click on this link to activate your account

点击了激活链接可以看到激活成功的提示
激活成功

激活成功之后会收到一个论坛的帐号和密码,这个不用管,没用。
论坛的帐号和密码

回到主页点击右上角登录
https://afreecloud.com/index.php
登录afreecloud.com

进入控制台
https://afreecloud.com/index.php?p=dash
进入控制台

选择一个免费套餐-Add Service-A Free Cloud (VestaCP)

可以使用提供的二级域名或者自己的域名
设置域名

申请成功
申请成功

等待服务生效

Your service has been added and an e-mail will be sent once it is active. All services require manual review before activation so please allow 2-3 business days for somebody to review and activate your new service.

您的服务已添加,并且一旦激活,将发送一封电子邮件。 所有服务需要在启动前进行手动审核,所以请允许有2-3个工作日来查看并激活您的新服务。

收到邮件,有帐号和密码
account dashboard控制台地址:https://afreecloud.com/index.php?p=dash
收到邮件,有帐号和密码

使用邮箱中的帐号密码登录
使用邮箱中的帐号密码登录

添加解析记录
在dns选项下查看ip地址
在dns选项下查看ip地址
添加解析记录
添加解析记录

至此,已经可以成功访问了。演示地址 http://afreecloud.sixu.cf/