这里的sendmail指的是什么?

ixt*_*lix 17 linux sendmail hostname

当我从 debian 存储库安装 sendmail 时,我得到以下输出:

Disabling HOST statistics file(/var/lib/sendmail/host_status).
Creating /etc/mail/sendmail.cf...
Creating /etc/mail/submit.cf...
Informational: confCR_FILE file empty: /etc/mail/relay-domains
Informational: confCT_FILE file empty: /etc/mail/trusted-users
Updating /etc/mail/access...
Updating /etc/mail/aliases...
WARNING: local host name (ixtmixilix) is not qualified; see cf/README: WHO AM I?
Run Code Online (Sandbox Code Playgroud)

有人可以告诉我这是什么意思,我需要做什么来限定我的主机名?

Mic*_*zek 12

它指的是自述文件中的此页面,它告诉您如何指定主机名。它警告您,您的主机名在您的本地网络之外无法使用;sendmail 将您的主机名附加为邮件的发件人,但它在另一端将无用,因为您本地网络之外的人无法找到该机器ixtmixilix。您应该指定一个可以从任何地方解析的主机名,例如ixtmixilix.example.com

  • @AbdennourTOUMI 你确定这不是相反的吗?编辑`sendmail.mc`,`.cf` 会更新吗? (2认同)

Jad*_*eye 8

对于我在 Ubuntu 14.04 上解决了这个问题:

$ sudo nano /etc/hostname
Run Code Online (Sandbox Code Playgroud)

将您的主机名更改为类似 my-domain.XXX 的名称

其中 XXX = .com OR .net OR .some

然后sudo sendmailconfig更新所有其余的您可以测试您的配置,以便:

$ sendmail -v username@privateDomain.ext < test.mail
Run Code Online (Sandbox Code Playgroud)

我使用我的私人域邮箱作为服务,例如 gmail 阻止这些类型的电子邮件: 050 550-5.7.1 [87.68.229.9 12] Our system has detected that this message is 050 550-5.7.1 likely unsolicited mail. To reduce the amount of spam sent to Gmail, 050 550-5.7.1 this message has been blocked. Please visit 050 550 5.7.1 https://support.google.com/mail/answer/188131 for more information. u3si25544809wje.160 - gsmtp

test.mail包含您要发送的任何消息的文件在哪里


小智 7

在 Debian 8 (Jessie) 上有效:

$ sudo hostnamectl set-hostname yourdomain.com

然后这样测试一下:

$ hostname yourdomain.com