Re: [exim] Change From: address

Páxina inicial
Borrar esta mensaxe
Responder a esta mensaxe
Autor: Michael L Griffin
Data:  
Para: exim-users
CC: bradley
Asunto: Re: [exim] Change From: address
Greetings

My thanx to John Robinson & Ted Cooper for their input.

  The suggestion my Ted was to add this rule to the rewrite section
but based on his suggestion I tried to use it in the ACL to generate a
deny but does not seem to have any effect :
 deny authenticated = *
#       condition = ${if !eq{$authenticated_id}{$sender_address}
{$authenticated_id}fail}
       condition = ${if !eq{$authenticated_id}{$sender_address}fail}
         message = Sender address and authentication address do not match
     log_message = DENY : sender not equal authenticated_id


I have no idea what I am doing wrong here, the joy of being a noob (c:}

John suggested I try "control = submission"
(http://exim.org/exim-html-current/doc/html/spec_html/ch44.html#SECTsubmodnon)
which seems to do what I want but not quite and again I have no idea
where to begin to fix it. It changes the
" From: "Michael L Griffin" <michael@???> "
to
" Sender: "info@??? "
where the info@??? is the $authenticated_id and the rest is the
host FQDN instead of what I am trying to achieve which is leaving the
GECO's ("Michael L Griffin") and changing only the $sender_address to
$authenticated_id

  I figured out the add_header stuff finally; here for anyone else who
may want it( added to my rcpt acl) :
  accept authenticated  = *
     add_header = X-AuthenticatedID: $authenticated_id
     add_header = X-OriginalFromAdr: $sender_address


I am seriously out of my depth with teh rest and would appreciate
any assistance.

Regards
Michael
On 12/07/07, John Robinson <john.robinson@???> wrote:
> On 11/07/2007 21:12, Michael L Griffin wrote:
> > What I am desperately trying to do is change the sender email address
> > (From: "Name" <email@addie>) to the $authenticated_id
> > which in my case is also the senders email address - I use localpart and
> > domain to form a unique username. I am wanting to implement this in
> > order to stop sender address spoofing.
>
> If you aren't already using submission mode, you probably want to look
> in to it:
> http://exim.org/exim-html-current/doc/html/spec_html/ch44.html#SECTsubmodnon
>
> Cheers,
>
> John.
>