I have a question. Is it possible to configure postfix aliases to retrieve them from an external script?
alias_maps = /path/to/pythons_script.py
or
alias_maps = /path/to/script.sh
EDIT (based on autor's comments):
Aliases should be sender dependent.