This is achieved by
editing the [Validation]
configuration section, to
ensure that the DetectSize
directive is no longer
commented out. This section is found in the validation
configuration file, VALIDATE.CFG.
[Validation]
;DetectSize=VALATTR
[Validation]
DetectSize=VALATTR
The [DetectSize]
configuration section should also be edited, to set the message
limit that you wish to impose.
[DetectSize]
;ParkMessage=MessageSize>524228
HaveSize=MessageSize>1048576
This example sets a message size limit of 1Mb.
If DetectSize
is activated for MAILsweeper, any message with a
total estimated size greater than the specified limit is
discarded. The sender of the message is informed accordingly.
![]() |
For SMTP systems the message size
should be increased by about 30%, to allow for UUE and
MIME encapsulation. The MAILsweeper service will have to be restarted for these changes to come into effect. |
This is achieved by
`parking' messages greater than a set limit. The parked messages
are stored in the [Parked Messages]
quarantine area
and automatically released at a preset time, usually outside
working hours.
Parking can be
configured by editing the [Validation]
configuration
section, to ensure that the DetectSize
directive is
no longer commented out, as explained on the previous page.
The [DetectSize]
configuration section should be edited, as follows:
ParkMessage
directive and set the message size limit you wish to
impose. HaveSize
directive.[DetectSize]
;ParkMessage=MessageSize>524228
HaveSize=MessageSize>1048576
[DetectSize]
ParkMessage=MessageSize>524228
;HaveSize=MessageSize>1048576
In this example, all messages greater than 512Kbytes in size are parked.
You should also edit
the [ParkedMessages]
quarantine area, found in the
mail configuration file, MIMESWP.CFG, to set the time
period during which the parked messages are to be released. This
is achieved using the ReleaseTime
directive.
The time period is specified in 24hr clock.
[ParkedMessages]
Location=C:\MSW\Qtine\Parked\
File=C:\MSW\Qtine\Parked\QUARNTNE.LST
ReleaseTime=21:00-22:00
In this example, messages are released
between 21:00
and 22:00
.
![]() |
Two other
directives can be used to control the release of parked
messages. These are ReleaseDisposal and ReleaseCoun t.
See page 7-28
for more details. |
ParkMessage
and HaveSize
directives are uncommented in
the [DetectSize]
configuration section. [DetectSize]
ParkMessage=MessageSize>524228
HaveSize=MessageSize>1048576
![]() |
The
directives are executed in the order that they appear in
the [DetectSize] configuration section. |
You may wish the size limit or parking facility to apply to certain users or groups of users only.
This can be achieved
by creating a new AMUcheck rule to name the users and then
setting an attribute during AMUcheck validation. This attribute
can subsequently be checked in the [DetectSize]
section, using a PerformIf
directive (to apply the
size limit or parking facility to certain users only) or a SkipIf
directive (to exclude certain users from the size limit or
parking facility).
RESPONSE allow RESPONSE isjunkmail PRIORITY 1 RESPONSE copyadministrator PRIORITY 1 RESPONSE deny PRIORITY 2RESPONSE No_BlockSize PRIORITY 2
FROM *@* To *@* allow ;allow everythingFROM user1@company.com ;List of users allowed user2@company.com ;to send large messages
user3@company.comTo *@* No_BlockSize
FINISH
A new AMUcheck rule is defined.
In this example, the
rule names the users who are allowed to send
large messages.1 When the
addresses of a message match with this rule the <Response>
generated by AMUcheck is No_BlockSize
.
A new RESPONSE
statement is also listed in the first section of the file, to
define the No_BlockSize
<Response>.
[AMU]
AuthFile=C:\MSW\CONFIG\AUTHFILE.TXT
If=No_BlockSize, PriveledgedPersons=TRUE, allow
The <Response>
is then reset to allow
. This is the actual <Response>
generated by AMUcheck. It allows the message to be delivered
normally, assuming no higher priority <Response>
is generated by one of the configured plug-in validator
instances.
[DetectSize]
SkipIf=PriveledgedPersons==TRUE
;ParkMessage=MessageSize>524228
HaveSize=MessageSize>1048576
The value of the PriveledgedPersons
attribute is checked in the [DetectSize]
configuration section, using a SkipIf
directive.
If the value is TRUE
then checking by the [DetectSize]
section is skipped.
For a similar configuration, using PerformIf
to apply the size limit or parking facility to certain users
only, see the blocking attachments example on page 5-29.
![]() |
See the AMUcheck section on page 7-97 for
more details. Also, for more details on the If ,
PerformIf and SkipIf
directives, see the Common validator directives section
on page 7-102. |
Copyright © 1998, Content Technologies Limited. All rights reserved.