diff --git a/postfix/conf/sqlite-virtual_alias_maps.cf b/postfix/conf/sqlite-virtual_alias_maps.cf index 8047e826..8accf7c5 100644 --- a/postfix/conf/sqlite-virtual_alias_maps.cf +++ b/postfix/conf/sqlite-virtual_alias_maps.cf @@ -13,5 +13,6 @@ query = '%s' LIKE alias.email ) ORDER BY - alias.wildcard ASC + alias.wildcard ASC, + length(alias.localpart) DESC LIMIT 1