Git Product home page Git Product logo

ansible-role-exim4-sendonly's Introduction

Ansible Role: exim4 (send only)

Build Status

Installs exim4 (send only) and handles email addresses on Debian/Ubuntu linux servers.

Requirements

None

Dependencies

None.

Installation

$ ansible-galaxy install tschifftner.exim4_sendonly

Example Playbook

Available variables are listed below, along with default values (see defaults/main.yml):

 exim4_sendonly_email_addresses:
   root: '[email protected]'

The playbook could look like:

- hosts: webservers

  roles:
     - { role: tschifftner.exim4_sendonly }

Use Smart Proxy

exim4_sendonly_enable_tls: true
exim4_sendonly_smarthost: ''
exim4_sendonly_username: ''
exim4_sendonly_password: ''

Use as standalone email sender

Set reverse dns for ipv6

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!

Set SPF records

TXT Record for Domain

v=spf1 a mx -all
v=spf1 a mx a:{{ ansible_fqdn }} -all

Exim commands

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

Test email sending

echo "This is a testmail." | mail -s "Testmail" root
echo "This is a testmail." | mail -s "Testmail" [email protected]

Supported OS

  • Debian 9 (Stretch)
  • Debian 8 (Jessie)
  • Ubuntu 18.04 (Bionic Beaver)
  • Ubuntu 16.04 (Xenial Xerus)

Required ansible version

Ansible 2.5+

License

MIT License

Author Information

ansible-role-exim4-sendonly's People

Contributors

astik avatar julienpalard avatar mrtango avatar phill93 avatar tschifftner avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.