Commit dde85b11 authored by Maciej Delmanowski's avatar Maciej Delmanowski

[nullmailer, postfix] Use domain in /etc/mailname

The 'debops.nullmailer' and 'debops.postfix' roles will configure the
'/etc/mailname' file to be the DNS domain of a host instead of the FQDN.
With this configuration, mail sent from one host in a cluster should
correctly lead to the MX host in case of a reply, instead of to the host
itself.
parent b32b9d2d
......@@ -142,6 +142,13 @@ Changed
the LDAP directory to it afterwards. See :ref:`role documentation
<debops.slapd>` for more details.
- [debops.nullmailer][debops.postfix] The :file:`/etc/mailname` configuration
file will contain the DNS domain of a host instead of the FQDN address. This
will result in the mail senders that don't specify the domain part to have
the DNS domain, instad of the full host address, added by the Mail Transport
Agent. This configuration should work better in clustered environments, where
there is a central mail hub/MX that receives the mail and redirects it.
Fixed
~~~~~
......
......@@ -73,9 +73,9 @@ nullmailer__packages: []
# .. envvar:: nullmailer__mailname [[[
#
# The FQDN name of the host, stored in the :file:`/etc/mailname` configuration
# file. See https://wiki.debian.org/EtcMailName for more details.
nullmailer__mailname: '{{ ansible_fqdn }}'
# The domain name of the host, stored in the :file:`/etc/mailname`
# configuration file. See https://wiki.debian.org/EtcMailName for more details.
nullmailer__mailname: '{{ nullmailer__domain }}'
# ]]]
# .. envvar:: nullmailer__domain [[[
......
......@@ -92,8 +92,10 @@ postfix__relayhost: ''
# ]]]
# .. envvar:: postfix__mailname [[[
#
# The name of this mail system, configured in :file:`/etc/mailname`.
postfix__mailname: '{{ postfix__fqdn }}'
# The name of this mail system, configured in :file:`/etc/mailname` file. This
# name is used as the domain part in sender mail addresses that don't have one.
# See https://wiki.debian.org/EtcMailName for more details.
postfix__mailname: '{{ postfix__domain }}'
# ]]]
# ]]]
# Firewall configuration [[[
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment