On Wed, Feb 4, 2015 at 9:24 AM, Leonardo Rodrigues <leolis...@solutti.com.br
> wrote:

> On 04/02/15 12:41, Wietse Venema wrote:
>
>>
>> Use postfwd, set a rule that triggers with too many recipients
>> per SASL login.  http://www.postfwd.org/
>>
>>         Wietse
>>
>
>     Policyd can also do that, check both.
>
> http://www.policyd.org/
>
>
>
> --
>
>
>         Atenciosamente / Sincerily,
>         Leonardo Rodrigues
>         Solutti Tecnologia
>         http://www.solutti.com.br
>
>         Minha armadilha de SPAM, NÃO mandem email
>         gertru...@solutti.com.br
>         My SPAMTRAP, do not email it
>
>
>
> I followed the quick start guide for postfwd and installation instructions
from http://www.helpfulbox.com/ans/Humanities_Races/760550 but I
am not getting headers added.  I have postfwd "[STATS]" in my maillog
and established connections to port 10040.

# /usr/local/postfwd/sbin/postfwd -f /etc/postfix/postfwd.cf -C
Rule   0: id->"RCPTCNT300"; action->"PREPEND X-Rcpt-Count: red";
recipient_count->"=>;300"
Rule   1: id->"RCPTCNT200"; action->"PREPEND X-Rcpt-Count: orange";
recipient_count->"=>;200"
Rule   2: id->"RCPTCNT100"; action->"PREPEND X-Rcpt-Count: yellow";
recipient_count->"=>;100"
Rule   3: id->"RCPTCNT10"; action->"PREPEND X-Rcpt-Count: green";
recipient_count->"=>;10"
Rule   4: id->"RCPTCNT1"; action->"PREPEND X-Rcpt-Count: test";
recipient_count->"=>;1"

main.cf:
smtpd_recipient_restrictions =
  check_policy_service inet:127.0.0.1:10040
  permit_mynetworks,
  ...

/var/log/maillog:
Feb 19 16:55:12 smtp1 postfwd[27034]: [RULES] rule=4, id=RCPTCNT1,
queue=92ABF33E7CE, client=unknown[172.27.66.50], sender=<
r...@server1.example.com>, recipient=<r...@example.com>, helo=<
server1.example.com>, proto=ESMTP, state=END-OF-MESSAGE, delay=0.00s,
hits=RCPTCNT1, action=PREPEND X-Rcpt-Count: test
Feb 19 16:55:12 smtp1 postfwd[27034]: [RULES] rule=4, id=RCPTCNT1,
queue=C2B7433E7CE, client=unknown[172.27.0.203], sender=<
r...@server1.example.com>, recipient=<r...@example.com>, helo=<
server1.example.com>, proto=ESMTP, state=END-OF-MESSAGE, delay=0.00s,
hits=RCPTCNT1, action=PREPEND X-Rcpt-Count: test

I have tried both postfwd1 and postfwd2 and have their required Perl
packages.

Any users of postfwd have any ideas why this header doesn't get added?  I
have tracked down messages in the logs to mailboxes I have access to and
the header is not in present.  I have tested this on multiple Postfix
servers and get the same results.

Dave

Reply via email to