All Projects → petemcw → ansible-role-postfix

petemcw / ansible-role-postfix

Licence: MIT License
Ansible role for Postfix MTA

Projects that are alternatives of or similar to ansible-role-postfix

ControlCenter
Mirrored from GitLab! Monitoring and automation for Open Source email servers, starting with Postfix. Please do not submit issues or PRs here - join us at: https://gitlab.com/lightmeter
Stars: ✭ 88 (+166.67%)
Mutual labels:  postfix, mta
Free Email Forwarding
The best free email forwarding for custom domains. Visit our website to get started (SMTP server)
Stars: ✭ 2,024 (+6033.33%)
Mutual labels:  postfix, mta
ansible-role-docker-ce
Ansible role to install Docker CE on AlmaLinux/Rocky/CentOS/Fedora/RHEL(Redhat)/Ubuntu/Debian/Mint/Raspbian
Stars: ✭ 73 (+121.21%)
Mutual labels:  ansible-role
postfix
Development repository for the postfix cookbook
Stars: ✭ 102 (+209.09%)
Mutual labels:  postfix
postfix-docker-image
Postfix MTA Docker image
Stars: ✭ 20 (-39.39%)
Mutual labels:  postfix
docker-mail-server
Ansible playbooks to deploy a full featured mail server stack using Docker.
Stars: ✭ 47 (+42.42%)
Mutual labels:  postfix
postfix-relay
Postfix SMTP relay docker image
Stars: ✭ 76 (+130.3%)
Mutual labels:  postfix
subwayclock
Display clock for NYC subways
Stars: ✭ 29 (-12.12%)
Mutual labels:  mta
ansible-snort
No description or website provided.
Stars: ✭ 13 (-60.61%)
Mutual labels:  ansible-role
ansible-minecraft
Ansible role for provisioning a vanilla Minecraft server
Stars: ✭ 53 (+60.61%)
Mutual labels:  ansible-role
Apache
Docker container running Apache running on Ubuntu, Composer, Lavavel, TDD via Shippable & CircleCI
Stars: ✭ 15 (-54.55%)
Mutual labels:  postfix
ansible-ossec-server
Installing and maintaining the ossec-server for RedHat/Debian/Ubuntu.
Stars: ✭ 29 (-12.12%)
Mutual labels:  ansible-role
lykops
lykops是一套web可视化的运维自动化项目,基于python3+django开发的。可视化、简化执行ansible任务,并提供详细的任务执行报告。
Stars: ✭ 129 (+290.91%)
Mutual labels:  ansible-role
ansible-kafka
Ansible role for installing and configuring Apache Kafka on RedHat and Debian platforms.
Stars: ✭ 56 (+69.7%)
Mutual labels:  ansible-role
ansible-github actions runner
Ansible Role to deploy GitHub Actions self-hosted runner
Stars: ✭ 76 (+130.3%)
Mutual labels:  ansible-role
ansible-dnsmasq
Enter description of Ansible role
Stars: ✭ 17 (-48.48%)
Mutual labels:  ansible-role
trualias
Mentally computable verification codes for email aliases implemented as a postfix tcp table or milter; uses asyncio.
Stars: ✭ 33 (+0%)
Mutual labels:  postfix
ansible-role-go
Ansible role - Go
Stars: ✭ 23 (-30.3%)
Mutual labels:  ansible-role
mailad
Software to provision a mail server with users from a Windows or Samba 4 Active Directory
Stars: ✭ 21 (-36.36%)
Mutual labels:  postfix
ansible-rclone
ansible role for rclone :: https://galaxy.ansible.com/stefangweichinger/ansible_rclone
Stars: ✭ 95 (+187.88%)
Mutual labels:  ansible-role

Postfix Role for Ansible

This role configures Postfix which is a free and open-source mail transfer agent (MTA) that routes and delivers electronic mail, intended as an alternative to the widely used Sendmail MTA.

Requirements

This role requires Ansible version 1.4 or higher and the Debian/Ubuntu platform.

Role Variables

The variables that can be passed to this role and a brief description about them are as follows:

# The FQDN for the Postfix email server
postfix_domain: ''

# The receiving email address where root email is forwarded
postfix_notify_email: false

# The next-hop destination of non-local mail, for SMTP define a FQDN or hostname
postfix_relayhost: ''

# The default flag for whether to enable SMTP sending
postfix_use_smtp: false

# The username for SMTP authentication
postfix_relayhost_user: false

# The password for SMTP authentication
postfix_relayhost_pass: false

# Don't use mechanisms that permit anonymous authentication.
postfix_smtp_sasl_security_options: 'noanonymous'

# Enable client-side authentication
# postfix_smtp_sasl_auth_enable: 'yes'

# SMTP user:pass
# postfix_smtp_sasl_password_maps: 'static:SMTP_Injection:APIKEY'

# Ensures that the connection to the remote smtp server will be encrypted
# postfix_smtp_tls_security_level: 'encrypt'

# Header size limitation
# postfix_header_size_limit: '4096000'

Examples

  1. Install Postfix with the default settings

    ---
    # This playbook installs Postfix email server
    
    - name: Apply Postfix to mail nodes
      hosts: all
      roles:
        - { role: postfix,
            postfix_domain: 'example.com',
            postfix_notify_email: '[email protected]'
          }
  2. Install Postfix and configure to use SMTP relay (Mandrill, MailGun, SendGrid, etc.)

    ---
    # This playbook installs Postfix email server
    
    - name: Apply Postfix to mail nodes
      hosts: all
      roles:
        - { role: postfix,
            postfix_domain: 'example.com',
            postfix_notify_email: '[email protected]',
            postfix_use_smtp: true,
            postfix_relayhost: '[smtp.mandrill.com]',
            postfix_relayhost_user: 'mandrill_username',
            postfix_relayhost_pass: 'mandrill_apikey'
          }
  3. Install Postfix and configure to use SMTP relay (Sparkpost)

    ---
    # This playbook installs Postfix email server
    
    - name: Apply Postfix to mail nodes
      hosts: all
      roles:
        - { role: postfix,
            postfix_domain: 'example.com',
            postfix_notify_email: '[email protected]',
            postfix_use_smtp: true,
            postfix_relayhost: '[smtp.sparkpostmail.com]:587',
            postfix_smtp_sasl_auth_enable: 'yes',
            postfix_smtp_sasl_password_maps: 'static:SMTP_Injection:APIKEY',
            postfix_smtp_sasl_security_options: 'noanonymous',
            postfix_smtp_tls_security_level: 'encrypt',
            postfix_header_size_limit: '4096000'
          }

Dependencies

None.

License

MIT.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].