hi all! i am using virtual_alias_maps for a simple 'mainlinglist' configuration, i.e. lookup a list adress and get the expanded (local) recipients.
the lookup is based on mysql: SELECT recipients FROM forwardings WHERE listadress='%s' is there any way to restrict this expansion s.t. it only occurs for a speficic sender domain. for example, i would love to do something like that SELECT recipients FROM forwardings WHERE listadress='%s' AND sender = '%INTERNAL_VARIABLE' where INTERNAL_VARIABLE contains the domain of the sender. i want to restrict this s.t. a virtual_alias_maps expansion occurs _only_ if the sender belongs to a certain domain (and has used SMTP auth)... i know, all lookups are key/value lookups, and for virtual_alias_maps the key is the recipient adress, but is there _any_ way to access internal state variables like the sender adress/ sender domain? i am aware that there are distinct solutions like majordomo and mailman for such problems, but i would love to stick with postfix here, if possible. thx in advance! harri / austria