Implement keeping or dropping forwarded messages in postfix

master
kaiyou 7 years ago
parent 2b3b1aeb19
commit c834d34bae

@ -4,7 +4,7 @@ query =
FROM FROM
(SELECT destination, email, wildcard, localpart FROM alias (SELECT destination, email, wildcard, localpart FROM alias
UNION UNION
SELECT email||(CASE WHEN forward_enabled=1 THEN ','||forward_destination ELSE '' END) AS destination, email, 0 as wildcard, localpart FROM user) SELECT (CASE WHEN forward_enabled=1 THEN (CASE WHEN forward_keep=1 THEN email||',' ELSE '')||forward_destination ELSE email END) AS destination, email, 0 as wildcard, localpart FROM user)
WHERE WHERE
( (
wildcard = 0 wildcard = 0

Loading…
Cancel
Save