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

Kezdőlap
Üzenet törlése
Válasz az üzenetre
Szerző: W B Hacker
Dátum:  
Címzett: exim users
Tárgy: Re: [exim] rewriting linux user in Received: header
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
>