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:
.
- name: run exim4 role
hosts: localhost
roles:
- {role: dansible_role_exim, tags: exim4}
vars:
exim4__dc_smarthost: mx01.example.com
To test if your exim4 configuration is working, maybe this will help:
mail': echo "This is a test" | mailx -s "Test Message" -v [email protected]
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.