Sendmail为受信任的用户添加了X-Authentication-Warning?

所以,我已经挖掘了大量的文章和答案来正确configuration在Ubuntu 12.04的sendmail,但仍然我的电子邮件被标记为X-Authentication-Warning头由sendmail:

X-Authentication-Warning:advisor.travel:www-data set sender to [email protected] using -f

通过简单的控制台调用

回声“testing电子邮件是由sendmail”| sudo -u www-data / usr / sbin / sendmail -f [email protected]

请注意,我没有试图在这里configuration一个防垃圾邮件设置,因为所有关于SPF,DKIM和其他东西已经到位:)

Sendmail信息:

 # sendmail -d0.1 Version 8.14.4 Compiled with: DNSMAP LDAPMAP LDAP_REFERRALS LOG MAP_REGEX MATCHGECOS MILTER MIME7TO8 MIME8TO7 NAMED_BIND NETINET NETINET6 NETUNIX NEWDB NIS NISPLUS PIPELINING SASLv2 SCANF SOCKETMAP STARTTLS TCPWRAPPERS USERDB USE_LDAP_INIT XDEBUG ============ SYSTEM IDENTITY (after readcf) ============ (short domain name) $w = advisor (canonical domain name) $j = advisor.travel (subdomain name) $m = travel (node name) $k = advisor.travel ======================================================== 

组态:

 /etc/mail # cat trusted-users www-data /etc/mail # cat sendmail.mc | grep use_ct_file FEATURE(`use_ct_file')dnl /etc/mail # cat sendmail.cf | grep -A 5 trusted Ft/etc/mail/trusted-users %[^\#] Troot Tdaemon Tuucp 

没有运气,仍然有X-Authentication-Warning标题:/

我已经阅读了几个来源,信任的用户文件应该在submit.mc中启用,但不知道如何:/

FEATURE(use_ct_file)添加到submit.mc并生成新的submit.cf


说明:
Sendmail-8.12 +使用submit.cf来控制“发送电子邮件”的sendmail执行。
已经介绍了避免安装sendmail作为set root uid(安全风险)。

Sendmail:安全安装