现在的情况是已经到了欢迎页面,注册账户但是一直收不到邮件,我和另一位老哥忙活了两三天了,额额额额额,已经要受不鸟了.
求帮忙看看配置是否正确
邮箱是企业微信申请的业务企业邮箱,在thunderbird中登陆是没有问题的,thunderbird中登陆是用的465,这里是587.
因为telnet smtp.exmail.qq.com 587
会返回:
Trying 175.27.18.147...
Connected to smtp.exmail.qq.com.
Escape character is '^]'.
220 smtp.qq.com Esmtp QQ QMail Server
我认为587是好用的 下面是build时候出现的docker运行命令,大部分配置在这里应该可以找的到
+ /usr/bin/docker run --shm-size=512m -d --restart=always -e LANG=en_US.UTF-8 -e RAILS_ENV=production -e UNICORN_WORKERS=3 -e UNICORN_SIDEKIQS=1 -e RUBY_GLOBAL_METHOD_CACHE_SIZE=131072 -e RUBY_GC_HEAP_GROWTH_MAX_SLOTS=40000 -e RUBY_GC_HEAP_INIT_SLOTS=400000 -e RUBY_GC_HEAP_OLDOBJECT_LIMIT_FACTOR=1.5 -e DISCOURSE_DB_SOCKET=/var/run/postgresql -e DISCOURSE_DB_HOST= -e DISCOURSE_DB_PORT= -e LC_ALL=en_US.UTF-8 -e LANGUAGE=en_US.UTF-8 -e EMBER_CLI_PROD_ASSETS=1 -e DISCOURSE_HOSTNAME=rcit.org.cn -e [email protected],[email protected] -e DISCOURSE_SMTP_ADDRESS=smtp.exmail.qq.com -e DISCOURSE_SMTP_PORT=587 -e DISCOURSE_SMTP_USER_NAME=bbs.rcit.org.com -e DISCOURSE_SMTP_PASSWORD=SdamZhoGmd9C9Fcw -e DISCOURSE_SMTP_ENABLE_START_TLS=true -e DISCOURSE_SMTP_DOMAIN=rcit.org.cn -e [email protected] -h VM-12-8-debian-app -e DOCKER_HOST_IP=172.17.0.1 --name app -t -p 10080:80 -p 10443:443 -p 587:587 -v /var/discourse/shared/standalone:/shared -v /var/discourse/shared/standalone/log/var-log:/var/log --mac-address 02:8c:92:2b:31:09 local_discourse/app /sbin/boot
配置文件,为了篇幅,删掉了注释
templates:
- "templates/postgres.template.yml"
- "templates/redis.template.yml"
- "templates/web.template.yml"
- "templates/web.china.template.yml"
- "templates/web.ratelimited.template.yml"
expose:
- "10080:80" # http
- "10443:443" # https
params:
db_default_text_search_config: "pg_catalog.english"
env:
LC_ALL: en_US.UTF-8
LANG: en_US.UTF-8
LANGUAGE: en_US.UTF-8
EMBER_CLI_PROD_ASSETS: 1
# DISCOURSE_DEFAULT_LOCALE: en
#UNICORN_WORKERS: 4
DISCOURSE_HOSTNAME: 'rcit.org.cn'
#DOCKER_USE_HOSTNAME: true
DISCOURSE_DEVELOPER_EMAILS: '[email protected],[email protected]'
DISCOURSE_SMTP_ADDRESS: smtp.exmail.qq.com
DISCOURSE_SMTP_PORT: 587
DISCOURSE_SMTP_USER_NAME: [email protected]
DISCOURSE_SMTP_PASSWORD: SNndcoodasdnaodnwd
DISCOURSE_SMTP_ENABLE_START_TLS: true # (optional, default true)
DISCOURSE_SMTP_DOMAIN: rcit.org.cn # (required by some providers)
DISCOURSE_NOTIFICATION_EMAIL: [email protected] # (address to send notifications from)
#LETSENCRYPT_ACCOUNT_EMAIL: [email protected]
#DISCOURSE_CDN_URL: https://discourse-cdn.example.com
#DISCOURSE_MAXMIND_LICENSE_KEY: 1234567890123456
volumes:
- volume:
host: /var/discourse/shared/standalone
guest: /shared
- volume:
host: /var/discourse/shared/standalone/log/var-log
guest: /var/log
hooks:
after_code:
- exec:
cd: $home/plugins
cmd:
- git clone https://github.com/discourse/docker_manager.git
run:
- exec: echo "Beginning of custom commands"
#- exec: rails r "SiteSetting.notification_email='[email protected]'"
- exec: echo "End of custom commands"
一部分日志:
start
done
start
start
Rendered layouts/email_template.html.erb (Duration: 0.8ms | Allocations: 280)
Delivered mail [email protected] (252.7ms)
Job exception: 535 Error: authentication failed, system busy
fail
Job exception: execution expired
fail
Started GET "/" for 172.17.0.1 at 2022-04-23 17:50:35 +0000
Processing by FinishInstallationController#index as HTML
Rendered finish_installation/index.html.erb within layouts/finish_installation (Duration: 1.2ms | Allocations: 274)
Rendered layout layouts/finish_installation.html.erb (Duration: 26.5ms | Allocations: 27351)
Completed 200 OK in 55ms (Views: 28.0ms | ActiveRecord: 0.0ms | Allocations: 36670)
Started GET "/finish-installation/register" for 172.17.0.1 at 2022-04-23 17:50:37 +0000
Processing by FinishInstallationController#register as HTML
Rendered finish_installation/register.html.erb within layouts/finish_installation (Duration: 1.3ms | Allocations: 627)
Rendered layout layouts/finish_installation.html.erb (Duration: 6.5ms | Allocations: 2467)
Completed 200 OK in 10ms (Views: 7.0ms | ActiveRecord: 0.0ms | Allocations: 3705)
Started POST "/finish-installation/register" for 172.17.0.1 at 2022-04-23 17:50:45 +0000
Processing by FinishInstallationController#register as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"6n5yBzKnPFAuci2Rk3UFDaYjha2k5aSx4d3mkNPvW8maQsrTEwjjlUw1x0Tu2Z2sVYl1QWWoik5M4lPxzM4wrg==", "email"=>"[email protected]", "username"=>"wofbi", "password"=>"[FILTERED]", "commit"=>"Register"}
start
Redirected to http://rcit.org.cn/finish-installation/confirm-email
Completed 302 Found in 24ms (ActiveRecord: 0.0ms | Allocations: 3381)
Started GET "/finish-installation/confirm-email" for 172.17.0.1 at 2022-04-23 17:50:45 +0000
Processing by FinishInstallationController#confirm_email as HTML
Rendered layouts/email_template.html.erb (Duration: 0.1ms | Allocations: 34)
Rendered finish_installation/confirm_email.html.erb within layouts/finish_installation (Duration: 0.6ms | Allocations: 288)
Rendered layout layouts/finish_installation.html.erb (Duration: 6.0ms | Allocations: 2136)
Completed 200 OK in 8ms (Views: 6.5ms | ActiveRecord: 0.0ms | Allocations: 2868)
Delivered mail [email protected] (280.9ms)
Job exception: 535 Error: authentication failed, system busy
fail
start
Rendered layouts/email_template.html.erb (Duration: 0.1ms | Allocations: 34)
Delivered mail [email protected] (273.6ms)
Job exception: 535 Error: authentication failed, system busy
fail
start
done
start
Rendered layouts/email_template.html.erb (Duration: 0.1ms | Allocations: 34)
Delivered mail [email protected] (269.5ms)
Job exception: 535 Error: authentication failed, system busy
fail
start
Job exception: execution expired
fail
start
Rendered layouts/email_template.html.erb (Duration: 0.9ms | Allocations: 34)
Delivered mail [email protected] (290.5ms)
Job exception: 535 Error: authentication failed, system busy
fail