warn set acl_c_user = $authenticated_id
hosts = +thishost
!authenticated = *
+ condition = ${if def:sender_ident}
set acl_c_user = $sender_ident
- ## User must be authenticated.
+ ## User must be authenticated by now.
deny message = Sender not authenticated
- !hosts = +thishost
- !authenticated = *
+ condition = ${if !def:acl_c_user}
## Make sure that the local part is one that the authenticated sender
## is allowed to claim.