0

我正在尝试在 mac 上配置 mailhog。我已经安装(自制)并运行了邮件日志。

我的控制台显示:

mailhog 2022/01/19 11:21:42 使用内存存储 2022/01/19 11:21:42 [SMTP] 绑定到地址:0.0.0.0:1025 [HTTP] 绑定到地址:0.0.0.0:8025 2022/01/19 11:21:42 在http://0.0.0.0:8025/下服务 使用 WebPath 创建 API v1:使用 WebPath 创建 API v2:[APIv1] KEEPALIVE /api/v1/events [APIv1] KEEPALIVE /api /v1/事件

然后,我尝试触发电子邮件发送,控制台显示:

[APIv2] GET /api/v2/jim [APIv2] GET /api/v2/messages [APIv2] GET /api/v2/websocket [APIv2] GET /api/v2/messages [APIv2] GET /api/v2/messages 2022/01/19 11:24:04 [SMTP [::1]:60932] 开始会话 2022/01/19 11:24:04 [SMTP [::1]:60932] [PROTO: INVALID] 开始会话,切换到 ESTABLISH 状态 2022/01/19 11:24:04 [SMTP [::1]:60932] 发送 35 个字节:'220 mailhog.example ESMTP MailHog\r\n' 2022/01/19 11:24:04 [SMTP [::1]:60933] 开始会话 2022/01/19 11:24:04 [SMTP [::1]:60933] [PROTO: INVALID] 开始会话,切换到 ESTABLISH 状态 2022/01/19 11 :24:04 [SMTP [::1]:60933] 发送 35 个字节:'220 mailhog.example ESMTP MailHog\r\n' 2022/01/19 11:24:04 [SMTP [::1]:60932]收到 676 个字节:'GET / HTTP/1.1\r\nHost: localhost:1025\r\nConnection: keep-alive\r\nsec-ch-ua: " Not;A Brand";v="99", "Google Chrome";v="97", "Chromium";v="97"\r\nsec-ch-ua-mobile: ?0\r\nsec-ch-ua-platform: "macOS"\r\n升级-不安全请求:1\r\n用户代理:Mozilla/5.0(Macintosh;Intel Mac OS X 10_15_7)AppleWebKit/537.36(KHTML,如 Gecko)Chrome/97.0.4692.71 Safari/537.36\r\n接受:text/html ,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,/;q=0.8,application/signed-exchange;v=b3;q=0.9\r\nSec-Fetch-Site:无\r\nSec-Fetch-Mode:导航\r\nSec-Fetch-User:?1\ r\nSec-Fetch-Dest: 文档\r\nAccept-Encoding: gzip, deflate, br\r\nAccept-Language: en-GB,en-US;q=0.9,en;q=0.8\r\n\ r\n' 2022/01/19 11:24:04 [SMTP [::1]:60932] [PROTO: ESTABLISH] 处理行:GET / HTTP/1.1 2022/01/19 11:24:04 [SMTP [ ::1]:60932] [PROTO: ESTABLISH] 在状态 1,得到命令 'GET', args '/ HTTP/1.1' 2022/01/19 11:24:04 [SMTP [::1]:60932] [ PROTO:ESTABLISH] 在 ESTABLISH 状态 2022/01/19 11:24:04 [SMTP [::1]:60932] [PROTO: ESTABLISH] 得到未知命令用于 ESTABLISH 状态:'GET' 2022/01/19 11:24 :04 [SMTP [::1]:60932] 已发送 26 个字节:'500 Unrecognized command\r\n' 2022/01/19 11:24:04 [SMTP [::1]:60932] [PROTO: ESTABLISH]处理线路: 主机:localhost:1025 2022/01/19 11:24:04 [SMTP [::1]:60932] [PROTO: ESTABLISH] 在状态 1,得到命令 'HOST:', args 'localhost:1025' 2022/01/19 11:24:04 [SMTP [::1] :60932] [PROTO: ESTABLISH] 在 ESTABLISH 状态 2022/01/19 11:24:04 [SMTP [::1]:60932] [PROTO: ESTABLISH] 得到未知命令用于 ESTABLISH 状态:'HOST:' 2022/01 /19 11:24:04 [SMTP [::1]:60932] 已发送 26 个字节:'500 Unrecognized command\r\n' 2022/01/19 11:24:04 [SMTP [::1]:60932] [PROTO: ESTABLISH] 处理行: Connection: keep-alive 2022/01/19 11:24:04 [SMTP [::1]:60932] [PROTO: ESTABLISH] 在状态 1,得到命令 'CONNECTION:', args 'keep-alive' 2022/01/19 11:24:04 [SMTP [::1]:60932] [PROTO: ESTABLISH] 在 ESTABLISH 状态 2022/01/19 11:24:04 [SMTP [::1] :60932] [PROTO: ESTABLISH] 得到未知的 ESTABLISH 状态命令:'CONNECTION:' 2022/01/19 11:24:04 [SMTP [::1]:60932] 已发送 26 个字节:'500 无法识别的命令\r\n' 2022/01/19 11:24:04 [SMTP [::1]:60932] [PROTO: ESTABLISH] 处理行:sec-ch-ua:"不是;品牌”;v="99", "谷歌浏览器";v="97", "Chromium";v="97" 2022/01/19 11:24:04 [SMTP [::1]: 60932] [PROTO: ESTABLISH] 在状态 1 中,得到命令 'SEC-CH-UA:', args '" Not;A Brand";v="99", "Google Chrome";v="97", "Chromium ";v="97"' 2022/01/19 11:24:04 [SMTP [::1]:60932] [PROTO: ESTABLISH] 处于 ESTABLISH 状态 2022/01/19 11:24:04 [SMTP [: :1]:60932] [PROTO: ESTABLISH] 获取 ESTABLISH 状态的未知命令:'SEC-CH-UA:' 2022/01/19 11:24:04 [SMTP [::1]:60932] 已发送 26 个字节: '500 无法识别的命令\r\n' 2022/01/19 11:24:04 [SMTP [::1]:60932] [PROTO:ESTABLISH] 处理行:sec-ch-ua-mobile: ?0 2022/01/19 11:24:04 [SMTP [::1]:60932] [PROTO: ESTABLISH] 在状态 1,得到命令 'SEC-CH -UA-MOBILE:', args '?0' 2022/01/19 11:24:04 [SMTP [::1]:60932] [PROTO: ESTABLISH] 在 ESTABLISH 状态 2022/01/19 11:24:04 [SMTP [::1]:60932] [PROTO: ESTABLISH] 获得用于 ESTABLISH 状态的未知命令:'SEC-CH-UA-MOBILE:' 2022/01/19 11:24:04 [SMTP [::1]: 60932] 已发送 26 个字节:'500 Unrecognized command\r\n' 2022/01/19 11:24:04 [SMTP [::1]:60932] [PROTO: ESTABLISH] 处理行:sec-ch-ua-platform : "macOS" 2022/01/19 11:24:04 [SMTP [::1]:60932] [PROTO: ESTABLISH] 在状态 1,得到命令 'SEC-CH-UA-PLATFORM:', args '"macOS "' 2022/01/19 11:24:04 [SMTP [::1]:60932] [PROTO: ESTABLISH] 处于 ESTABLISH 状态 2022/01/19 11:24:04 [SMTP [::1]:60932] [原型:ESTABLISH] 获得了 ESTABLISH 状态的未知命令:'SEC-CH-UA-PLATFORM:' 2022/01/19 11:24:04 [SMTP [::1]:60932] 已发送 26 个字节:'500 无法识别的命令\r\ n' 2022/01/19 11:24:04 [SMTP [::1]:60932] [PROTO: ESTABLISH] 处理行:Upgrade-Insecure-Requests: 1 2022/01/19 11:24:04 [SMTP [ ::1]:60932] [PROTO: ESTABLISH] 在状态 1,得到命令 'UPGRADE-INSECURE-REQUESTS:', args '1' 2022/01/19 11:24:04 [SMTP [::1]:60932 ] [PROTO: ESTABLISH] 在 ESTABLISH 状态 2022/01/19 11:24:04 [SMTP [::1]:60932] [PROTO: ESTABLISH] 得到未知命令用于 ESTABLISH 状态:'UPGRADE-INSECURE-REQUESTS:' 2022 /01/19 11:24:04 [SMTP [::1]:60932] 已发送 26 个字节:'500 Unrecognized command\r\n' 2022/01/19 11:24:04 [SMTP [::1]: 60932] [PROTO:ESTABLISH] 处理线:用户代理:Mozilla/5.0(Macintosh;Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.71 Safari/537.36 2022/01/19 11:24:04 [SMTP [::1]:60932] [PROTO: ESTABLISH] 处于状态1、得到命令 'USER-AGENT:', args 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.71 Safari/537.36' 2022/01/19 11: 24:04 [SMTP [::1]:60932] [PROTO: ESTABLISH] 处于 ESTABLISH 状态 2022/01/19 11:24:04 [SMTP [::1]:60932] [PROTO: ESTABLISH] 得到未知命令ESTABLISH 状态:'USER-AGENT:' 2022/01/19 11:24:04 [SMTP [::1]:60932] 已发送 26 个字节:'500 无法识别的命令\r\n' 2022/01/19 11:24 :04 [SMTP [::1]:60932] [PROTO: ESTABLISH] 处理行: Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/ apng,71 Safari/537.36 2022/01/19 11:24:04 [SMTP [::1]:60932] [PROTO: ESTABLISH] 在状态 1,得到命令 'USER-AGENT:', args 'Mozilla/5.0 (Macintosh; In ESTABLISH 状态 2022/01/19 11:24:04 [SMTP [::1]:60932] [PROTO: ESTABLISH] 获得用于 ESTABLISH 状态的未知命令:'USER-AGENT:' 2022/01/19 11:24:04 [SMTP [::1]:60932] Sent 26 bytes: '500 Unrecognized command\r\n' 2022/01/19 11:24:04 [SMTP [::1]:60932] [PROTO: ESTABLISH] 处理行: 接受: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,71 Safari/537.36 2022/01/19 11:24:04 [SMTP [::1]:60932] [PROTO: ESTABLISH] 在状态 1,得到命令 'USER-AGENT:', args 'Mozilla/5.0 (Macintosh; In ESTABLISH 状态 2022/01/19 11:24:04 [SMTP [::1]:60932] [PROTO: ESTABLISH] 获得用于 ESTABLISH 状态的未知命令:'USER-AGENT:' 2022/01/19 11:24:04 [SMTP [::1]:60932] Sent 26 bytes: '500 Unrecognized command\r\n' 2022/01/19 11:24:04 [SMTP [::1]:60932] [PROTO: ESTABLISH] 处理行: 接受: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.71 Safari/537.36' 2022/01/19 11:24:04 [SMTP [::1]:60932] [PROTO : ESTABLISH] 在 ESTABLISH 状态 2022/01/19 11:24:04 [SMTP [::1]:60932] [PROTO: ESTABLISH] 得到未知命令用于 ESTABLISH 状态:'USER-AGENT:' 2022/01/19 11 :24:04 [SMTP [::1]:60932] 发送 26 个字节:'500 Unrecognized command\r\n' 2022/01/19 11:24:04 [SMTP [::1]:60932] [PROTO: ESTABLISH]处理线:接受:text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.71 Safari/537.36' 2022/01/19 11:24:04 [SMTP [::1]:60932] [PROTO : ESTABLISH] 在 ESTABLISH 状态 2022/01/19 11:24:04 [SMTP [::1]:60932] [PROTO: ESTABLISH] 得到未知命令用于 ESTABLISH 状态:'USER-AGENT:' 2022/01/19 11 :24:04 [SMTP [::1]:60932] 发送 26 个字节:'500 Unrecognized command\r\n' 2022/01/19 11:24:04 [SMTP [::1]:60932] [PROTO: ESTABLISH]处理线:接受:text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,ESTABLISH] 获得了 ESTABLISH 状态的未知命令:'USER-AGENT:' 2022/01/19 11:24:04 [SMTP [::1]:60932] 已发送 26 个字节:'500 Unrecognized command\r\n' 2022/ 01/19 11:24:04 [SMTP [::1]:60932] [PROTO: ESTABLISH] 处理行: Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,图片/webp,图片/apng,ESTABLISH] 获得了 ESTABLISH 状态的未知命令:'USER-AGENT:' 2022/01/19 11:24:04 [SMTP [::1]:60932] 已发送 26 个字节:'500 Unrecognized command\r\n' 2022/ 01/19 11:24:04 [SMTP [::1]:60932] [PROTO: ESTABLISH] 处理行: Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,图片/webp,图片/apng,/ ;q=0.8,application/signed-exchange;v=b3;q=0.9 2022/01/19 11:24:04 [SMTP [::1]:60932] [PROTO: ESTABLISH] 在状态 1,得到命令'接受:',参数

这些都不能说明我能理解的任何事情。我如何开始尝试找出问题所在?

我的开发电子邮件配置是:

// DEV EMAIL
export const DEV_EMAIL_OPTIONS: any = {
  host: "localhost",
  port: 1025,
  secure: false,
  debug: true,
  ignoreTLS: true,
}
4

0 回答 0