procmail
[Top] [All Lists]

Attachment blocking.

1999-12-08 22:24:49

I'm trying to put together a system to block attachments.

The idea is to point the existing MX records to a new system running
sendmail/procmail and perhaps a few perl scripts.

My pseudocode goes something like this:

If the message's from line shows that it comes from somename.com, then pass it
on to mailhost2 unchanged.

Else if the message contains any attachments, stash it in a local file,

     Else pass it on to mailhost 1 or mailhost2 depending on the MX information.

(end pseudocode)

Is procmail capable of filtering messages that are *on the way to somewhere
non-local*? If so, how?

Thanks, [RC]


<Prev in Thread] Current Thread [Next in Thread>