{% set postfix = salt['grains.filter_by']({ 'Debian': { 'packages': ['postfix'], 'postgrey_pkg': 'postgrey', 'service': 'postfix', 'aliases': '/etc/aliases', }, 'Gentoo': { 'packages': ['mail-mta/postfix'], 'postgrey_pkg': 'mail-filter/postgrey', 'service': 'postfix', 'aliases': '/etc/mail/aliases', }, 'RedHat': { 'packages': ['postfix'], 'postgrey_pkg': 'postgrey', 'service': 'postfix', 'aliases': '/etc/aliases', }, 'Arch' : { 'packages': ['postfix'], 'postgrey_pkg': 'postgrey', 'service': 'postfix', 'aliases': '/etc/aliases', }, }, merge=salt['pillar.get']('postfix:lookup')) %}