currently my acl check_mail part looks like this:
deny
message = The sender name must be the same as the login id
condition = ${if eq{$sender_address}{$authenticated_id}{no}{yes}}
However I would like to verify the domain only.
How do I strip that part out of the variables?
use the
domain:
operator:In case it's not clear, after adding
domain:
the variable$sender_address
becomes${domain:$sender_address}
. The only real problem is that if the variable wasn't in the form of an email to begin with, it will expand to an empty string.