Restricting a user's e-mail sending by domain

Is it possible to restrict the domains a user can send e-mail to?

I’m setting up a task on my Raspberry Pi and I want to create a mailinabox user for it so it can notify me about it via mutt, and I’d like to avoid having the RPi turned into a spam machine in case it somehow gets compromised.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.