Solved

Exim: Remove "Sender" Header

Posted on 2003-11-07
7
2,256 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
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

ScreenConnect 6.0 Free Trial

Discover new time-saving features in one game-changing release, ScreenConnect 6.0, based on partner feedback. New features include a redesigned UI, app configurations and chat acknowledgement to improve customer engagement!

Question has a verified solution.

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

The biggest nightmare for any Exchange Server Administrator is to keep the server running without any issue. But the problems often come and they need to be resolved efficiently and timely. Here are important troubleshooting points: Define the Pr…
Email signatures have numerous marketing benefits. Here are 8 top reasons to turn your email signature into a marketing channel.
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
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 …

810 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