Dnia  8.12.2022 o godz. 13:16:34 Scott Mutter pisze:
> In an SMTP transaction there are certain commands that pertain to certain
> areas of the SMTP message, specifically:
> 
> MAIL FROM
> RCPT TO
> DATA
> 
> In Exim, there is an ACL configuration block - acl_smtp_mail - that can be
> used to parse the information presented in the MAIL FROM command and this
> determines if the connection should be allowed to proceed.

smtpd_sender_restrictions=

> Likewise, there is an ACL configuration block - acl_smtp_rcpt - that parses
> the information from the RCPT TO command and determines how to proceed
> along the connection.

smtpd_relay_restrictions= 
and
smtpd_recipient_restrictions=

> And the ACL Configuration block - acl_smtp_data - that can parse the
> information presented after the DATA command to determine how to proceed
> with the connection.

smtpd_end_of_data_restrictions=

However to parse the actual *content* given in the DATA command you should
rather use milters.

> Are there any equivalent such configuration blocks with Postfix?  Or how
> would one go about processing information given from these commands?

In addition to the above, there are also:

smtpd_client_restrictions= - applied just at the start of connection, where
Postfix knows only the connecting client's IP address

smtpd_helo_restrictions= - applied in the HELO/EHLO phase

smtpd_data_restrictions= - applied at the BEGINNING of the DATA command (not
AFTER the DATA command)
-- 
Regards,
   Jaroslaw Rafa
   r...@rafa.eu.org
--
"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."

Reply via email to