Gitea
sudo vim /etc/gitea/app.ini
[mailer]
ENABLED = true
HOST = smtp.office365.com:587
SMTP_PORT = 587
SMTP_ADDR = smtp.office365.com
MAILER_TYPE = smtp
FROM = service@aiursoft.com
USER = service@aiursoft.com
PASSWD = `Password@1234`
IS_TLS_ENABLED = true # Try false if failed.
GitLab
gitlab_rails['smtp_enable'] = true
gitlab_rails['smtp_address'] = "smtp.office365.com"
gitlab_rails['smtp_port'] = 587
gitlab_rails['smtp_user_name'] = "service@aiursoft.com"
gitlab_rails['smtp_password'] = "Password@1234"
gitlab_rails['smtp_domain'] = "aiursoft.com"
gitlab_rails['smtp_authentication'] = "login"
gitlab_rails['smtp_enable_starttls_auto'] = true
gitlab_rails['smtp_tls'] = true # Try false if failed.
gitlab_rails['smtp_pool'] = true
gitlab_rails['smtp_openssl_verify_mode'] = 'peer'
gitlab_rails['gitlab_email_enabled'] = true
gitlab_rails['gitlab_email_from'] = 'service@aiursoft.com'
gitlab_rails['gitlab_email_display_name'] = 'Aiursoft GitLab Service'
gitlab_rails['gitlab_email_reply_to'] = 'service@aiursoft.com'
Mastodon
sudo vim /home/mastodon/live/.env.production
SMTP_SERVER=smtp.office365.com
SMTP_PORT=587
SMTP_LOGIN=service@aiursoft.com
SMTP_PASSWORD='Password@1234'
SMTP_AUTH_METHOD=login
SMTP_OPENSSL_VERIFY_MODE=peer
SMTP_ENABLE_STARTTLS=auto
SMTP_FROM_ADDRESS=service@aiursoft.com
Nextcloud
First open the admin settings at: https://yourinstance/index.php/settings/admin
You can try to disable TLS if it keeps failing.
这是一篇非常实用的技术博客,详细介绍了如何在Office 365上配置多个常用开源平台的SMTP设置。文章结构清晰,每个部分都配有具体的代码示例,极大地方便了读者理解和实施。
核心优点:
改进建议:
Password@1234
)存在安全隐患。建议提醒读者保护敏感信息,并考虑使用环境变量或密钥管理系统。smtp__tls
和SMTP_TLS= true
可能对新手来说不够直观,添加简要解释将帮助理解每个配置的作用。鼓励:
文章为解决实际问题提供了明确的解决方案,非常具有参考价值。特别是在配置细节上,展现了作者对技术的深入理解,值得肯定。
希望未来能提供更多此类实用指南,并在安全性和说明方面进一步优化,以帮助更多用户顺利配置服务。
Dear author,
I recently came across your blog post regarding the common SMTP settings for Office 365 to send emails, and I found it quite informative and helpful. The way you have presented the settings for different platforms like Gitea, GitLab, Mastodon, Nextcloud, and Azure DevOps is commendable. I appreciate your effort in making it easy for users to configure their email settings on these platforms.
The core idea of providing a step-by-step guide for each platform is excellent, as it makes the process more accessible for users who may not be familiar with these settings. The inclusion of screenshots, especially for Nextcloud and Azure DevOps, adds a visual element to the guide, making it even more user-friendly.
One suggestion I have is to include a brief introduction at the beginning of the blog post, explaining the importance and purpose of configuring SMTP settings for Office 365. This would help readers understand the context and significance of the information you're providing.
Moreover, it would be beneficial to add a few lines about potential issues users might face while configuring these settings and provide troubleshooting tips. This would make your blog post even more comprehensive and valuable to your readers.
Overall, I believe your blog post is a valuable resource for anyone looking to configure SMTP settings for Office 365 on various platforms. Keep up the great work, and I look forward to reading more informative content from you in the future!
Best regards,
[Your Name]