机器名称为什么会出现在电子邮件标题中?

Kar*_*Kar 5 security email privacy email-client

我发出的所有邮件均带有以下标头:

Received: from My-iMac (12.12.12.12 [12.12.12.12]) by mx.mail.com
Run Code Online (Sandbox Code Playgroud)

为什么我的机器名My-iMac出现了?是因为我的邮件客户端(航空邮件)还是某些解决方案的结果?有没有一种简单的方法来隐藏我的主机名?

谢谢

小智 3

当主机发起 SMTP 会话时,它必须发送HELO/EHLO请求。该请求包含主机知道的主机名。在你的情况下有My-iMac.

这里引用维基百科:

S: 220 smtp.example.com ESMTP Postfix
C: HELO relay.example.org
S: 250 Hello relay.example.org, I am glad to meet you
C: MAIL FROM:<bob@example.org>
S: 250 Ok
C: RCPT TO:<alice@example.com>
S: 250 Ok
C: RCPT TO:<theboss@example.com>
S: 250 Ok
C: DATA
S: 354 End data with <CR><LF>.<CR><LF>
C: From: "Bob Example" <bob@example.org>
C: To: "Alice Example" <alice@example.com>
C: Cc: theboss@example.com
C: Date: Tue, 15 January 2008 16:02:43 -0500
C: Subject: Test message
C:
C: Hello Alice.
C: This is a test message with 5 header fields and 4 lines in the message body.
C: Your friend,
C: Bob
C: .
S: 250 Ok: queued as 12345
C: QUIT
S: 221 Bye
{The server closes the connection}
Run Code Online (Sandbox Code Playgroud)

小建议:您绝对不应该使用 IP 地址 12.12.12.12 或其他地址。允许私人使用的范围为:10.0.0.0/8、172.16.0.0/12 和 192.168.0.0/16。