We have a development server for web development. The websites may send (automatic) e-mails from time to time. We want to make sure that e-mails sent by these websites on the development server are blocked by postfix, so that they are never sent over port 25 at all, but simply discarded, except for if it is sent to our own domain XXXXX.nl.
I've tried to use postfix for this purpose but I just can't get it to work.
I tried rejecting everything in smtpd_sender_restrictions and smtpd_recipient_restrictions, but when I execute "mail firstname.lastname@example.org
" the e-mails are sent.
Is there ANY way to do this and how?