- You don't need to make any changes to the application between production and testing.
- You can see the message content exactly as it would ordinarily have been delivered.
Create the regular expression map. Maps are how Postfix handles all rewriting; a match for the input address is looked for in the left hand [key] column and rewritten in the form specified by the right hand [value] column.
echo "/(.)/ email@example.com" > /etc/postfix/generic.regexpStep#2
Text 1: Create the new regular expression map.
Configure Postfix to use the new map for generic address rewriting.
postconf -e smtp_generic_maps=regexp:/etc/postfix/generic.regexp
Text 2: Enable generic rewriting using the regular expression map.
Tell Postfix to reload its configuration.
Text 3: Signal the running Postfix service to reload its configuration.
Now any mail, to any address, sent via the hosts' Postfix service, will be driven not to the original address but to the shared "myfolder" folder.