Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: exim: users

rewrite From: with MAIL FROM:

 

 

exim users RSS feed   Index | Next | Previous | View Threaded


janek.fc5 at gmail

Sep 22, 2009, 10:01 PM

Post #1 of 6 (1019 views)
Permalink
rewrite From: with MAIL FROM:

How can I make exim rewrite From: header in email message with one given in
MAIL FROM: smtp protocol command?
--
## 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/


exim-users-20081202 at djce

Sep 23, 2009, 3:02 AM

Post #2 of 6 (959 views)
Permalink
Re: rewrite From: with MAIL FROM: [In reply to]

On Wed, Sep 23, 2009 at 07:01:18AM +0200, janek wrote:
> How can I make exim rewrite From: header in email message with one given in
> MAIL FROM: smtp protocol command?

I should imagine you could do it by using headers_remove / headers_add /
$sender_address; but really, don't. The return path (MAIL FROM) and the
"From" header have completely different meanings, for a good reason. Lots of
perfectly normal mail has From: different from MAIL FROM. For example, all
mail on this list.

See RFC2821 and RFC2822 if you would like to learn more about this.

Regards,

--
Dave Evans
http://djce.org.uk/
http://djce.org.uk/pgpkey
Attachments: signature.asc (0.19 KB)


janek.fc5 at gmail

Sep 23, 2009, 11:01 PM

Post #3 of 6 (952 views)
Permalink
Re: rewrite From: with MAIL FROM: [In reply to]

Some more info how to do it please - I'm really not good at configuring
exim.

Reason for rewriting From: header inside email with MAIL FROM: is anti mail
sender spoof. MAIL FROM: gets verified in smtp session, from: header does
not. Gmail does such rewriting. Other servers do not and you can send email
using their service while signing as any sender. I realize that such rewrite
is not with accordance with rfc-s but many things can't be those time when
fighting abusers.
--
## 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/


tlyons at ivenue

Sep 24, 2009, 7:49 AM

Post #4 of 6 (950 views)
Permalink
Re: rewrite From: with MAIL FROM: [In reply to]

On Wed, Sep 23, 2009 at 11:01 PM, janek <janek.fc5 [at] gmail> wrote:
> Some more info how to do it please - I'm really not good at configuring
> exim.

He just told you not to do it. That's why he didn't say how to :-)

> Reason for rewriting From: header inside email with MAIL FROM: is anti mail
> sender spoof. MAIL FROM: gets verified in smtp session, from: header does
> not. Gmail does such rewriting. Other servers do not and you can send email
> using their service while signing as any sender. I realize that such rewrite
> is not with accordance with rfc-s but many things can't be those time when
> fighting abusers.

When you get this email from me through the mailing list, would you
rather it said from Todd Lyons <my_email_address> or would you rather
it said From exim-users [at] exim If you do your from rewriting the
way you are requesting, you will never know my email address to mail
me directly because you will overwrite it with the mailing list
address.

IMHO, you should not do this. Instead it is common to add headers
that detail that information (the Sender: header for example). You'll
also see things such as X-Authenticated-User or X-Authenticated-Sender
in the event of a user who uses SMTP Auth to send the email. Store
the HELO user in the email with add_header instead of rewriting the
From: header.

However, if you choose to still do From header rewriting, you want to
only do it in very specific situations. And he mentioned that you'll
want to do that using headers_add and headers_remove in the transport
or transports that your mail flows through.

--
Regards... Todd

--
## 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/


janek.fc5 at gmail

Sep 24, 2009, 5:52 PM

Post #5 of 6 (937 views)
Permalink
Re: rewrite From: with MAIL FROM: [In reply to]

I don't want to setup mailing lists, if I did I would rather like to
deactivate such rewriting then because such usage for exim is much more
rare.
Additional headers are insufficient as they dont stop abusers. Abusers still
can and want to use your mailsystem to relay their email (with custom
from:), but using authitenced smtp users (which they can aquire when signing
up for free service)
--
## 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/


iane at sussex

Sep 25, 2009, 1:43 AM

Post #6 of 6 (947 views)
Permalink
Re: rewrite From: with MAIL FROM: [In reply to]

--On 24 September 2009 08:01:24 +0200 janek <janek.fc5 [at] gmail> wrote:

> Some more info how to do it please - I'm really not good at configuring
> exim.
>
> Reason for rewriting From: header inside email with MAIL FROM: is anti
> mail sender spoof. MAIL FROM: gets verified in smtp session, from: header
> does not. Gmail does such rewriting. Other servers do not and you can
> send email using their service while signing as any sender. I realize
> that such rewrite is not with accordance with rfc-s but many things can't
> be those time when fighting abusers.

This is something that you can (and perhaps should, depending on your
circumstances) do when the email is a submission email (that it, you know
that the sender address is not spoofed). We do that for local and
authenticated submissions, but allow individuals to opt out.

There's no point doing it for untrusted email (arriving from another site).
You have no more reason to trust the sender address than the "From:"
header. If you do think there's a problem with the "From:" header, then
rejecting the mail may be the best thing to do.

Implementation details: use headers_remove and headers_add, but only after
you've determined that the message really is from a local user.


--
Ian Eiloart
IT Services, University of Sussex
01273-873148 x3148
For new support requests, see http://www.sussex.ac.uk/its/help/

--
## 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/

exim users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.