Re: [exim] help with sender login mismatch

Top Page

Reply to this message
Author: Duane Hill
Date:  
To: exim-users
Subject: Re: [exim] help with sender login mismatch
On Thursday, April 26, 2012 at 18:56:18 UTC, prueba@??? confabulated:

> Hello guys i am having this issue with exim i am trying to set a rule
> like this one in postfix
> reject_sender_login_mismatch that allows to reject the mismatch between
> the user used in the login and the header part "FROM:" can some cast any
> light over this. thank


This works for me:

...
acl_smtp_mail = acl_check_mail
...
acl_check_mail:
...
  # smtp mail [4-3]: Deny the authenticated sender if the authenticated id
  #                  does not match the sender address.
  #
  deny    authenticated = *
          condition     = ${if eq{$authenticated_id}{$sender_address}{no}{yes}}
          message       = Your authenticating ID must match your sending address.
          log_message   = 4-3: Authenticated ID ($authenticated_id) does not \
                          match the sending address ($sender_address).
...


--
If at first you don't succeed...
...so much for skydiving.