How do I restrict attachments with sendmail?
sendmail itself does not look at the content of a message, so it is not in a position to strip attachments. You need a filtering package that works with sendmail. You might want to look at www.milter.org for some open source solutions that use our “milter” facility. There’s also something called MIMEDefang that can do it. You can also get commercial products to do it (see www.sendmail.com for example).