Review options to intercept email sent by applications and centralise the templating
Idea:
Intercept Emails in Postfix if coming from an app Generate the right template
Possible Solutions:
There are 2 ways to filter emails in Postfix.
- Milter
- Content Filtering
With Milter email are filtered before being sent to the queue With Content Filtering email are filtered after being sent to the queue
Milter is more ressource intensive and makes more sense if emails needs to be thrown away (exemple flag as spam, virus etc.). Content filtering seems to make more sense in our case
How could we filter emails ?
Email could be filtered on subject => We need to know every subjects and act accordingly
Email could be filtered on sender address => name all sender with noreply prefix => change the noreply prefix as it seems to cause issue with deliverability => still need to know which template should be executed ? so we probable need to know the subject
Limit:
If we want to completely customize the emails with a unique template, we need to be able to know the variable such as the username, full name, etc.