Warning
This role is no longer maintained, please use ansible-proserver-mailpit instead.
Mailhog role for Proserver
- FreeBSD Proserver
Configure MailHog with optional nginx reverse proxy, TLS via dehydrated, and oauth2_proxy for IAP.
| Option | Description | Type | Required | Default |
|---|---|---|---|---|
use_dehydrated |
Use dehydrated role for TLS certificates and HTTPS. | bool | no | True |
bind_addr |
Address MailHog SMTP/API/UI bind to. | str | no | 127.0.0.1 |
smtp_port |
SMTP port. | int | no | 1025 |
api_port |
API port. Omit or set to null to leave unset. | int | no | |
ui_port |
Web UI port. | int | no | 8025 |
domain |
Domain name for nginx server_name and TLS certificates. | str | no | |
nginx |
Nginx listener configuration. | dict of 'nginx' options | no | {} |
oauth2_proxy |
Key into oauth2_proxy.config to enable IAP for the MailHog UI. When set, the dehydrated and oauth2_proxy role dependencies are used. | str | no |
| Option | Description | Type | Required | Default |
|---|---|---|---|---|
bind_addr |
Addresses nginx listens on (e.g. ["::1"]). | list of 'str' | no | ['::1'] |
- nginx
- dehydrated
- Condition:
mailhog.use_dehydrated
- Condition:
- oauth2_proxy
- Condition:
(mailhog.oauth2_proxy is defined and mailhog.oauth2_proxy != None)
- Condition:
Add this role to the requirements.yml of your playbook as follows:
roles:
- name: ansible-proserver-mailhog
src: https://github.com/punktDe/ansible-proserver-mailhogAfterwards, install the role by running ansible-galaxy install -r requirements.yml
- hosts: all
roles:
- name: mailhog