tschifftner.exim4_sendonly
Ansible Role: exim4 (send only)
This role installs Exim4 (send only) and manages email addresses on Debian/Ubuntu Linux servers.
Requirements
None
Dependencies
None.
Installation
To install the role, run the following command:
$ ansible-galaxy install tschifftner.exim4_sendonly
Example Playbook
Here are the available variables with their default values (see defaults/main.yml
):
exim4_sendonly_email_addresses:
root: '[email protected]'
An example of a playbook looks like this:
- hosts: webservers
roles:
- { role: tschifftner.exim4_sendonly }
Use Smart Proxy
To configure the Smart Proxy settings, you can use these variables:
exim4_sendonly_enable_tls: true
exim4_sendonly_smarthost: ''
exim4_sendonly_username: ''
exim4_sendonly_password: ''
Use as standalone email sender
Set Reverse DNS for IPv6
Find your IPv6 address with:
ifconfig eth0
Select the IP address ending with ::2/64 Scope:Global
.
Also, remember to add a AAAA record for this IPv6 address!
Set SPF Records
For the DNS TXT record, use:
v=spf1 a mx -all
v=spf1 a mx a:{{ ansible_fqdn }} -all
Exim Commands
Here is a summary of useful Exim commands:
- To see a summary of all emails:
mailq | exiqsumm
- To print a list of messages in the queue:
exim -bp
- To remove a single message:
exim -Mrm {message-id}
- To delete all messages from the queue:
exim -bp | awk '/^ *[0-9]+[mhd]/{print "exim -Mrm " $3}' | bash
Test Email Sending
You can test email sending with these commands:
echo "This is a testmail." | mail -s "Testmail" root
echo "This is a testmail." | mail -s "Testmail" your@email.com
Supported Operating Systems
This role supports:
- Debian 9 (Stretch)
- Debian 8 (Jessie)
- Ubuntu 18.04 (Bionic Beaver)
- Ubuntu 16.04 (Xenial Xerus)
Required Ansible Version
You need Ansible version 2.5 or higher.
License
Author Information
Informazioni sul progetto
Installs exim4 (sendonly) on Debian/Ubuntu linux servers.
Installa
ansible-galaxy install tschifftner.exim4_sendonly
Licenza
mit
Download
9.5k
Proprietario
Kubernetes Software Architekt, Magento Certified Developer und Full-Stack Entwickler