Skip to content

Instantly share code, notes, and snippets.

Created January 21, 2016 13:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/793069593a3378a3b70a to your computer and use it in GitHub Desktop.
Save anonymous/793069593a3378a3b70a to your computer and use it in GitHub Desktop.
{% if salt['grains.get']('roles', 'mailserver') %}
add_relayhost:
file.append:
- name: /etc/postfix/main.cf
- text: |
relayhost = [mail.$mydomain]
- require:
- pkg: postfix
{% endif %}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment