Christian Rohmann:
> 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?

With Postfix 3.0 or later:

   ... check_client_access static:{warn text...} ...

Older Postfix releases require that the lookup result is stored
outside main.cf.

(Postfix 3.0 also introduces inline: tables whose keys and values
are stored inside main.cf).

        Wietse

Reply via email to