Hey postfix-users,

I am afraid I have a hopefully simple configuration style question:

I set up a restriction class. Every connection/sending attempt that goes
into this somewhat trapping class via an access-map, naturally.

Now I would love to log a warn or info message to the log file whenever
something goes via this restriction_class. Is there any other way to
achieve this than to create an almost empty map with a wildcard like
0.0.0.0/0, ::/0 or * and a line like

 "* WARN Another poor soul!

just to match every client/sending attempt and log a single line?



I was thinking of something like

unfortunate_sons =
 warn 'Another poor soul!',
 check_client_access = pcre:abc,
 check_client_access = cidr:xyz
 permit


so using "warn" like "permit" or "reject" as static action. But, I
cannot use reject and "warn_if_reject", as I need some special log message.




Any ideas?


Regards


Christian

Reply via email to