368a369,399 >
Here is another example for stress adaptive behaviour, which will > immediately disconnect clients with unknown hostnames under conditions > of stress:
> >
>
> 1 /etc/postfix/main.cf:
> 2 smtpd_delay_reject = ${stress?no}${stress:yes}
> 3 unknown_client_reject_code = ${stress?421}${stress:450}
> 4 smtpd_client_restrictions = ${stress?reject_unknown_client_hostname}
>
>
>
> Translation:
> >
Line 2: under conditions of stress, make postfix evaluate the > different smtpd_*_restrictions parameters immediately. With the > default settings, those restrictions are only evaluated after the > client issues the first "RCPT TO" command during the SMTP dialogue. > >
Line 3: under conditions of stress, use an unknown_client_reject_code > of 421, which will cause the client to be disconnected immediately. > >
Line 4: under conditions of stress, add "reject_unknown_client_hostname" > to the list of smtpd_client_restrictions. > >