In newer version of sendmail you can modify the MaxMessageSize setting in the sendmail.cf file.
In older versions, that do not support this, you can add the following to the file:
Ob/5000000
The above will limit the message size to 5M.
Set maximum message size in Linux Sendmail.
Moderator: jasonb