From: Maksim Usmanov <skamasle@gmail.com>
To: pmg-devel@lists.proxmox.com
Subject: Move permit_mynetworks to smtpd_relay_restrictions in default master.cf.in
Date: Sun, 3 May 2026 17:03:48 +0200 [thread overview]
Message-ID: <CAF0E_8osQN2-W4OFEvvVnxCKH5DatfsmTNxKd8XzTGOYDrGUPA@mail.gmail.com> (raw)
Hi everyone,
I'm trying to add a check_policy_service to Postfix using
smtpd_recipient_restrictions, but I found a small limitation in the
default PMG template (master.cf.in).
Right now, the template has this:
-o smtpd_recipient_restrictions=permit_mynetworks,reject_unauth_destination
With this setup, it's hard to add a policy service safely because it
needs to go after those two options to avoid relay issues.
I know I can use a custom template, but maybe it makes sense to change
the default one? If we move permit_mynetworks to
smtpd_relay_restrictions as the Postfix docs suggest here:
https://www.postfix.org/postconf.5.html#smtpd_relay_restrictions , it
would be much easier to add custom checks or policy services later.
Is there a specific reason to keep the current structure, or could we
update it to follow Postfix recommendations and make it more flexible?
Thanks for your help!
Best regards,
----
Att: Maksim
reply other threads:[~2026-05-03 15:02 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAF0E_8osQN2-W4OFEvvVnxCKH5DatfsmTNxKd8XzTGOYDrGUPA@mail.gmail.com \
--to=skamasle@gmail.com \
--cc=pmg-devel@lists.proxmox.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.