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)
有人可以告诉我这是什么意思,我需要做什么来限定我的主机名?
对于我在 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