user = <%= scope.lookupvar('mail::virtual::database_user') %> password = <%= scope.lookupvar('mail::virtual::database_password') %> hosts = <%= scope.lookupvar('mail::virtual::database_host') %> dbname = <%= scope.lookupvar('mail::virtual::database_name') %> query = SELECT maildir FROM mailbox,alias_domain WHERE alias_domain.alias_domain = '%d' and mailbox.username = CONCAT('%u', '@', alias_domain.target_domain) AND mailbox.active = 1 AND alias_domain.active='1'