Homeland Docker 安装 homeland,邮件配置 smtp 后,收不到邮件

caohuan346 · 2018年11月15日 · 最后由 AK 回复于 2021年07月14日 · 6864 次阅读

采用 Docker 方式安装的 homeland,配置 smtp 后,找回密码时收不到邮件,求助各位大大

mailer_provider=smtp [email protected] mailer_options_address=smtp.gmail.com mailer_options_port=587 mailer_options_domain=your-domain.com [email protected] mailer_options_password=your-password mailer_options_authentication=plain mailer_options_enable_starttls_auto=true

xiangfan211 回复

改用这个配置,同样收不到邮件,并报了如下错误

可能不支持端口号 25

用 163 的邮件试试。

阿里云默认不开放 25 端口

jicheng1014 回复

👍 ,我采用 docker 方式安装的,配置中端口设置为 465,是代码底层写死 25 了吧

问下这啥啥情况,也是 smtp 配置的 @caohuan346 @huacnlee

配置信息如下: mailer_provider=smtp [email protected] mailer_options_address=smtp.exmail.qq.com mailer_options_port=465 mailer_options_domain=indiehackers.net [email protected] mailer_options_password=我的邮箱密码 mailer_options_authentication=plain mailer_options_enable_starttls_auto=true

cmlanche 回复
mailer_provider=smtp
mailer_sender=cmlanche@indiehackers.net
mailer_options_address=smtp.exmail.qq.com
mailer_options_port=465
mailer_options_domain=indiehackers.net
mailer_options_user_name=cmlanche@indiehackers.net
mailer_options_password=我的邮箱密码
mailer_options_authentication=plain
mailer_options_enable_starttls_auto=true

解决了吗,我也遇到了

<EOFError: end of file reached>


/usr/local/lib/ruby/2.6.0/net/protocol.rb:225:in `rbuf_fill'
/usr/local/lib/ruby/2.6.0/net/protocol.rb:191:in `readuntil'
/usr/local/lib/ruby/2.6.0/net/protocol.rb:201:in `readline'
/usr/local/lib/ruby/2.6.0/net/smtp.rb:950:in `recv_response'
/usr/local/lib/ruby/2.6.0/net/smtp.rb:553:in `block in do_start'
/usr/local/lib/ruby/2.6.0/net/smtp.rb:960:in `critical'
/usr/local/lib/ruby/2.6.0/net/smtp.rb:553:in `do_start'
/usr/local/lib/ruby/2.6.0/net/smtp.rb:518:in `start'
/home/app/homeland/vendor/bundle/ruby/2.6.0/gems/mail-2.7.1/lib/mail/network/delivery_methods/smtp.rb:109:in `start_smtp_session'
/home/app/homeland/vendor/bundle/ruby/2.6.0/gems/mail-2.7.1/lib/mail/network/delivery_methods/smtp.rb:100:in `deliver!'
/home/app/homeland/vendor/bundle/ruby/2.6.0/gems/mail-2.7.1/lib/mail/message.rb:2159:in `do_delivery'
/home/app/homeland/vendor/bundle/ruby/2.6.0/gems/mail-2.7.1/lib/mail/message.rb:260:in `block in deliver'
/home/app/homeland/vendor/bundle/ruby/2.6.0/gems/actionmailer-6.0.0/lib/action_mailer/base.rb:589:in `block in deliver_mail'
/home/app/homeland/vendor/bundle/ruby/2.6.0/gems/activesupport-6.0.0/lib/active_support/notifications.rb:180:in `block in instrument'
/home/app/homeland/vendor/bundle/ruby/2.6.0/gems/activesupport-6.0.0/lib/active_support/notifications/instrumenter.rb:24:in `instrument'
/home/app/homeland/vendor/bundle/ruby/2.6.0/gems/activesupport-6.0.0/lib/active_support/notifications.rb:180:in `instrument'
/home/app/homeland/vendor/bundle/ruby/2.6.0/gems/actionmailer-6.0.0/lib/action_mailer/base.rb:587:in `deliver_mail'
/home/app/homeland/vendor/bundle/ruby/2.6.0/gems/mail-2.7.1/lib/mail/message.rb:260:in `deliver'
/home/app/homeland/vendor/bundle/ruby/2.6.0/gems/actionmailer-6.0.0/lib/action_mailer/message_delivery.rb:114:in `block in deliver_now'
/home/app/homeland/vendor/bundle/ruby/2.6.0/gems/actionmailer-6.0.0/lib/action_mailer/rescuable.rb:17:in `handle_exceptions'
/home/app/homeland/vendor/bundle/ruby/2.6.0/gems/actionmailer-6.0.0/lib/action_mailer/message_delivery.rb:113:in `deliver_now'
/home/app/homeland/vendor/bundle/ruby/2.6.0/gems/actionmailer-6.0.0/lib/action_mailer/mail_delivery_job.rb:18:in `perform'
/home/app/homeland/vendor/bundle/ruby/2.6.0/gems/activejob-6.0.0/lib/active_job/execution.rb:39:in `block in perform_now'

无人解决?

需要 登录 后方可回复, 如果你还没有账号请 注册新账号