Hi, colleagues!
I set up the verification of the recipient as follows:
main.cf:
smtpd_restriction_classes = CheckRelayRecipient
CheckRelayRecipient = reject_unverified_recipient, permit
smtpd_recipient_restrictions =
...
hash:$config_directory/relay_domain_recipient_check,
...
relay_domain_recipient_check:
domain1.tld CheckRelayRecipient
domain2.tld CheckRelayRecipient
The verification works. But ..
If the main destination server is not working, mail is rejected with the
folowing reason:
Recipient address rejected: unverified address: connect to
host.domain.tld [xx.xxx.xxx.xx]:25: Connection refused
I would be thankful for the idea, how to implement the following:
1) if the main destination server is unavailable, my postfix accepts all
its mail.
2) if the main destination server is available, my postfix accepts its
mail for verified recipients only.
--
Eugene