WHT newbie here.
We have a custom application that sends notification to a hardcoded email address external to our domain, with the sender being the address of the user currently logged in.
This address is no longer valid, so each time a notification is sent, a bounce is sent back to the user of the application indicating this.
This is a legacy application and do not have access to the source code.
Is there any way to simply "null route" messages sent to this recipient, ie: firstname.lastname@example.org
I have tried using the following in main.cf:
smtpd_recipient_restrictions = check_recipient_access hash:/etc/postfix/blacklist_recipients, permit_mynetworks, reject_unauth_destination
With blacklist_recipients containing:
but this still generates a bounce. I would like there to be no bounce for this address. Other addresses for external-domain.com still need to function though.
Thank you for any insight!