Koozali.org: home of the SME Server

Legacy Forums => Experienced User Forum => Topic started by: Tor Tveitane on December 27, 2003, 06:48:25 PM

Title: Reject big incoming messages to one user
Post by: Tor Tveitane on December 27, 2003, 06:48:25 PM
Hi,

I have asked this i in the general user forum and was advised to do a search in previous forum messages.    I had done that but I had only found tips how to reject message above a certain limit for *any* user.

I'm using smev6b3 in a development project in Africa, we need this restriction to avoid big messages piling up and choke a very bad dialup connection to one of our users.

Please guys, I don't ask this because I'm lazy, but I would be *very* grateful if someone out there could take some minutes and advise me how to reject incoming messages of, say 200k, to user johndoe and return a custom message to the sender stating that the message was deleted due to its size.

kind regards

Tor
Title: Re: Reject big incoming messages to one user
Post by: Tor Tveitane on December 29, 2003, 01:43:54 AM
Hi again,

Does the lack of replies to the above post mean that

a) this is not possible with SME v6 without major changes
b) the question is stupid (the solution is too obvious)
c) I have expressed myself very unclearly

.... or am I just too impatient?

Sorry folks but I would appreciate comments / suggestions to solve this  problem (if it ever is possible).  Now I delete those big messages and warn the sender manually by email, which takes a lot of my time.

kind regards

Tor
Title: Re: Reject big incoming messages to one user
Post by: Arne on December 29, 2003, 08:49:49 AM
I don't know for sure, but I think it should be possible, not in a easy way, but in one way or the other.  Those mechanisms that is checking for spam and for viruses (if they are installed), why shouldn't they be able to check for size ??

Send me a few words about Africa (no I'm not jocking, I guess it is wamer and quite diffrent from Stavanger.)

I don't have the solution, but I could try to look into it for some hours, as I had planned to learn this e-smith anyhow.

best reg arne2002@hotmail.com

By the way .. the easy and temporary solution .. couldent the user just check mail via Horde webmail, and then manually download the small and not he big attachments ??
Title: Re: Reject big incoming messages to one user
Post by: Arne on December 29, 2003, 09:11:24 AM
Quote "Now I delete those big messages and warn the sender manually by email, which takes a lot of my time. " Unquote

I guess one other way of solving this problem if the filtering way don't work coul be to make an automatic routine, something like a cron job that "delete those big messages and warn the sender by email"

Just some ideas ..
Title: Re: Reject big incoming messages to one user
Post by: Byte on December 29, 2003, 12:41:44 PM
This is possible!! But does require MAJOR work thats why I posted the restrict all users as before...
Title: Re: Reject big incoming messages to one user
Post by: Tor Tveitane on January 04, 2004, 10:08:39 PM
Arne wrote:

> I guess one other way of solving this problem if the
> filtering way don't work coul be to make an automatic routine,
> something like a cron job that "delete those big messages and
> warn the sender by email"
>
> Just some ideas ..

Thanks Arne,

Sorry for my late answer.  I just got home from one week in the bush and needed three showers to get rid of the red desert dust in my hair ;-)

To explain my problem more specifically:

We have a few compounds out in the bush here with *very* bad dialup connections to the internet.  If several multi megabyte messages pile up in those mailboxes they are never able to fetch all.  All messages to users living out there goes via our sme server here in town and they immediately get forwarded to those bush compounds mailboxes (at their ISP's server).  Maybe we could do smth with the forwarding...?

The .qmail file in these user's mailroot has the

&their_address@their_isp

forwarding entry.  Would it be possible to add some conditions here to only fwd messages less than a certain number of bytes?  The tricky part might be to send a warning message back to the sender and tell that the message was too big to reach the recipient...

Thanks again for hints and tips...

regards

Tor