Link to home
Start Free TrialLog in
Avatar of thompsonj1
thompsonj1

asked on

Exim: Remove "Sender" Header

I'd like to remove the "Sender" header that Exim adds automatically to some outgoing messages.  Ideally, I'd like to remove it from all outgoing messages (from local users and SMTP auth)

I've added "local_from_check = false" near the top of the config file.  I know that will only handle local users, but it's a start.  It doesn't help (perhaps it's in the wrong place?)

I also added "headers_remove = sender:x-mailer" in the "dnslookup" routers section.  That seems to remove the "X-Mailer" header properly, but not "Sender".  I'm guessing that the "Sender" header is added later (maybe at transport?)

At this point, I'm stuck.  Help!
Avatar of rid
rid
Flag of Sierra Leone image

Why do you want to remove these headers? I thought these were required by standards. Most recipients don't like
anonymous messages anyway.
/RID
Avatar of thompsonj1
thompsonj1

ASKER

I don't want to remove the "From:" header, just the "Sender:" header.  If the Sender header is present, Outlook (and Notes and other mail clients) join the "From" and "Sender" when displaying an email to the user.

So, if Apache sends a mail from "sales@company.com", Exim adds a "sender" header to show that Apache was the real sender, and Outlook shows the message like this:

    From: apache@webserver01.company.com On Behalf Of sales@company.com

So, I want the "sender" header to go away.  If I can also remove it from messages that come in via SMTP auth, I can remove this annoying message:

    From: susan.smith@dallas.company.com On Behalf Of support@company.com

Sender is not required, and is usually not used.
Sorry, my confusion...
I think I (finally..) get what you mean. No ideas pop up immediately...
/RID
Avatar of bbao
it is possible, it depends, on what kind of email system you are using, if it allows you customize the outgoing email header. some email systems allow you do that, such as the following system:

http://www.gnu.org/manual/emacs-21.2/html_chapter/emacs_29.html

hope it helps,
bbao
ASKER CERTIFIED SOLUTION
Avatar of mikewheatie
mikewheatie

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial