Maximum Message Size / Attachments.

Richard Mealing richard at
Mon Oct 24 13:58:19 IST 2011

From: mailscanner-bounces at [mailto:mailscanner-bounces at] On Behalf Of Jan
Sent: 24 October 2011 13:23
To: MailScanner discussion
Subject: SV: Maximum Message Size / Attachments.

>To:     *<mailto:*>      5M
>Again the email just comes through nicely, but not what I want!

I have not used this setting, but the doc says "size in bytes". That _may_ be one problem.

Also, aren't rules evaluated on a "first hit" basis? You probably want to move your "default" line to the end of the rule-set.

That doesn't seem to make any difference in my setup. I did already try with the bytes thing, I checked previous posts and could see some people using the 'M' in the size part of the ruleset, so I assumed it would work. No one actually coming back and saying they got it working, though... Anyone?

I changed it to;

To:                                5242880

I then moved the default rule down to the bottom and reloaded mailscanner (I don't think this would matter though, I have other rulesets with default at the top). I re-sent the email and I got it through again. The logs show the same result.

Does anyone have this working?

Also, if this does work, can you configure the bounce message with a custom message?

Sendmail can only do this globally, as far as I can see. I don't really want to install another milter, if mailscanner can do this.

Many thanks,

-------------- next part --------------
An HTML attachment was scrubbed...

More information about the MailScanner mailing list