Last active
July 6, 2023 10:11
-
-
Save fmatsos/a21416ce9b51a2b588cb8159311b15b4 to your computer and use it in GitHub Desktop.
Sieve mail redirection
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require ["fileinto", "envelope"]; | |
if address :is :domain "to" "subdomain.domain1.fr" { | |
redirect "email@domain1.fr"; | |
discard; | |
} | |
elsif address :is :domain "to" "subdomain.domain2.com" { | |
redirect "email@domain2.com"; | |
discard; | |
} | |
else { | |
redirect "email@domain1.fr"; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment