Re: [exim] FAKE SENDERS

Page principale
Supprimer ce message
Répondre à ce message
Auteur: Mike Cardwell
Date:  
À: exim-users
Sujet: Re: [exim] FAKE SENDERS
On 02/08/2010 15:39, Pol Padrisa wrote:

> How can we prevent users to rewrite the From: part of the message during
> the DATA transaction in exim?


First of all, you should realise that there is absolutely nothing
invalid about the From header being different to the sender envelope.
After reading your email to the list I viewed the raw source of it and
what did I find?

The sender envelope:

exim-users-bounces+lists.grepular.com@???

The email address in the From header:

pol@???

However, if you really do want to force the sender envelope and the from
header to have the same address I'd stick this in the acl_smtp_data acl:

deny condition = ${if !eq{$sender_address}{${address:$h_From:}}}

Don't expect to continue receiving email from this list though, or
anywhere that does SRS, or large numbers of other places. Also, remember
to account for null senders.

-- 
Mike Cardwell - Perl/Java/Web developer, Linux admin, Email admin
Read my tech Blog -              https://secure.grepular.com/
Follow me on Twitter -           http://twitter.com/mickeyc
Hire me - http://cardwellit.com/ http://uk.linkedin.com/in/mikecardwell