Skip to content

linuskendall/mandrill-relay

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mandrill Relay

Uses postfix to relay all email on the host through Mandrill. Can be used to create a quick and secure nullmailer or a local mail system with local deliverability but which forwards outgoing e-mail via Mandrill.

Requirements

Requires an active mandrill account and should have an API key ready. Additionally for proper deliverability SPF and DKIM records should be setup correctly for the mandrill service on the domain used.

Tested on CentOS 6, Ubuntu 14.04 and Debian 7.

Role Variables

Required:

  • mandrill_relay_username = The username to use for mandrill relaying
  • mandrill_relay_apikey = The api key to use when relaying email for Mandrill (ideally use Ansible Vault).

Optional:

  • mandrill_relay_hostname = The hostname of this machine
  • mandrill_relay_myorigin = The origin to use when relaying email (default: $mydomain)
  • mandrill_relay_mynetworks = Networks to deliver mail for (defaults to loopback)
  • mandrill_relay_mydestinations = Networks that we deliver mail for locally (leave blank for a nullmailer)
  • mandrill_relay_if = The interface to listen for incoming mails on (default: loopback-only)
  • mandrill_relay_server = The server that is used from Mandrill app (smtp.mandrillapp.com is the default)
  • mandrill_relay_port = The port that is used from Mandrill app (587 is the default)
  • mandrill_relay_tls_key = Keyfile (defaults to snakeoil)
  • mandrill_relay_tls_cert = Certfile (defaults to snakeoil)

Example Playbook

- hosts: servers
  roles:
     - { role: mandrill_relay, mandrill_relay_username: mandrill@mandrillapp.com, mandrill_relay_apikey=APIKEY }

License

BSD

Author Information

Linus Kendall git@linuskendall.com

About

Ansible Role for relaying e-mails via Mandrill.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published