diff --git a/README.rst b/README.rst index b8e12c8..b1f8e41 100644 --- a/README.rst +++ b/README.rst @@ -44,3 +44,9 @@ Installs postfix mysql package ( Debian only) ------------------ Installs postfix pcre package ( Debian only) + + +``postfix.postsrsd`` +------------------ + +Installs postfix postsrsd package diff --git a/pillar.example b/pillar.example index 5214ac7..d83b61c 100644 --- a/pillar.example +++ b/pillar.example @@ -28,6 +28,12 @@ postfix: recipient_delimiter: + inet_interfaces: all + #postsrsd: + sender_canonical_maps: tcp:127.0.0.1:10001 + sender_canonical_classes: envelope_sender + recipient_canonical_maps: tcp:127.0.0.1:10002 + recipient_canonical_classes: envelope_recipient + # Alias alias_maps: hash:/etc/aliases alias_database: hash:/etc/aliases diff --git a/postfix/map.jinja b/postfix/map.jinja index 3bf3439..dc1df91 100644 --- a/postfix/map.jinja +++ b/postfix/map.jinja @@ -2,6 +2,7 @@ 'Debian': { 'package': 'postfix', 'policyd_spf_pkg': 'postfix-policyd-spf-python', + 'postsrsd_pkg': 'postsrsd', 'postgrey_pkg': 'postgrey', 'pcre_pkg': 'postfix-pcre', 'mysql_pkg': 'postfix-mysql', @@ -11,6 +12,7 @@ 'Gentoo': { 'package': 'mail-mta/postfix', 'policyd_spf_pkg': 'mail-filter/pypolicyd-spf', + 'postsrsd_pkg': 'mail-filter/postsrsd', 'postgrey_pkg': 'mail-filter/postgrey', 'service': 'postfix', 'aliases_file': '/etc/mail/aliases', @@ -18,6 +20,7 @@ 'RedHat': { 'package': 'postfix', 'policyd_spf_pkg': 'pypolicyd-spf', + 'postsrsd_pkg': 'postsrsd', 'postgrey_pkg': 'postgrey', 'service': 'postfix', 'aliases_file': '/etc/aliases', @@ -25,6 +28,7 @@ 'Arch' : { 'package': 'postfix', 'policyd_spf_pkg': 'python-postfix-policyd-spf', + 'postsrsd_pkg': 'postsrsd', 'postgrey_pkg': 'postgrey', 'service': 'postfix', 'aliases_file': '/etc/aliases', diff --git a/postfix/postsrsd.sls b/postfix/postsrsd.sls new file mode 100644 index 0000000..fad703d --- /dev/null +++ b/postfix/postsrsd.sls @@ -0,0 +1,6 @@ +{% from "postfix/map.jinja" import postfix with context %} + +postsrsd: + pkg.latest: + - name: {{ postfix.postsrsd_pkg }} +