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 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 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/ $1@localhost.localdomain | |
# Exceptions for defined addresses | |
/admin@example\.com/ admin@example.com | |
# redirect all other messages to collect@example.com | |
/.+@.+/ collect@example.com |
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.