natan via Postfix-users:
> Hi
> The logs show that Postfix does not pass the from key because the From
> header comes from the message body, and Postfix by default only supports
> sender information from the Envelope From (sender). Right?
check_policy_service is an envelope feature. To enforce
p
Hi
The logs show that Postfix does not pass the from key because the From
header comes from the message body, and Postfix by default only supports
sender information from the Envelope From (sender). Right?
I'm trying to write something "like DMARC" in Python to reject if the
From and return-p
natan via Postfix-users:
> Hi
> I have some problem with comunications postfix + python
>
> in main.cf:
> ...
> smtpd_restriction_classes=testowy
> testowy=check_policy_service { unix:private/testowy, timeout=4s,
> default_action=DUNNO }
>
> smtpd_recipient_restrictions =
> check_recipi
Hi
I'm trying to write something like DMARC in Python to reject if the from
and return-path for the selected domain are different
Because these similar solutions like vrfydmn (in Perl) are not very
user-friendly
W dniu 28.11.2024 o 13:57, natan via Postfix-users pisze:
Hi
I have some proble
On Thu, Nov 28, 2024 at 01:57:57PM +0100, natan via Postfix-users wrote:
> print("DUNNO") # REJECT, PERMIT, DUNNO
You did not read the docs carefully, the output should be:
action=DUNNO\n\n
> Nov 28 13:54:15 mx postfix/smtpd[2953675]: warning: missing attribute action
> in input fr
Hi
Problem solved:
.
recipient = inputs.get("recipient", "")
if recipient.endswith("@testdomain.ltd"):
sys.stdout.write("action=REJECT\nreject_reason=554 5.7.1
Access denied\n\n")
else:
sys.stdout.write("action=DUNNO\n\n")
sys.stdout.