As suggested in How do you detect a spambot on your network? how can I setup firewall rule to allow only Postifx to send emails using SMTP on port 25 and disallow all other applications to send on port 25?
I want to control email server of single machine.
Something related is being talked here but not sure of the Iptables rules.