Nicol?s:
> Hi,
> 
> I have defined two smtpd_restriction_classes for two different domains. 
> I'm using these classes for integration with 
> smtpd_recipient_restrictions. At this time, I'd like to define custom 
> smtp_body_checks and smtp_header_checks for each of these domains (or 
> classes), so any outgoing e-mail will go through a different header or 
> body table depending on which domain it is.
> 
> I didn't find any restriction to define inside 
> smtpd_(client|sender|recipient)_restrictions that I could use to achieve it.
> 
> Is it even possible to do this?

header/body_checks are not spam filters. To support per-domain spam
filter policies use Amavisd.

Domain-dependent header/body_checks require different IP addresses,
so that you can configure different smtpd entries in master.cf with
different cleanup_service_name entries.

    1,2.3.4 ... smtpd -o cleanup_service_name=cleanup_1.2.3.4
    1,2.3.5 ... smtpd -o cleanup_service_name=cleanup_1.2.3.5
    cleanup_1.2.3.4 .. -o header_checks=/etc/postfix/header_checks_1.2.3.4
    cleanup_1.2.3.5 .. -o header_checks=/etc/postfix/header_checks_1.2.3.5

See also  http://www.postfix.org/BUILTIN_FILTER_README.html#mx_submission
for similar examples.

        Wietse

Reply via email to