在exim中比较authenticated_id的hostname部分和sender_address

目前我的acl check_mail部分看起来像这样:

deny message = The sender name must be the same as the login id condition = ${if eq{$sender_address}{$authenticated_id}{no}{yes}} 

不过,我只想validation域名。
如何从variables中去除那部分?

使用domain:操作符:

 deny message = The sender name must be the same as the login id condition = ${if eq{${domain:$sender_address}}{${domain:$authenticated_id}}{no}{yes}} 

如果不清楚,在添加domain:variables$sender_address变为${domain:$sender_address} 。 唯一真正的问题是,如果variables不是以电子邮件的forms开始,它将扩展为空string。