All my servers use mailx with ssmtp to send email messages via my Postfix mail server for events and scripts.
I've noticed quite a lot of bounce back messages going from the mail server "MAILER DAEMON" back to each email@example.com
which of course doesn't get through since there is nothing to receive it on the hosts.
This leaves stuff stuck in the queue until it is dropped by Postfix, the MTA on the mail server. Snort then alerts on these failed connection attempts as port scans which is also annoying.
Is there a way to tell Postfix to not do bounce backs to *.mydomain.com so that the messages are immediately dropped if failed with a notifications to postmaster (which is aliased to me).
I'd also like to know why they are being bounced, is there a way to look inside the emails in the queue?