Solved

Exim: Remove "Sender" Header

Posted on 2003-11-07
7
2,331 Views
Last Modified: 2008-02-01
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!
0
Comment
Question by:thompsonj1
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
7 Comments
 
LVL 31

Expert Comment

by:rid
ID: 9706332
Why do you want to remove these headers? I thought these were required by standards. Most recipients don't like
anonymous messages anyway.
/RID
0
 

Author Comment

by:thompsonj1
ID: 9707429
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.
0
 
LVL 31

Expert Comment

by:rid
ID: 9707603
Sorry, my confusion...
I think I (finally..) get what you mean. No ideas pop up immediately...
/RID
0
 
LVL 37

Expert Comment

by:bbao
ID: 9801163
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
0
 
LVL 1

Accepted Solution

by:
mikewheatie earned 500 total points
ID: 9844707
Adding the headers_remove statement under the ###TRANSPORTS CONFIGURATION### > remote_smtp: section worked for me.  Looks something like this.

remote_smtp:
   driver = smtp
   headers_remove = "sender"  # line to add
end

You definitely had the right idea thompson!  Hopefully sticking this statement under the TRANSPORTS section will work for you...it worked for me!

Mike
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Microsoft Outlook provides an easy way to recover permanently deleted items. When you empty the Deleted Items or simply deleted an Outlook data items using shift+Del key then it can be recovered using Registry Key settings.  Caution- Wrong Registry…
Phishing attempts can come in all forms, shapes and sizes. No matter how familiar you think you are with them, always remember to take extra precaution when opening an email with attachments or links.
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

705 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question