On Thursday, April 26, 2012 at 18:56:18 UTC, [email protected] 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.


-- 
## List details at https://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/

Reply via email to