Simon Jones wrote: > ok thanks - I added those to main.cf but it still doesn't do anything, > I have googled - oooh yes I have googled something good but it still > doesn't make sense how to get postfix working with anvil, there's > plenty of info on config but how do i get pfx to pass info to anvil so > it generates stats? > anvil is not an anti-spam tool per say. It is more of a anti-DoS tool.
If anvil is, and should be, enabled in master.cf, then Postfix will use it. The parameters in the link that Ralf posted control smtpd and anvil will report based on anvil_status_update_time. Please read the Diagnostics section of 'man 8 anvil'. You will see log lines like this: Jun 10 09:40:11 mx postfix/anvil[3303]: statistics: max connection rate 2/60s for (smtp:xx.xx.xx.xx) at Jun 10 09:31:56 Jun 10 09:40:11 mx postfix/anvil[3303]: statistics: max connection count 2 for (smtp:xx.xx.xx.xx) at Jun 10 09:31:56 Jun 10 09:40:11 mx postfix/anvil[3303]: statistics: max cache size 3 at Jun 10 09:32:56 Again, anvil is for identifying problem clients, NOT for logging EVERY client