Skip to content

Instantly share code, notes, and snippets.

@johannesvogel
Last active February 3, 2019 06:19
Show Gist options
  • Save johannesvogel/e54eba568511b5e8765685ad690c5a6f to your computer and use it in GitHub Desktop.
Save johannesvogel/e54eba568511b5e8765685ad690c5a6f to your computer and use it in GitHub Desktop.
Uberspace 7: Forward emails sent to specific domains
# set Maildir
MAILDIR = "$HOME/Maildir"
# forward all emails sent to "@mydomain.de"
# to "myemailaddress@outlook.com"
if (/^To:.*@mydomain\.de/:h)
{
to "!myemailaddress@outlook.com"
exit
}
# deliver emails sent to other domains
to "$MAILDIR"
# all emails send to info@ will be handled by maildrop
|maildrop
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment