问题描述
我已经在config.yml中配置了邮件服务器
mail.backend: 'smtp' # Use dummy if you want to disable email entirely
mail.host: 'smtp.exmail.qq.com'
mail.port: 587
mail.username: '×××××××'
mail.password: '×××××××'
mail.use-tls: true
# The email address to send on behalf of
mail.from: '××××××'
而且发送测试邮件,我也收到了
但是我在验证邮件部分,却一直收不到邮件
是我什么地方还没有配置吗?
看了一下smtp service的log
290 Connecting to gmail-smtp-in.l.google.com [2404:6800:4008:c07::1b]:25 ... failed: Cannot assign requested address
smtp_1 | 290 LOG: MAIN
smtp_1 | 290 H=gmail-smtp-in.l.google.com [2404:6800:4008:c07::1b] Cannot assign requested address
smtp_1 | 290 Connecting to gmail-smtp-in.l.google.com [108.177.97.26]:25 ... failed: Connection timed out (timeout=5m)
smtp_1 | 290 LOG: MAIN
smtp_1 | 290 H=gmail-smtp-in.l.google.com [108.177.97.26] Connection timed out
smtp_1 | 290 Connecting to alt1.gmail-smtp-in.l.google.com [2607:f8b0:4003:c19::1a]:25 ... failed: Cannot assign requested address
smtp_1 | 290 LOG: MAIN
smtp_1 | 290 H=alt1.gmail-smtp-in.l.google.com [2607:f8b0:4003:c19::1a] Cannot assign requested address
smtp_1 | 290 Connecting to alt1.gmail-smtp-in.l.google.com [209.85.235.26]:25 ... failed: Connection timed out (timeout=5m)
smtp_1 | 290 LOG: MAIN
smtp_1 | 290 H=alt1.gmail-smtp-in.l.google.com [209.85.235.26] Connection timed out
smtp_1 | 290 Connecting to alt2.gmail-smtp-in.l.google.com [2607:f8b0:4001:c1d::1b]:25 ... failed: Cannot assign requested address
smtp_1 | 290 LOG: MAIN
smtp_1 | 290 H=alt2.gmail-smtp-in.l.google.com [2607:f8b0:4001:c1d::1b] Cannot assign requested address
smtp_1 | 290 Connecting to alt3.gmail-smtp-in.l.google.com [2607:f8b0:4002:c08::1a]:25 ... failed: Cannot assign requested address
smtp_1 | 290 LOG: MAIN
smtp_1 | 290 H=alt3.gmail-smtp-in.l.google.com [2607:f8b0:4002:c08::1a] Cannot assign requested address
smtp_1 | 290 Connecting to alt4.gmail-smtp-in.l.google.com [2607:f8b0:400d:c0e::1a]:25 ... failed: Cannot assign requested address
smtp_1 | 290 LOG: MAIN
smtp_1 | 290 H=alt4.gmail-smtp-in.l.google.com [2607:f8b0:400d:c0e::1a] Cannot assign requested address
smtp_1 | 289 LOG: MAIN
smtp_1 | 289 == energy3456789@gmail.com R=dnslookup T=remote_smtp defer (99): Cannot assign requested address
看下sentry系统监控内有没有报错