I managed to create successfully a white-list sender email filter see: here.
My goal now is to have separate filter for each user. I would like to filter out all the emails based on the rules created send to the group email all@mydomain.com
, but I do not wish to limit the personal emails to user{(1-9)*}@mydomain.com
. The aliases file is setup as all: user1, user2, user3 ...
.
Is this user based mail filtering possible or should I try something more complex such as triggering a php script
on email reception see: here?
Update:
In the end, as there was no better way I followed the example here (and here), where I modified the bash file to execute my own filters. Still looking for a more elegant solution.