Giter Club home page Giter Club logo

ansible-role-postfix-null-client's Introduction

Ansible Role: postfix-null-client

Build Status Ansible Role

This role installs postfix on a null client. Supported on EL6 and EL7.

Requirements

None.

Role Variables

Note, the only variable you should change is the relayhost. The other variables are part of the null client configuration.

Set the myhostname to the FQDN of the machine:

postfix_myhostname: "{{ ansible_fqdn }}"

mydomain is used as a default for the relayhost even though it is not explicitly part of the null client configuration:

postfix_mydomain: "{{ ansible_domain }}"

Locally sent mail will appear to come from this domain. If there are many machines on the network configured as null clients, setting this to $myhostname could help identify the source of the mail. This could also be set to $mydomain so that mail doesn't inadvertently get sent to this null client machine:

postfix_myorigin: "$myhostname"

Forward all messages to this mail server. Square brackets around the hostname will prevent MX record lookups:

postfix_relayhost: "$mydomain"

Listen only on the loopback interface and do not accept mail from the network:

postfix_inet_interfaces: "loopback-only"

Disable local delivery altogether:

postfix_local_transport: "error: local delivery disabled"

Only accept mail from localhost:

postfix_mynetworks: "127.0.0.0/8 [::1]/128"

List of trusted networks for relay access. host tells Postfix to only trust the local machine. This has the same effect as the postfix_mynetworks setting above, but better to be explicit:

postfix_mynetworks_style: host

Dependencies

None.

Example Playbook

- hosts: servers
  vars:
    postfix_relayhost: "relay01.example.com"
  roles:
     - giovtorres.postfix-null-client

License

BSD

ansible-role-postfix-null-client's People

Contributors

giovtorres avatar

Watchers

 avatar  avatar  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.