I've a Linux machine which is used as a final destination for test emails. Some local inboxes are created, local delivery via Dovecot to IMAP.

I want this machine to never send out any email whatsoever. Never relay. Accept inbound messages, deliver locally to IMAP - all that is fine. But no message should ever leave this box, for no reason, even if it's a notification for delivery error.

I could block outbound port tcp/25 with iptables, but it seems inelegant.

Would this do the trick?

default_transport = error:no outbound emails, sorry

--
Florin Andrei
http://florin.myip.org/

Reply via email to