Yes, Ideally I would liked to reject them sendmail end, but I couldnt figure
out how to do that !
(even after a lot of googling !)
In reality, what happens is that large mails come in to 2 or 3 people, and
then they send them on to all their friends, so that 1 meg video clip gets
sent out again about 20 times, and my poor wee 56k modem takes a while at
that task !
If i only have to accept 1 MB, and then not deliver it locally, it saves me
20 MB outgoing
I'm not too worried about virus (virii ?) as my mailscanner + f-prot
*should" take care of them, but I dont want to block .avi or .mpg files
across the board, like I do with .exe's and .scr's etc etc.
Is there an easy way in my procmailrc to say:
"if its has an attached file with a .mpg or .avi extension, AND its more
than 500K, reject it"
Cheers,
Declan
> Niall O Broin scribbled ..
> Subject: Re: [ILUG] {LONG} sendmail smart host & procmail recipes
>>> I'm puzzled about this - my understanding is that procmail is an
> lda so its
> filtration of messages takes place after they have arrived at
> your box. Now
> AFAIR you want to reject messages over a certain size for
> bandwidth reasons.
> Am I correct in my memory ? If that is the case, then using
> procmail on your
> local machine to reject messages over a certain size is pointless because
> they've already arrived on your machine - you'd need to use
> procmail on the
> server from which you receive your mail. Dave Wilson also mentioned using
>> O MaxMessageSize=<number>
>> in your sendmail.cf but the flaw in this is that not all sending servers
> will send the message size before the message and you may be sure that
> spammers or 'doze worms running their own little SMTP servers certainly
> won't.
><snip>
Maintained by the ILUG website team. The aim of Linux.ie is to
support and help commercial and private users of Linux in Ireland. You can
display ILUG news in your own webpages, read backend
information to find out how. Networking services kindly provided by HEAnet, server kindly donated by
Dell. Linux is a trademark of Linus Torvalds,
used with permission. No penguins were harmed in the production or maintenance
of this highly praised website. Looking for the
Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!