Report "Message too large" to sender?

Julian Field mailscanner at
Sun Sep 12 14:30:32 IST 2004

At 09:32 12/09/2004, you wrote:
>Hello all,
>Recently we were forced to limit the size of messages sent by our network's
>users due to heavy traffic caused by "junk mail" - movies, wav files etc.
>Earlier we turned off reports to avoid excess internet traffic caused by
>sending notices to infected mail senders.
>What we would like to do is to send notices about the exceeded mail size to

It appears to send the "" message by virtue of the
Sender Error Report        = %report-dir%/

>  but to local senders only. Is there a way to configure MailScanner
>to send only notices saying "Message too large" and only to local users
>(i.e. to senders from a certain domain)?

You would need to set
Notify Senders of Other Blocked Content = %rules-dir%/notify.senders.rules
in MailScanner.conf.
Then in /etc/MailScanner/rules/notify.senders.rules you should put
From:        yes
FromOrTo: default               no

Another example:

If you wanted to change the report for different domains instead, you could put
Sender Error Report = %rules-dir%/
in MailScanner.conf, and in /etc/MailScanner/rules/ you
could put
From: /etc/MailScanner/reports/en/special.sender.error.txt
FromOrTo: default /etc/MailScanner/reports/en/

Julian Field
Professional Support Services at
MailScanner thanks transtec Computers for their support
PGP footprint: EE81 D763 3DB0 0BFD E1DC 7222 11F6 5947 1415 B654

------------------------ MailScanner list ------------------------
To unsubscribe, email jiscmail at with the words:
'leave mailscanner' in the body of the email.
Before posting, read the MAQ ( and
the archives (

More information about the MailScanner mailing list