Created
January 26, 2015 16:29
-
-
Save jrenggli/db14e26512560c266ead to your computer and use it in GitHub Desktop.
mail configuration for development systems: redirect all mails to a distinct mailbox. (Prevent mails being sent to actual recipients)
This file contains hidden or 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
# File: /etc/postfix/main.cf | |
... | |
virtual_alias_maps = regexp:/etc/postfix/virtual | |
... |
This file contains hidden or 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
# File: /etc/postfix/virtual | |
# Exceptions for localhost | |
/(.+)@localhost/ $1@localhost | |
/(.+)@localhost\.localdomain/ [email protected] | |
# Exceptions for defined addresses | |
/admin@example\.com/ [email protected] | |
# redirect all other messages to [email protected] | |
/.+@.+/ [email protected] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
For dockerflow project we are using, we integrated mailhog container and things get so easy - except that it run for our Neos and Flow.