If you wanted to disable outbound email in smtpd, would it be good
enough to do a change like this? Here's an excerpt from the default
configuration in OpenBSD:
action "local_mail" mbox alias <aliases>
action "outbound" relay
match from local for local action "local_mail"
match from local for any action "outbound"
Here's the change I have in mind:
action "local_mail" mbox alias <aliases>
# action "outbound" relay
match from local for local action "local_mail"
# match from local for any action "outbound"
match from local for any reject
smtpd -n calls that a good configuration. Are there other
considerations, discounting users purposely bypassing the mail system?
The target configuration would also setup to not receive external email.
TIA,
--Bruce