](https://gagor.pro/generic-cover.webp)
Postfix - automatically drop outbound mail
I have development server with postfix - I wanted to allow outbound traffic to one domain but cut off all the rest. I definitely do not want that test mail or any debug info goes to service users. I have to add something like that to /etc/postfix/transport: allowed.domain.com : * discard: Then run: postmap /etc/postfix/transport At end, add these to /etc/postfix/main.cf: transport_maps = hash:/etc/postfix/transport Reload postfix: postfix reload Test if it works: ...
](https://gagor.pro/2011/09/pflogsumm-mail-statistics-for-postfix/images/cover.webp)