mirror of
https://github.com/roles-ansible/ansible_role_exim4.git
synced 2024-08-16 10:09:49 +02:00
Ansible role to configure exim4 to send mails via smarthost
.github | ||
defaults | ||
handlers | ||
tasks | ||
templates | ||
vars | ||
.yamllint | ||
LICENSE | ||
README.md |
ansible_role_exim4
Ansible role to configure exim4. By default you can tell exim4 that it will send mail via smarthost.
To do this you have at leaset set the smarthost FQDN in the variable: exim4__dc_smarthost:
.
Example Playbook:
- name: run exim4 role
hosts: localhost
roles:
- {role: dansible_role_exim, tags: exim4}
vars:
exim4__dc_smarthost: mx01.example.com
Test if it is working
To test if your exim4 configuration is working, maybe this will help:
mail': echo "This is a test" | mailx -s "Test Message" -v you@example.com
Testing
This role is tested with these github-action tests for different versions of differen linux systems. Linting is tested via travis-ci and the ansible-lint action. If you want to find out more about our tests, please have a look at the github marketplace.