There is likely a pretty easy way to do it using procmail which is a filter system designed for this kind of thing. (and then some)
I'm sure there's some other people on this list, that could probably whip you up something off the top of their head, but if you google for the project site, or go here: http://rhols66.adsl.netsonic.fi/era/procmail/mini-faq.html you could probably roll one up in an afternoon. -Micah On Monday 28 June 2004 10:53 am, James XMS wrote: > It would be great if someone could point me in the right direction on how > to do that, or even better integrate it into dbmail so there isn't the > slowdown of spawning a perl script or whatever every time a mail is > delivered. > > Cheers > James > > On Mon, 28 Jun 2004 15:43 , Micah <[EMAIL PROTECTED]> sent: > >I understand now, it's a mail size limit on a user level, not a system > > wide limit.. Sorry.. I'm sure you can do that now with dbmail if you pipe > > things through a custom script. You could write a perl script or > > something that would send a rejection note if the mail was too big, > > otherwise it would just deliver it. > > > >-Micah > > > >On Monday 28 June 2004 10:37 am, James XMS wrote: > >> I'm not sure i understand what you mean exatly, but my problem is that > >> the managing directors of my company want to be able to recieve mails of > >> up to 15mb, whereas standard users should only be able to receive mails > >> of up to 3mb. > >> > >> Cheers > >> James > >> > >> On Mon, 28 Jun 2004 15:25 , Micah [EMAIL PROTECTED]> sent: > >> >Not to be a stick in the mud, but why not just limit the overall size > >> > of the email? You're not likely to get a 1megabyte email with no > >> > attachments. This is what I do, but I'll admit I don't know the > >> > particulars of your situation. > >> > > >> >Just curious, > >> >-Micah > >> > > >> >On Monday 28 June 2004 10:08 am, James XMS wrote: > >> >> Hi All, > >> >> > >> >> I have recently come to a situation where i need to set incoming > >> >> attachment size limits for managers/users within my company. > >> >> > >> >> After speaking to postfix guru's everyone came to the decision that > >> >> there was no way to do it at MTA level. > >> >> > >> >> Therefore, i would like to make a feature request that dbmail could > >> >> check attachment sizes on incoming mail against a field in the dbmail > >> >> database for a user and accept/reject the mail accordingly. > >> >> > >> >> Let me know what you all think, because i believe that this is one of > >> >> those little things that could set dbmail in a class of its own ( not > >> >> that its not already :) ). > >> >> > >> >> Cheers > >> >> James > >> >> > >> >> --- Msg sent via @Mail - http://atmail.nl/ > >> >> _______________________________________________ > >> >> Dbmail mailing list > >> >> Dbmail@dbmail.org > >> >> https://mailman.fastxs.nl/mailman/listinfo/dbmail > >> > >> --- Msg sent via @Mail - http://atmail.nl/ > >> _______________________________________________ > >> Dbmail mailing list > >> Dbmail@dbmail.org > >> https://mailman.fastxs.nl/mailman/listinfo/dbmail > > --- Msg sent via @Mail - http://atmail.nl/ > _______________________________________________ > Dbmail mailing list > Dbmail@dbmail.org > https://mailman.fastxs.nl/mailman/listinfo/dbmail