Merge pull request #52 from davidkarlsen/postsrsd

add support for postsrsd
This commit is contained in:
Javier Bértoli 2017-01-27 11:59:26 -03:00 committed by GitHub
commit bfd8c78cc3
4 changed files with 22 additions and 0 deletions

View File

@ -44,3 +44,9 @@ Installs postfix mysql package ( Debian only)
------------------ ------------------
Installs postfix pcre package ( Debian only) Installs postfix pcre package ( Debian only)
``postfix.postsrsd``
------------------
Installs postfix postsrsd package

View File

@ -28,6 +28,12 @@ postfix:
recipient_delimiter: + recipient_delimiter: +
inet_interfaces: all 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
alias_maps: hash:/etc/aliases alias_maps: hash:/etc/aliases
alias_database: hash:/etc/aliases alias_database: hash:/etc/aliases

View File

@ -2,6 +2,7 @@
'Debian': { 'Debian': {
'package': 'postfix', 'package': 'postfix',
'policyd_spf_pkg': 'postfix-policyd-spf-python', 'policyd_spf_pkg': 'postfix-policyd-spf-python',
'postsrsd_pkg': 'postsrsd',
'postgrey_pkg': 'postgrey', 'postgrey_pkg': 'postgrey',
'pcre_pkg': 'postfix-pcre', 'pcre_pkg': 'postfix-pcre',
'mysql_pkg': 'postfix-mysql', 'mysql_pkg': 'postfix-mysql',
@ -11,6 +12,7 @@
'Gentoo': { 'Gentoo': {
'package': 'mail-mta/postfix', 'package': 'mail-mta/postfix',
'policyd_spf_pkg': 'mail-filter/pypolicyd-spf', 'policyd_spf_pkg': 'mail-filter/pypolicyd-spf',
'postsrsd_pkg': 'mail-filter/postsrsd',
'postgrey_pkg': 'mail-filter/postgrey', 'postgrey_pkg': 'mail-filter/postgrey',
'service': 'postfix', 'service': 'postfix',
'aliases_file': '/etc/mail/aliases', 'aliases_file': '/etc/mail/aliases',
@ -18,6 +20,7 @@
'RedHat': { 'RedHat': {
'package': 'postfix', 'package': 'postfix',
'policyd_spf_pkg': 'pypolicyd-spf', 'policyd_spf_pkg': 'pypolicyd-spf',
'postsrsd_pkg': 'postsrsd',
'postgrey_pkg': 'postgrey', 'postgrey_pkg': 'postgrey',
'service': 'postfix', 'service': 'postfix',
'aliases_file': '/etc/aliases', 'aliases_file': '/etc/aliases',
@ -25,6 +28,7 @@
'Arch' : { 'Arch' : {
'package': 'postfix', 'package': 'postfix',
'policyd_spf_pkg': 'python-postfix-policyd-spf', 'policyd_spf_pkg': 'python-postfix-policyd-spf',
'postsrsd_pkg': 'postsrsd',
'postgrey_pkg': 'postgrey', 'postgrey_pkg': 'postgrey',
'service': 'postfix', 'service': 'postfix',
'aliases_file': '/etc/aliases', 'aliases_file': '/etc/aliases',

6
postfix/postsrsd.sls Normal file
View File

@ -0,0 +1,6 @@
{% from "postfix/map.jinja" import postfix with context %}
postsrsd:
pkg.latest:
- name: {{ postfix.postsrsd_pkg }}