Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gmail smtp 邮箱配置不能正常工作 #1547

Closed
icyleaf opened this issue Jun 18, 2024 Discussed in #1543 · 3 comments
Closed

gmail smtp 邮箱配置不能正常工作 #1547

icyleaf opened this issue Jun 18, 2024 Discussed in #1543 · 3 comments

Comments

@icyleaf
Copy link
Member

icyleaf commented Jun 18, 2024

Discussed in #1543

Originally posted by jason-xie-123 June 17, 2024
请教个问题, 不知有没有人遇见过, 我这边在 ubuntu ec2 上面通过 https://github.com/tryzealot/zealot-docker + nginx 配置好了 tryzealot/zealot, 一切工作正常, 但是我在配置 gmail 邮箱的时候一直不能正常工作, 我使用下面的配置设置

{ "address": "smtp.gmail.com", "port": 587, "domain": "gmail.com", "username": "xxx@gmail.com", "password": "xxxxxxxx", "auth_method": "plain", "enable_starttls_auto": true }

我在 https://www.gmass.co/smtp-test 里面测试的账号密码是可以正常工作的

@Issues-translate-bot
Copy link

Bot translate issue to English automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


Title: gmail smtp email configuration does not work properly

Discussed in #1543

Originally posted by jason-xie-123 June 17, 2024
I have a question. I wonder if anyone has encountered it. I have configured tryzealot/zealot on ubuntu ec2 through https://github.com/tryzealot/zealot-docker + nginx. Everything works fine, but I am configuring gmail. When the mailbox has not been working properly, I use the following configuration settings

{ "address": "smtp.gmail.com", "port": 587, "domain": "gmail.com", "username": "xxx@gmail.com", "password": "xxxxxxxx", "auth_method": "plain", "enable_starttls_auto": true }

The account and password I tested in https://www.gmass.co/smtp-test can work normally

icyleaf added a commit that referenced this issue Jun 18, 2024
@icyleaf icyleaf closed this as completed Jun 18, 2024
@icyleaf
Copy link
Member Author

icyleaf commented Jun 18, 2024

因 mail 依赖变量调整,需要改名环境变量来适配新的逻辑:

SMTP_DOMAIN=zealot.com
SMTP_ADDRESS=smtp.gmail.com
SMTP_PORT=587
SMTP_USERNAME=you@gmail.com
SMTP_PASSWORD=your_app_password
SMTP_AUTH_METHOD=plain
-SMTP_ENABLE_STARTTLS_AUTO=true
+SMTP_ENABLE_STARTTLS=true

@Issues-translate-bot
Copy link

Bot translate issue to English automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


Because mail relies on variable adjustment, the environment variables need to be renamed to adapt to the new logic:

SMTP_DOMAIN=zealot.com
SMTP_ADDRESS=smtp.gmail.com
SMTP_PORT=587
SMTP_USERNAME=you@gmail.com
SMTP_PASSWORD=your_app_password
SMTP_AUTH_METHOD=plain
-SMTP_ENABLE_STARTTLS_AUTO=true
+SMTP_ENABLE_STARTTLS=true

icyleaf added a commit that referenced this issue Jun 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants