Wietse Venema:
> Looks like either 1) an exclusion mechanism or 2) a selection
> mechanism would do the job.
> 
> 1) Nullifies the smtpd_milters setting depending on the client.
> 
> 2) Chooses the smtpd_milters setting depending on the client.
> 
> I'll think about it.

I've implemented the second variant. If you maintain configurations
by hand, then excluding mynetworks will be a bit of extra work. I
recommend that configurations aren't maintained by hand.

        Wietse

smtpd_milter_maps (default: empty)
       Lookup tables  with  client  address-dependent  Milter  settings.   The
       lookup  result  overrides  the  smtpd_milters setting, and has the same
       syntax.

       Note: lookup tables cannot return empty  responses.  Specify  a  lookup
       result  of  DISABLE (case does not matter) to indicate that Milter sup-
       port should be disabled.

       Example to disable Milters for local clients:

       /etc/postfix/main.cf:
           smtpd_milter_maps = cidr:/etc/postfix/smtpd_milter_map
           smtpd_milters = inet:host:port, { inet:host:port, ... }, ...

       /etc/postfix/smtpd_milter_map:
           # Disable Milters for local clients.
           127.0.0.0/8    DISABLE
           192.168.0.0/16 DISABLE
           ::/64          DISABLE
           2001:db8::/32  DISABLE

       This feature is available in Postfix 3.2 and later.

Reply via email to