Is there a way to make all system users be 'trusted' by sendmail without having to manually add all the usernames to /etc/mail/trusted-users?
Or even better, can I instead of defining 'trusted users', define a 'trusted group' and then add users to this group?
A bit of background:
We host websites for several small businesses on a single CentOS server. Sometimes these sites need to send mail to the business owners. We use a third party SMTP service for delivering these emails. Without any configuration, the envelope 'from' address is something like this:
websitename@servername.domainname.com
We don't have mailboxes setup for all these addresses. I want to rewrite them to
servername@domainname.com
Which is a real mailbox that I have set up and will monitor for bounces etc.
The sites all send mail through PHP, so I have added the following to my php.ini file:
mail.force_extra_parameters = -f servername@domainname.com
This means the envelope address is rewritten the way I want, but the emails all get sent out with authentication warnings in the headers, because the users aren't in sendmails 'trusted users' list. I don't want to have to maintain the list manually. I just want all users to be 'trusted' by default.
Many thanks if you can help me with this.
Best Answer
No
X-Authentication-Warning:
for all locally submitted messagesYou may turn off appending
X-Authentication-Warning:
header by remowingauthwarnings
fromPrivacyOptions
in/etc/mail/submit.cf
. [submit.cf
, NOTsendmail.cf
]In
submit.mc
add the following line afterFEATURE(msp,...)
and compile newsubmit.cf
:The above line repeats confPRIVACY_FLAGS settings from
FEATURE(msp)
withauthwarnings
removed from expanded substiture ofgoaway
.