Missing restrictions - update to debian 10 (buster)

Postfix error

May 19 07:45:59 web postfix/smtpd[28658]: fatal: in parameter smtpd_relay_restrictions or smtpd_recipient_restrictions, 
specify at least one working instance of: reject_unauth_destination, defer_unauth_destination, reject, defer, 
defer_if_permit or check_relay_domains

Solution on https://wiki.debian.org/Postfix

File /etc/postfix/main.cf

smtpd_recipient_restrictions = reject_invalid_hostname,
        reject_unknown_recipient_domain,
        reject_unauth_destination,
        reject_rbl_client sbl.spamhaus.org,
        permit

smtpd_helo_restrictions = reject_invalid_helo_hostname,
        reject_non_fqdn_helo_hostname,
        reject_unknown_helo_hostname

Reload: service postfix reload

Limiter les connexions à un serveur distant

Dans main.cf

transport_maps = hash:/etc/postfix/transport

yahoo_initial_destination_concurrency = 1
yahoo_destination_concurrency_limit = 1
yahoo_destination_recipient_limit = 2
yahoo_destination_rate_delay = 5s

Dans master.cf

# séparateur espace
yahoo unix  -   n       -       -       -       smtp
  -o syslog_name=postfix-yahoo

Dans transport

# séparateur tab
yahoo.fr        yahoo:
yahoo.ca        yahoo:
yahoo.com       yahoo:

Redémarrage

postmap /etc/postfix/transport
service postfix reload

Vérification de la configuration

postconf | grep yahoo