no way to compare when less than two revisions
Differences
This shows you the differences between two versions of the page.
— | postfix_virtual_mail_addresses_with_regular_expressions [20.01.2019 11:34] (current) – created Pascal Suter | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== Postfix: virtual mail addresses with regular expressions ====== | ||
+ | in the early days if you needed to have lots of email adresses all forwarded to the same target address and you did not want to bother to create each and every address specifically in your virtual_address_map you would simply create a catch-all address and you where good to go. however, with all the spaming happening today, we need another solution. | ||
+ | |||
+ | let's say you have a ticketing system that creates a " | ||
+ | |||
+ | this can be done with the [[http:// | ||
+ | |||
+ | now create a new file in ''/ | ||
+ | / | ||
+ | |||
+ | to test if your regex works as you expected, you can now use the '' | ||
+ | postmap -q support-ticket-bla@mydomain.com regexp:/ | ||
+ | should now return your '' | ||
+ | |||
+ | if that is so, run postmap to update the database and reload postfix | ||
+ | postmap / | ||
+ | postfix reload | ||
+ | |||
+ | |||