1

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?

1 Answer 1

1

use the domain: operator:

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

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.

1

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .