Ville Walveranta пишет:
> Is it possible to limit header_checks either by recipient domain or by
> listening interface? I'd like to remove certain headers, but only from
> specific domains.
> 
> Ville
something like this:
main.cf:
...
header_checks = regexp:$config_directory/header_checks
...
smtpd_recipient_restrictions =
    ...
    check_client_access hash:$config_directory/whitelist
    permit_mynetworks
    check_recipient_access regexp:$config_directory/must_header_checks
    ...
...

must_header_checks:
/.*/    FILTER smtp:[127.0.0.1]:10025

master.cf:
...
smtp      inet  n       -       n       -       -       smtpd
        -o receive_override_options=no_header_body_checks
        -o header_checks=


127.0.0.1:10025 inet n  -       n       -       -       smtpd
        -o smtpd_authorized_xforward_hosts=127.0.0.0/8
        -o smtpd_client_restrictions=
        -o smtpd_helo_restrictions=
        -o smtpd_sender_restrictions=
        -o smtpd_recipient_restrictions=permit_mynetworks,reject
        -o smtpd_data_restrictions=
        -o mynetworks=127.0.0.0/8
        -o receive_override_options=no_unknown_recipient_checks
...


-- 
С Уважением, Янченко Игорь
email: mailto:[EMAIL PROTECTED]
jabber: xmpp://[EMAIL PROTECTED]
SKIF ISP
IGR0-UANIC

Reply via email to