Giter VIP home page Giter VIP logo

ansible-role-postfix's Introduction

Ansible Role: Postfix

CI

Installs postfix on RedHat/CentOS or Debian/Ubuntu.

Requirements

If you're using this as an SMTP relay server, you will need to do that on your own, and open TCP port 25 in your server firewall.

Role Variables

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

postfix_config_file: /etc/postfix/main.cf

The path to the Postfix main.cf configuration file.

postfix_service_state: started
postfix_service_enabled: true

The state in which the Postfix service should be after this role runs, and whether to enable the service on startup.

postfix_inet_interfaces: localhost
postfix_inet_protocols: all

Options for values inet_interfaces and inet_protocols in the main.cf file.

Dependencies

None.

Example Playbook

- hosts: all
  roles:
    - geerlingguy.postfix

License

MIT / BSD

Author Information

This role was created in 2014 by Jeff Geerling, author of Ansible for DevOps.

ansible-role-postfix's People

Contributors

geerlingguy avatar sjugge avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ansible-role-postfix's Issues

Need a systemd reload

When postfix is installed a systemctl daemon-reload is required to start the service.

main.cf needs extra settings to prevent emails being flagged insecure

Gmail flags emails from postfix as 'sent insecurely.' On a production site, clients may object to this.

The fix is to add lines to /etc/postfix/main.cf (path in Debian):
smtpd_tls_security_level = may
smtp_tls_security_level = may
smtp_tls_loglevel = 1
smtpd_tls_loglevel = 1

I found the fix at http://blog.snapdragon.cc/2013/07/07/setting-postfix-to-encrypt-all-traffic-when-talking-to-other-mailservers/, have tested it, and use it in production. It would be useful if this ansible role updates main.cf accordingly.

EDIT- Not tested on current version of postfix on Debian Stretch, where this role anyway bails out because a default apt-get install postfix no longer creates a main.cnf--if you want one it must be made manually.

How to update the default size using this ansible role?

user@localhost:~# telnet localhost 25
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
220 fqdn ESMTP Postfix (Ubuntu)

ehlo hello

250-fqdn
250-PIPELINING
250-SIZE 10240000
250-VRFY
250-ETRN
250-STARTTLS
250-ENHANCEDSTATUSCODES
250-8BITMIME
250 DSN

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.