I have a Postfix (2.6) installation on a dedicated server.
When I try to send a message to a non existing domain, I get this line in my mail.log:
postfix/smtpd[11069]: NOQUEUE: reject: RCPT from [..omitted..][x.x.x.x]: 450 4.1.2 <test@nonexistingdomain.com>: Recipient address rejected: Domain not found; from=<bounces@mydomain.com> to=<test@nonexistingdomain.com> proto=ESMTP helo=<test.mydomain.com>
In my configuration I have:
smtpd_recipient_restrictions = reject_unknown_sender_domain, reject_unknown_recipient_domain, reject_unauth_pipelining, reject_invalid_hostname, reject_non_fqdn_sender, reject_non_fqdn_recipient, check_client_access hash:/etc/postfix/rbl_override,permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination, reject_rbl_client tor.dnsbl.sectoor.de=127.0.0.1
So, the error in the mail log is correct. At the moment the email is not put in queue and is silently rejected.
Is there a way to send a reject message (a delivery status notification?) to the sender (in the example, bounces@mydomain.com)?
Best Answer
You can use notify_classes
Send a simple mail
Check mail log
You will receive something like the following