[exim] Remove Sender Header?

Top Page
Delete this message
Reply to this message
Author: jONEz
Date:  
To: exim-users
Subject: [exim] Remove Sender Header?

The company I work for has a problem with how our mailserver (Debian + Exim)
sends mail to clients. Sometimes mail is sent with an additional header
called Sender with the value of secure.oursite.com. This doesn't always
happen, so I'm trying to find out why this may occur and what can be done to
supress this header being added to mail. Our server technician thinks it's
our script (PHP4 mail func) that's creating the problem but for the
following reasons I do not believe that to be true;

1) Sending with PHP mail() using NULL headers still produces the problem.
2) I found this in the exim.conf file:

# If this option is set, then any process that is running as one of the
# listed users may pass a message to Exim and specify the sender's
# address using the "-f" command line option, without Exim's adding a
# "Sender" header.
trusted_users = mail

3) And this in the exim.conf file:
# This rewriting rule is particularly useful for dialup users who
# don't have their own domain, but could be useful for anyone.
# It looks up the real address of all local users in a file

nospam@???  debian@???      
bcfrsF
nospam@???    debian@???      
bcfrsF


#*@goofy.lan.aokiconsulting.com   
${lookup{$1}lsearch{/etc/email-addresses}\
#                        {$value}fail} bcfrF
#   E       rewrite all envelope fields
#   F       rewrite the envelope From field
#   T       rewrite the envelope To field
#   b       rewrite the "Bcc:" header
#   c       rewrite the "Cc:" header
#   f       rewrite the "From:" header
#   h       rewrite all headers
#   r       rewrite the "Reply-To:" header
#   s       rewrite the "Sender:" header
#   t       rewrite the "To:" header


I'm presuming it has to do with the way our mail account is setup, and must
have something to do with the -s option above. As a temporary fix our server
technician changed it to specify -s whatshouldbelisted.com as the Sender.
This of course prevents the secure.oursite.com domain from being listed, but
does not surpress the header as we would like.

I apologize if this is confusing, I'm a programmer and do not know very much
about mailservers, the reason I'm posting on this list is that I don't think
it will ever get fixed unless I can tell our technician exactly what the
problem is. Basically we just don't want the sender header included with
*any* mail if at all possible. Any assistance you can offer on solving this
issue is greatly appreciated.

Thanks!
--
View this message in context: http://www.nabble.com/Remove-Sender-Header--tf2016076.html#a5541846
Sent from the Exim Users forum at Nabble.com.