mailpit role for Proserver
- Debian 12, 13
- Ubuntu 24.04, 22.04
- FreeBSD Proserver
| Option | Description | Type | Required | Default |
|---|---|---|---|---|
domain |
The domain name for the Mailpit UI. If not set, defaults to the server's FQDN or IP. | str | no | |
dehydrated |
dict of 'dehydrated' options | no | ||
nginx |
Nginx configuration for Mailpit. | dict of 'nginx' options | no | |
bind_addr |
The IP address Mailpit should bind for the UI and SMTP. | str | no | 127.0.0.1 |
smtp_port |
The port Mailpit should listen on for SMTP traffic. | int | no | 1025 |
ui_port |
The port Mailpit should listen on for the Web UI. | int | no | 8025 |
oauth2_proxy |
Name of the oauth2_proxy instance to use for authentication (optional). | str | no | |
install_dir |
Directory where Mailpit will be installed (Linux only) | str | no | /opt/mailpit |
version |
The version of Mailpit to install (Linux only). Automatically updated by Renovate bot. | str | no | {{ mailpit.version }} |
download_url |
Download URL for the Mailpit binary. Generally auto-constructed. | str | no | https://github.com/axllent/mailpit/releases/download/v{{ mailpit.version }}/mailpit-{{ ansible_facts['system'] |
db_path |
Path for the mailpit sqlite-database | str | no | {{ '/var/lib/mailpit/mailpit.db' if ansible_facts['system'] == 'Linux' else '/var/db/mailpit/mailpit.db' }} |
| Option | Description | Type | Required | Default |
|---|---|---|---|---|
enable |
Whether to use dehydrated for Let's Encrypt SSL certificates. | bool | no | True |
| Option | Description | Type | Required | Default |
|---|---|---|---|---|
enable |
Whether to configure Nginx as a reverse proxy for Mailpit. | bool | no | True |
bind_addr |
List of IP addresses Nginx should listen on. | list of 'str' | no | ['127.0.0.1', '[::1]'] |
- nginx
- Condition:
mailpit.nginx.enable
- Condition:
- oauth2_proxy
- Condition:
mailpit.oauth2_proxy is defined and mailpit.oauth2_proxy is not none and (mailpit.oauth2_proxy | length) > 0
- Condition:
- dehydrated
- Condition:
mailpit.dehydrated.enable
- Condition:
Add this role to the requirements.yml of your playbook as follows:
roles:
- name: mailpit
src: https://github.com/punktDe/ansible-proserver-mailpitAfterwards, install the role by running ansible-galaxy install -r requirements.yml
- hosts: all
roles:
- name: mailpit