Re: [exim] replace Received From:

Página superior
Eliminar este mensaje
Responder a este mensaje
Autor: W B Hacker
Fecha:  
A: exim users
Asunto: Re: [exim] replace Received From:
Victor Gras wrote:
> Hi all,
>
> I need to replace or delete the IP appearing in the message header.
>
> I have exim in a Linux server managed with WHM/Cpanel. When I send an
> e-mail message, my local IP always is visible in the headers.
> I need replace the IP with the domain name server, user email address
> or any other thing. Even delete it if that's possible.
>
> Example:
>
> Received: from [95.40.153.213] (helo=user1.)
>         by host.mydomain.com with esmtpsa (TLSv1:AES256-SHA:256)
>         (Exim 4.52)
>         id 1Ge9Ka-0015K5-3z
>         for myaddress@???; Sun, 12 Nov 2006 11:00:42 +0100

>
> Then I want to replace or delete the [95.40.153.213] with any other
> thing.
>
> I'm making tests with exim.conf using exim expansion variables without
> success.
>
> Please, there is some way to do it?,
>
>
> thanks,


Several.

Three of the easiest involve little or no modification to Exim itself.

1) install a webmail service. There are plenty of those around, written in PHP,
perl, python, ruby, etc. These are handy to have in any case. Pay attention to
security.

At least two, one in perl, another in python, are full-fledged web-resident
MUA's - IOW can handle POP/IMAP accounts on servers other than those on which
they reside as well as the 'local' ones (if any).

One of these even instantiates its own bespoke https webserver, so no need for
Apache, etc. or interfering with an httpd that is doing web pages (not always a
good idea on a mail server anyway).

2) Work from an ssh shell with the Unix/Linux basic mail functions. Not as
clumsy as it soudns if you have cut 'n paste terminla functionality.

3) Use a more fully-featured Unix mailer toolset, such as 'pine' or 'mutt'.
Several folks here do so.

In all of the above cases, you are already 'resident' on the server, so the
adsl/dialup/<whatever> link is no longer of concern to the MTA and
'automagically' disappears.

The only adjustments you *may* need to make to Exim are w/r:

qualify_domain         =


qualify_recipient      =


And:

local_sender_retain     =


local_from_check        =


- Depending on which of the above you elect to use, whether shell-account or
virtual, etc. All documented.

See if one of these makes any sense for your needs first, as - depending on
where you operate, munging the other headers is potentially going to put you at
odds with ToS, perhaps even the Law of the Land and such w/r 'concealing the
origin' of email. Not to mention making troubleshooting more difficult.

HTH,

Bill