Greetings

  I finally figured out the deny if $sender_address does not match
$authentication_id :

In the RCPT ACL :
# If the from address does not match the auth id then reject
  deny authenticated = *
          condition = ${if ! match
{$authenticated_id}{$sender_address}{yes}{no} }
          message = Sender address and authentication address do not match
          log_message = DENY : sender not equal authenticated_id

  Now if I could only figure out the "From:" header replacement...

Regards
Michael

On 12/07/07, Michael L Griffin <[EMAIL PROTECTED]> wrote:
> 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" <[EMAIL PROTECTED]>  "
> to
> "  Sender: "[EMAIL PROTECTED]"@exodus.creatronic.com  "
> where the [EMAIL PROTECTED] 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

-- 
## List details at http://www.exim.org/mailman/listinfo/exim-users 
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://www.exim.org/eximwiki/

Reply via email to