| |||||||||||||||||||||||||||||||
|
This looks to be precisely what i'm looking for! Thanks very much sharing your work! Alex Pearson Terry Carmen <terry@cnysupport .com> To Sent by: Alex.Pearson owner-postfix-use cc rs postfix-users Subject Re: Holding Large Emails 15/11/2007 19:18 I ran into this earlier and didn't find a satisfactory solution, so I wrote one. It's available for download at: http://cnysupport.com/download/pfshu/ Tuesday, October 30, 2007 2:11 PM 8237 AddMsgSizeHeader < http://cnysupport.com/download/pfshu/AddMsgSizeHeader> Tuesday, October 30, 2007 2:11 PM 3743 AddMsgSizeHeader.c < http://cnysupport.com/download/pfshu/AddMsgSizeHeader.c> Tuesday, October 30, 2007 2:11 PM 160 Makefile < http://cnysupport.com/download/pfshu/Makefile> Download the AddMsgSizeHeader.c file and Makefile. AddMsgSizeHeader is a binary, complied on Centos (i586) and may or may not work on your system so I suggest recompiling. There's no "configure", just "make" The app runs as a filter, and adds a spamassassin-style X-MessageSize header containing 1 asterisk (*) for each MB, up to a max of 50, and a header containing the actual message size in bytes (as a number). Messages can be any size, however it stops calculating the size after 50MB. To use it, add /^X-ActualMessageSizeBytes.*/ WARN /^X-ActualMessageSize.*\*\*\*\*\*/ HOLD to your postfix header_checks file. this will hold anything more than 5MB and add a log entry. You can then release the messages using postsuper -H It's a C app and has been running flawlessly for several months on a moderately busy server (15-20K Msgs/day), however your mileage may vary. If you find/fix any bugs, please let me know so I can update the source. Author: Terry Carmen -- terry Released to the public domain 9/21/2007 No warranty or representations of any kind are made. If you like it or have suggestions, please drop me an email. It may operate perfectly, or break into your apartment while you're sleeping, drink all your beer and eat all your cold pizza. Terry Alex.Pearson wrote: > Hi All, > Hope someone can help with this one. I'm sure it must be quite > simple (well hopefully). > > We have a large number of emails going over a sometimes very > congested link. So i need to hold emails over a certain size (ie 10mb), to > be delivered after 18:00. > I have used postfix a lot, however have drawn a blank with this, i've > searched everywhere i can think of, so any help would be muched > appreciated..... I presume creating some sort of rule, so that large > emails are placed in the held queue, and then flushing this queue after a > certain time? > > Again any help appreciated. > > Thankyou very much in advance! > > Alex Pearson > > > > ********************************************************************** > 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. > > Please note that the East Riding of Yorkshire Council is able to, and reserves the right to, monitor e-mail communications passing through its network. > > If you have received this email in error please notify our mail manager at postmaster. > > Whilst every effort has been made to check for viruses in this e-mail and any attachments, the Council does not warrant that it or they are free of viruses. If in any doubt then please ask for the hard copy. > ********************************************************************** > -- Terry Carmen CNY Support, LLC Web. Database. Business. 315.382.3939 http://cnysupport.com terry ********************************************************************** 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. Please note that the East Riding of Yorkshire Council is able to, and reserves the right to, monitor e-mail communications passing through its network. If you have received this email in error please notify our mail manager at postmaster. Whilst every effort has been made to check for viruses in this e-mail and any attachments, the Council does not warrant that it or they are free of viruses. If in any doubt then please ask for the hard copy. **********************************************************************
| ||||||||||||||||||||||||||||||
© 2004-2008 readlist.com