postfwd

最後更新: 2019-05-08

介紹

 

The program uses the postfix policy delegation protocol to control access to the mail system

before a message has been accepted

比較 postfwd1 vs postfwd2

postfwd1:

  • Single process (Multiplexer)
  • Small memory footprint
  • tcp/10040

postfwd2:

  • Multiple processes (Preforker)
  • Builtin watchdog function
  • tcp/10045
  • High throughput setups with lots of requests per second

 


Features

 

* Complex combinations of smtp parameters
* Combined RBL/RHSBL lookups with arbitrary actions depending on results
* Scoring system
* Date/time based rules
* Macros/ACLs, Groups, Negation
* Compare request attributes (e.g. client_name and helo_name)
* Internal caching for requests and dns lookups
* Built in statistics for rule efficiency analysis

 


目錄

 

V1: https://datahunter.org/postfwd_v1

V3:

 


Toubleshoot

 

Issue 1: 重複 count 了出信

Postfix Config

main.cf

smtpd_recipient_restrictions =
 ..
 check_policy_service inet:[127.0.0.1]:10040,
 ..

master.cf

submission inet n       -       n       -       -       smtpd
 -o smtpd_client_restrictions=check_policy_service,inet:[127.0.0.1]:10040,
 permit_mynetworks,permit_sasl_authenticated,reject

原因: 使用了不同 restrictions

 


DOC

 

http://postfwd.org/doc.html