Remove big attachements, but deliver the email

Julian Field MailScanner at
Fri Apr 4 13:59:34 IST 2008

Hash: SHA1

You would need to write a Custom Function in order to actually remove 
large attachments. However, what may be useful is the setting "Zip 
Attachments" in MailScanner.conf, as this will make it replace large 
attachments with a zip file containing the attachments. This preserves 
the attachments while still usually making the message a lot smaller. Is 
this of any use to you instead?

If you were to write a Custom Function to remove large attachments, the 
"Zip Attachments" code would certainly show you how to do it.

If you are prepared to pay me a decent rate, I will write the Custom 
Function for you...

Best regards,

Induni Marco wrote:
> Dear all,
> as many people we limit the size of an incoming email message (on our 
> case to 10 MB) via max.message.size.rules.
> So when a message reach this limit, we will keep the message in 
> quarantine, and we send a Warnig message to the sender and the recevier.
> I was wondering if there is a way to eventually remove the "big" 
> attachment, but delivery the email text (message) anyway.
> Thank you and best regards
> Marco
> -- 
> Radiotelevisione Svizzera di Lingua Italiana
> Casella Postale
> 6903 LUGANO
> Tel. +41 (0)91 803 63 83
> <<Induni Marco.vcf>>
> ****************************************************************
> Visit: <>
> This email and any files transmitted with it are confidential and 
> intended solely for the use of the individual or entity to whom they 
> are addressed. If you have received this email in error please notify 
> postmaster at 


- -- 
Julian Field MEng CITP CEng
Buy the MailScanner book at

Need help customising MailScanner?
Contact me!
Need help fixing or optimising your systems?
Contact me!
Need help getting you started solving new requirements from your boss?
Contact me!

PGP footprint: EE81 D763 3DB0 0BFD E1DC 7222 11F6 5947 1415 B654

Version: PGP Desktop 9.8.2 (Build 3005)
Comment: (pgp-secured)
Charset: ISO-8859-1


This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

More information about the MailScanner mailing list