Re: [exim] rewriting linux user in Received: header

Top Page
Delete this message
Reply to this message
Author: Robert McNaught
Date:  
To: W B Hacker, exim-users
Subject: Re: [exim] rewriting linux user in Received: header
Thanks for the mail guys, I will continue with your advice.

One thing is that I cannot find /etc/master.passwd - I am using
CentOS, does anyone know if this is a distribution specific file?



Robert

On Wed, Feb 11, 2009 at 11:30 PM, W B Hacker <wbh@???> wrote:
> Robert McNaught wrote:
>> Hi,
>>
>> I am a newbie at exim, tried googling and doing rewrite rules to fix
>> this, cant seem to figure this one out myself.
>>
>> I am having 2 "Received:" headers (the initial linux user then the IP
>> of the exim server) appearing in the top of my email (I use evolution
>> and click show all headers). One of them is showing the linux user
>> which initiated the mail (this is a proprietary name and I wish to
>> remove it or change it).
>
> The problem of showing a 'linux user' sensitive ID (login name, one
> supposes) can be made to go away entirely if you switch to virtual
> users. Even 'postaster@' is in the virtual category on our boxes.
>
> There is no need to have any 'shell account' or even 'nologin' or daemon
> identities used in mail *unless8 they are gong to receive into old-style
> mboxen. better to use virtyal user ID and POP or IMAP.
>
> But *even so* - passing an editor over /etc/master.passwd and changing
> the 'real name' portion to NOT include the '&' that picks up the login
> name may solve at least part of your problem faster.
>
> Couple that with relaying inbound to where you want it via entries in
> /etc/aliases, and you may have all you need w/o re-writing anything -
> even for daemon runners.
>
> 'KISS'
>
> Bill Hacker
>
>
> > I successfully managed to change the
>> addresses in the envelope-from: and Return-path: headers using
>> rewriting. However, I cannot see a fix for changing the linux user.
>> I have a thought that it might be necessary to remove the headers
>> called Received: from the mail completely, but I do not know if this
>> makes it tough to get round spam blockers.
>>
>> Ideally, what I want to do is to change this line in the mail header:
>>
>> Received: from bob by myhost.mydomain.com with local (Exim
>> 4.63)(envelope-from............
>>
>> Any idea how I can get rid of bob or change bob to sally?
>>
>> Rewrites only appear to work for real email addresses and not the
>> linux user initiating the mail - I did try putting in
>>
>> bob sally EFTBcfhrst in exim.conf which I thought might have rewrote it.
>>
>> Can anyone point me in the right direction or tell me if its possible?
>>
>> TIA
>>
>> Robert
>>
>
>
> --
> ## List details at http://lists.exim.org/mailman/listinfo/exim-users
> ## Exim details at http://www.exim.org/
> ## Please use the Wiki with this list - http://wiki.exim.org/
>