On Fri, 31 Dec 1999, Arumugam Thiruppathi wrote:
> Hi
>
>
> How should I stop all the incoming executable Email attachments thru Qmail
> server. Could any one help me in configuring the same.
Only by writing an external filter, and funneling all mail through the
external filter.
This is not, exactly, a trivial job, and will require extensive
modifications of your Qmail setup. The specific steps are highly
dependent on your particular and unique Qmail configuration. You'll have
to arrange for Qmail to divert all mail to an external program. Then, you
will have to write this external program, that parses the message
according to RFC 2045, in order to detect attachments. Afterwards, the
message needs to be reinjected into the mail queue, with the recipient
envelope address slightly altered so that the mail ends up being delivered
to its original recipient, somehow.
Depending on your particular qmail setup, this may be accomplished by
reconfigured control/smtproutes, control/virtualdomains, or by having a
second instance of Qmail compiled and running, or via any one of several
other ways. The right approach depends, again, upon your individual
situation, which only you know.
Hopefully you just didn't realize that you have to implement this within
the next 24 hours. You should've started on this at least a month ago.
Mail servers, generally, do not care -- and should not care -- about
message contents (except in very few isolated situations) so implementing
something like that would clearly require major work.