Role Detail

geerlingguy.mailhog

MailHog for Linux
Downloads
62549
Type Ansible
Minimum Ansible Version 1.8
Installation $ ansible-galaxy install geerlingguy.mailhog
Tags
development
mail
system
web
Last Commit 2017-04-02 16:45:04 PM UTC
Last Imported 2017-04-02 17:03:05 PM UTC
Version History
Version Release Date
2.1.3 2017-04-02 16:45:04 PM
2.1.2 2017-04-02 16:26:04 PM
2.1.1 2016-11-09 14:52:02 PM
2.1.0 2016-11-02 20:08:08 PM
2.0.0 2016-07-03 21:26:09 PM
1.1.0 2016-04-28 11:54:11 AM
1.0.6 2016-02-14 21:48:09 PM
1.0.5 2016-02-12 04:45:04 AM
1.0.4 2016-02-12 04:08:04 AM
1.0.3 2015-09-14 19:48:07 PM
1.0.2 2015-08-16 02:54:02 AM
1.0.1 2015-05-01 15:02:03 PM
1.0.0 2014-12-17 15:54:03 PM
Supported Platforms
Platform Version
Debian etch
Debian jessie
Debian lenny
Debian sid
Debian squeeze
Debian stretch
Debian wheezy
EL 5
EL 6
EL 7
Ubuntu lucid
Ubuntu maverick
Ubuntu natty
Ubuntu oneiric
Ubuntu precise
Ubuntu quantal
Ubuntu raring
Ubuntu saucy
Ubuntu trusty
Ubuntu utopic
Ubuntu vivid
Ubuntu wily
Ubuntu xenial
Ubuntu yakkety
Dependencies
Role
Last 10 Imports
Completed Status
2017-04-02 17:03:05 PM UTC SUCCESS
2017-04-02 17:01:05 PM UTC SUCCESS
2017-04-02 16:47:04 PM UTC SUCCESS
2017-04-02 16:46:04 PM UTC SUCCESS
2017-04-02 16:43:04 PM UTC SUCCESS
2017-04-02 16:41:04 PM UTC SUCCESS
2017-04-02 05:28:05 AM UTC SUCCESS
2017-03-21 22:28:10 PM UTC SUCCESS
2017-01-22 03:15:03 AM UTC SUCCESS
2016-11-23 15:50:03 PM UTC SUCCESS

Ansible Role: MailHog

Build Status

Installs MailHog, a Go-based SMTP server and web UI/API for displaying captured emails, on RedHat or Debian-based linux systems.

Also installs mhsendmail so you can redirect system mail to MailHog's built-in SMTP server.

If you're using PHP and would like to route all PHP email into MailHog, you will need to update the sendmail_path configuration option in php.ini, like so:

sendmail_path = "{{ mailhog_install_dir }}/mhsendmail"

(Replace {{ mailhog_install_dir }} with the actual MailHog installation directory, which is /opt/mailhog by default—e.g. /opt/mailhog/mhsendmail).

Requirements

None.

Role Variables

Available variables are listed below, along with default values (see defaults/main.yml):

mailhog_install_dir: /opt/mailhog

The directory into which the MailHog binary will be installed.

mailhog_binary_url: https://github.com/mailhog/MailHog/releases/download/v0.2.1/MailHog_linux_amd64

The MailHog binary that will be installed. You can find the latest version or a 32-bit version by visiting the MailHog project releases page.

mailhog_daemonize_bin_path: /usr/sbin/daemonize

The path to daemonize, which is used to launch MailHog via init script.

mhsendmail_binary_url: https://github.com/mailhog/mhsendmail/releases/download/v0.2.0/mhsendmail_linux_amd64

The mhsendmail binary that will be installed. You can find the latest version or a 32-bit version by visiting the mhsendmail project releases page.

Dependencies

  • geerlingguy.daemonize

Example Playbook

- hosts: servers
  roles:
    - { role: geerlingguy.mailhog }

License

MIT / BSD

Author Information

This role was created in 2014 by Jeff Geerling, author of Ansible for DevOps.

None