forked from Lainports/freebsd-ports
The program uses the postfix policy delegation protocol to control access to the mail system before a message has been accepted (please visit http://www.postfix.org/SMTPD_POLICY_README.html for more information). It allows you to choose an action (e.g. reject, dunno) for a combination of several smtp parameters (like sender and recipient address, size or the client's TLS fingerprint). PR: ports/123544 Submitted by: Sahil Tandon <sahil at tandon.net>
27 lines
587 B
Text
27 lines
587 B
Text
*************
|
|
* Start postfwd with:
|
|
|
|
# %%PREFIX%%/bin/postfwd start
|
|
|
|
* Integrate thusly in: %%PREFIX%%/etc/postfix/main.cf
|
|
|
|
127.0.0.1:10040_time_limit = 3600
|
|
|
|
smtpd_recipient_restrictions =
|
|
...
|
|
permit_mynetworks
|
|
...
|
|
reject_unauth_destination
|
|
reject_unauth_pipelining
|
|
check_policy_service inet:127.0.0.1:10040
|
|
...
|
|
|
|
* NOTE: specify check_policy_service AFTER reject_unauth_destination
|
|
* or else your system can become an open relay.
|
|
*
|
|
* CONFIGURATION:
|
|
*
|
|
* Create and edit %%PREFIX%%/etc/postfwd.conf
|
|
* An example is provided in %%PREFIX%%/etc/postfwd.conf.sample
|
|
*
|
|
*************
|