RE: [Exim] Setting the envelope to the From: content

Página superior
Eliminar este mensaje
Responder a este mensaje
Autor: Eli
Fecha:  
A: 'Steinar Bang', exim-users
Asunto: RE: [Exim] Setting the envelope to the From: content
I know why you might want to do this - your users are sending email through
formmail scripts on your system (or just locally generated messages), and
the sender envelope is the account of your webserver - or the domain of the
server isn't a domain your users can get email at, so the sender envelopes
are invalid (which isn't all that great - sender verification fails for
these addresses and such).

I had the same issue, and I figured since I can track spammers very well on
my systems, I don't mind rewriting the sender envelope to be the From:
address.

Add this to your rewrite section:

*@$primary_hostname             $rheader_from:                  F


That will rewrite the sender envelope address for locally generated emails
(the *@$primary_hostname ensures that) to the From: header specified in the
email. It's a security risk indeed, but if you can track misbehaving users
down properly, then it should be OK to do this.

Eli.

-----Original Message-----
From: exim-users-admin@??? [mailto:exim-users-admin@exim.org] On Behalf
Of Steinar Bang
Sent: Wednesday, January 28, 2004 3:22 PM
To: exim-users@???
Subject: [Exim] Setting the envelope to the From: content


Platform: Intel PII, debian testing/unstable (sarge), exim 3.36

I want to set the envelope sender on outgoing messages to the same as
the content of the From: field in the message being sent.

I've tried doing it, by having the line
return_path = ${local_part:$reply_address}@${domain:$reply_address}
in the remote_smtp transport.

I thought that this worked at the time I put in this setting (March
31, 2002), but I may have been hallucinating...? In any case, it
doesn't work now.

Does anyone know what _would_ work? Or what other setting might
affect this?

Thanx!


- Steinar


--

## List details at http://www.exim.org/mailman/listinfo/exim-users Exim
details at http://www.exim.org/ ##