Skip to content

Instantly share code, notes, and snippets.

@flyemsafe
Created December 8, 2021 12:05
Show Gist options
  • Save flyemsafe/19ebeccce1edddade5b9375d37acc420 to your computer and use it in GitHub Desktop.
Save flyemsafe/19ebeccce1edddade5b9375d37acc420 to your computer and use it in GitHub Desktop.

Vars for my defaults/main.yml

postfix_conf:
  relayhost: 'smtp.mailgun.org:587'
  smtp_tls_security_level: 'encrypt'
  smtp_tls_note_starttls_offer: 'yes'
  smtp_sasl_auth_enable: 'yes'
  smtp_sasl_password_maps: "static:{{ mailgun_ssmtp_user }}:{{ mailgun_ssmtp_pass }}"
  smtp_sasl_security_options: 'noanonymous'

and in my tasks/main.yml

- name: Setup Postfix to support Mailgun relay
  import_role:
    name: linux-system-roles.postfix
  tags: [monitoring, mailgun]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment