To increase the attachment size limit in sendmail you have to locate and update the sendmail.cf file. It’s usually stored in:
/etc/mail/sendmail.cf
# maximum message size
O MaxMessageSize=20000000
change it to what you want
restart sendmail
:
service sendmail stop
killall -9 sendmail
service sendmail start