You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
mailu/postfix/conf/sqlite-virtual_alias_maps.cf

19 lines
293 B
CFEngine3

dbpath = /data/freeposte.db
query =
SELECT destination
FROM alias
WHERE
(
alias.wildcard = 0
AND
alias.email = '%s'
) OR (
alias.wildcard = 1
AND
'%s' LIKE alias.email
)
ORDER BY
alias.wildcard ASC,
length(alias.localpart) DESC
LIMIT 1