Wietse Venema:
> Olivier Nicole:
> > Hello,
> >
> > In main.cf I have:
> > smtpd_client_restrictions =
> > check_client_access cidr:$config_directory/amavis_bypass
> >
> > with the file amavis_bypass being:
> > 203.159.68.0/22 FILTER smtp-amavis:[127.0.0.1]:10026
> >
> > That is applying a special filter for calling Amavis when a message is
> > issued by my internal network (like insert DKIM signature, warn if a
> > virus is detected, etc.)
> >
> > I would like to extend this special filter for any connection incoming
> > through the submission port (587) or authenticated connection
> > (equivalent to submission), whatever the IP they are coming from.
> >
> > How is that possible?
>
> /etc/postfix/main.cf:
> msa_client_restrictions =
> msa_content_filter = smtp-amavis:[127.0.0.1]:10026
>
> /etc/postfix/master.cf:
> submission .. .. .. .. .. .. .. smtpd
> # Note: no spaces in name=value settings.
> -o smtpd_client_restrictions=$msa_client_restrictions
> -o content_filter=$msa_content_filter
> ...
>
> This example keeps the real settings in main.cf. The reason is that
> most Postfix versions do not support spaces in name=value settings.
... in master.cf.
Wietse