thx noel! you are absolutely right - the proper way is to create a 2 restriction classes.
thx again! On 12/09/2016 05:22 PM, Noel Jones wrote: > On 12/9/2016 9:11 AM, Harald Glanzer wrote: >> 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)... >> > > > It is possible to restrict internal lists to a specific sender using > restriction classes. Here's an example: > http://www.postfix.org/RESTRICTION_CLASS_README.html#internal > > > > > -- Noel Jones > -- DI Harald Glanzer Research Industrial Systems Engineering (RISE) Forschungs-, Entwicklungs- und Großprojektberatung GmbH Concorde Business Park F 2320 Schwechat Austria Email: harald.glan...@rise-world.com Web: www.rise-world.com Firmenbuch: FN 280353i Handelsgericht Korneuburg UID: ATU62886416