[Mimedefang] Replace Large Attachments with URL's

Kurt Kesler atwork at keslers.net
Tue Jul 2 10:05:39 EDT 2002

I tried adding this script from the Mimedefang homepage to my

$size = (stat($entity->bodyhandle->path))[7];
if ($size > 1000000) {
    return action_replace_with_url($entity,
        "The attachment $fname was larger than 1,000,000 bytes.\n" .
        "It was removed, but may be accessed at this URL:\n\n" .

I changed the directory and http address to match my system.  When I try
to send mail now (regardless of size) I get the following messages in
the log:

Jul  2 08:52:54 www mimedefang[41291]: Filter did not create RESULTS
Jul  2 08:52:54 www sendmail[41294]: g62Cqf79041294: Milter: data,
reject=451 4.
7.1 Please try again later

Any ideas?

Kurt Kesler

More information about the MIMEDefang mailing list