Have #Postfix send all email to a local directory without trying to send it outside:
mydestination = static:anything
local_recipient_maps =
alias_maps =
luser_relay = localsystemuser
With a default config on #Gentoo the email gets sent to ~/Maildir.
Pretty nifty for dev testing email delivery in a program







