Retreiving attachments

Stephen Swaney steve.swaney at
Fri Aug 4 23:12:42 IST 2006

Stephen Swaney
Fort Systems Ltd.
stephen.swaney at

> -----Original Message-----
> From: mailscanner-bounces at [mailto:mailscanner-
> bounces at] On Behalf Of Rick Chadderdon
> Sent: Friday, August 04, 2006 5:18 PM
> To: MailScanner discussion
> Subject: Re: Retreiving attachments
> You could try increasing the maximum allowed attachment size temporarily
> and resubmitting those messages.  Maybe consider permanently increasing
> the maximum attachment size to accommodate the files your users actually
> send.  Try to get your boss to let you limit the size to something
> reasonable, although I know how hard that can be.
> Rick
> Golden, James wrote:
> > Hello,
> >
> > I've have been wasting my whole day trying to figure out how to do
> > this.  Can anyone could help besides telling me to install Mailwatch
> > (because it's not an option right now).
> >
> > I have messages that are being snagged by MailScanner because the
> > attachment is too large.  When I go to the directory the attachment is
> > in binary in the message.
> >
> > I tried using a sendmail -t < message, but of course it gets snagged
> > again by MS.  Is there an option I'm missing to store the attachments
> > seperatly from the message, is there a way to send this on without it
> > bieng scanned?  Is there a way to get the attachement out of the
> message?
> >
> > I need help soon as this is becoming a large issue today (about 6 end
> > users) and my boss is hearing about it!
> >
> > Thanks,
> >
> > James

Sorry I misunderstood. My previous posting will allow the release of
messages that have been trapped by filename filetype rules.

To release a message that has an attachment that is too large, just
temporarily remove the Maximum Attachment Size limit in MailScanner.conf:

Minimum Attachment Size = 0

Relaese the message and tnem set back to the original setting. 

You could alss create a ruleset:

Minimum Attachment Size = %rules-dir%/max.attachment.rules where
/etc/MailScanner/rules/max.attachment.rules contains:

# allow anything for local host
From:	0
FormOrTo:	default	10000000


Stephen Swaney
Fort Systems Ltd.
stephen.swaney at

More information about the MailScanner mailing list