Our server's /var/ direction keeps filling up due to sendmail sending email to root (the /var/spool/mail/root was 2GB).
All our sites scripts use external smtp servers for sending email so we'd like to disable sendmail on the server to avoid this issue happening again as each time the directory fills up mysql shuts down because it can't write to the /var/log/ directory as it's out of space.
Is there any way to safely shutdown sendmail that won't affect php connecting to external smtp? I'm not sure if sendmail is used for that.
Or perhaps someone knows of a way to disable sendmail from sending email to root no matter what.