Dnia  7.08.2026 o godz. 19:35:01 Jaroslaw Rafa via Postfix-users pisze:
> Dnia  7.08.2026 o godz. 18:14:45 Joe via Postfix-users pisze:
> > Is there, by the way, a method of filtering in Postfix based
> > on the sending server name i.e. its PTR record?
> 
> You can do this with smtpd_client_restrictions.
> 
> > I could do this in
> > exim4, but the filtering in Postfix seems based on the alleged sender
> > name taken from the headers.
> 
> Postfix does not filter on headers. That's what milters can do.
> 
> smtpd_sender_restrictions filters on sender address taken from *SMTP
> transaction* (MAIL FROM: command), not from headers.

Well, I'm not fully correct here. You can filter on client addresses with
check_client_access rule, and on sender addresses with check_sender_access.
You can use both in smtpd_sender restrictiona, although I generally use
check_client_access in smtpd_client_restrictions, and check_sender_access in
smtpd_sender_restrictions.
-- 
Regards,
   Jaroslaw Rafa
   [email protected]
--
"In a million years, when kids go to school, they're gonna know: once there
was a Hushpuppy, and she lived with her daddy in the Bathtub."
_______________________________________________
Postfix-users mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to