Installs exim4 (send only) and handles email addresses on Debian/Ubuntu linux servers.
None
None.
$ ansible-galaxy install tschifftner.exim4-sendonly
Available variables are listed below, along with default values (see defaults/main.yml
):
exim4_sendonly_hostname: '{{ ansible_hostname }}'
exim4_sendonly_email_addresses:
root: '[email protected]'
The playbook could look like:
- hosts: webservers
roles:
- { role: tschifftner.exim4-sendonly }
exim4_sendonly_enable_tls: true
exim4_sendonly_smarthost: ''
exim4_sendonly_username: ''
exim4_sendonly_password: ''
Figure out your ipv6 address
ifconfig eth0
Use the ip addresses that ends with ::2/64 Scope:Global
Also add AAAA Record for this IPv6 address!
TXT Record for Domain
v=spf1 a mx -all
v=spf1 a mx a:{{ ansible_fqdn }} -all
Summary of all emails
mailq | exiqsumm
Print a list of messages in the queue
exim -bp
Remove single message
exim -Mrm {message-id}
Delete all messages from queue
exim -bp | awk '/^ *[0-9]+[mhd]/{print "exim -Mrm " $3}' | bash
echo "This is a testmail." | mail -s "Testmail" root
echo "This is a testmail." | mail -s "Testmail" [email protected]
Ansible | Debian Jessie | Ubuntu 14.04 | Ubuntu 12.04 |
---|---|---|---|
2.1 | Yes | Yes | Yes |