I did, but how to specify them regarding the fact that they are users from different hosts?
Say user1 from host1.mydomain.com
user3 from host20.mydomain.com
etc
Main Topics
Browse All TopicsI get this in the headers of all emails sent from the machines on the network:
X-Authentication-Warning: host1.mydomain.com: someuser set sender to xxx@mydomain.com using -f
While this IS intended behaviour, how can I prevent having this information in the headers?
Ramses (x_terminat_or_3)
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
I might need a few more details to understand your particular situation. You have a smart host relay set up?
http://www.sendmail.org/m4
Hmm I'm thinking about something...
WHICH sendmail is adding this line? Is it the sendmail on the localhost or the sendmail on the smtp server?
If it is the smtp server, then the answer is NO, no smart host relaying is setup
relay-domain is setup
genericsdomain is setup
domaintable is setup
headerrewriting and envelope rewriting is setup
If it's the local server, I didn't think I changed anything on the sendmail settings
> WHICH sendmail is adding this line?
It is the local sendmail on the system where the message originates.
You can avoid that header by including the sending user in Sendmail's list of trusted users's. However, doing so is a security issue in that that list of trusted users can do things that might not be appropriate. Since this is just an "informational header" it is probably safer to just put up with it.
Well, of course it is. The fact is that some application of yours is sending messages and pretending to be some other user. So Sendmail is doing the "right thing" by including that header to tell a recipient that it has happened. Very few MUA's pay attention to that, simply because it is so common. And even fewer users ever look at the envelope headers.
Easy!!!
Whenever you see in your email headers:-
X-Authentication-Warning: host1.mydomain.com: someuser set sender to xxx@mydomain.com using -f
Go in and edit your file /etc/mail/trusted-users and add to the end of it:-
someone
There are no domains stored here - just peoples usernames - if you want everyone to be able to send without this error, just add every user in your /etc/passwd file.
(If you're "into" experimentation, you could try a single * or maybe <*> and see what happens too)
Once added - "someone" can set sender to anything he wants "xxx@mydomain.com" or anything - no restrictions.
Remember of course that if you pick someone elses "mydomain.com", that's called "forgery" - mostly it will work OK, but a lot of domains prohibit this, and a lot of recipients check for prohibited stuff, so a lot of emails sent this way will not go through!
Business Accounts
Answer for Membership
by: arantiusPosted on 2005-01-07 at 10:48:18ID: 12986465
Use /etc/mail/trusted-users to list users that are allowed to set the sender.