When matching an alias do no more match it against the value of field alias
in the aliases table, but match it against the concatenation of this value
with '@' and the value of the name field in the domains table, where the
row is obtained by matching aliases.alias_domain_id and domains.id.