[TODO]: Avoid being inconsistent with POSTMASTER_ADDRESS
#3769
Labels
area/configuration (file)
area/documentation
area/scripts
kind/improvement
Improve an existing feature, configuration file or the documentation
meta/help wanted
The OP requests help from others - chime in! :D
service/postfix
stale-bot/ignore
Indicates that this issue / PR shall not be closed by our stale-checking CI
Description
This defaults to the assumption that a hostname
mail.example.com
will use mail accounts@example.com
and thus creates an implicit postmaster address to use within our scripts for that mail domain.We've had several users in the past report deployments where this was not the case, thus the postmaster address was invalid.
They also need to add postmaster address for other mail domains they manage (some have used a regexp alias on the local-part to handle all
postmaster@
redirects to a preferred address, but this appears to also affect foreign / remotepostmaster@
recipient domains too which would not be desired).Reference topic
I recently responded to a discussion on this topic: https://github.com/orgs/docker-mailserver/discussions/3758#discussioncomment-8075486
It's a bit messy / disorganized, but is a public source of insights / notes from me 😅 This issue is to document the concern as it's not just the
POSTMASTER_ADDRESS
ENV default to consider, and our docs perhaps could also better cover this too.mydestination
Partly related to
mydestination
investigation from 2023:docker-mailserver/target/postfix/main.cf
Lines 15 to 18 in aba218e
Postfix does not require a
local
delivery agent configured. Themail.example.com
hostname was intended to distinguish the MTA itself from the hosted mail domains DMS manages, along with system related mail. It still is technically reachable to send mail to, or for it to send mail externally from, and itself would be expected to have a postmaster address.It is not a change that we've been too eager to make, as my prior input expressed 😓
mydestination
inpostfix/main.cf
#3264 (review)mydestination
inpostfix/main.cf
#3264 (comment)I don't have time to dig through all that again to gain the confidence in adjusting that part of config.
Related to such a change is concerns with aliasing (catchall address and it's gotchas), which can be partly related to postmaster advice. Like this regexp alias in our tests which would not be wise for production deployments AFAIK:
docker-mailserver/test/config/postfix-regexp.cf
Line 5 in aba218e
If changes were done to this config, be aware of a misleading
dovecot: auth:
log that's actually checking Dovecot UserDB of a recipient for their quota rather than checking for a valid user.Additional resources
postmaster
"/etc/aliases
(local alias) configured for bothpostmaster
androot
to admin email.$myhostname
/$myorigin
but/etc/aliases
for thepostmaster
local-part should be sufficient to redirect to a virtual alias / mailbox address)mydestination
(nolocal
domains)postmaster
moved to virtual alias at/etc/postfix/virtual
(virtual_alias_maps
). Other examples also provide additional context on the subject that is useful.The text was updated successfully, but these errors were encountered: