Skip to content

Instantly share code, notes, and snippets.

@fmatsos
Last active July 6, 2023 10:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fmatsos/a21416ce9b51a2b588cb8159311b15b4 to your computer and use it in GitHub Desktop.
Save fmatsos/a21416ce9b51a2b588cb8159311b15b4 to your computer and use it in GitHub Desktop.
Sieve mail redirection
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