If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.



Limit max mail size by user

Linux Forum

Linux Forum - Limit max mail size by user



Linux Forum Linux Forum. Red Hat, Fedora and other linux installs. Includes troubleshooting, setup and other information for this operating system OS.


Reply
  #1  
Old 11-19-2004, 08:20 AM
Luner Elf
Guest
 
Posts: n/a
Limit max mail size by user

Dear all,

has anyone solution that can limite user incoming
/outgoing mail size on linux?? I mean it's down
to user level. I've searched so many times and days
for this soultion, and it seems it's impossible....

Do I tell client they should use exchange server?

Any suggestion is highly appreciate...

Rgds,
Percy

--
¢Þ¢í¢ú¢ë£B¡@¢Ñ¢ð¢í¢ö¢ï


Reply With Quote
  #2  
Old 11-19-2004, 09:22 AM
erik
Guest
 
Posts: n/a
Limit max mail size by user

Luner Elf wrote:


This is usually done at smtp level, so by your MTA. Sendmail, postfix,
exim, all have options to do this.

It is usually not done on userlevel, but if it has to be done, use
quota.


Yes. If you want their solution not be safe.

EJ
--
Remove the obvious part (including the dot) for my email address.
http://www.vanwesten.net for examples of ipf and pf.
Reply With Quote
  #3  
Old 11-19-2004, 11:20 AM
Luner Elf
Guest
 
Posts: n/a
Limit max mail size by user

Dear Erik,

Yup, but it can just to be applied globally, I cannot
define it by user, even on domain...

I'm also thinking to use quota, but it can just
restrict to total mailbox size, but not per mail basis...

Is that really no solution to do that on linux?
"erik" <erik@geenspam.vanwesten.net>
???????:419dc958$0$78738$c5fe704e@news6.xs4all.nl. ..


Reply With Quote
  #4  
Old 11-19-2004, 12:28 PM
Walt
Guest
 
Posts: n/a
Limit max mail size by user

Exim can restrict on a per-message, per-mailbox, per-domain, per-user
basis. Pretty much whatever you want. Depending on how complex your
setup is, I would probably just store the limits in a mysql database or
flatfile, and query it inside a router (for message size) or transport
(mailbox size.)

There is a global limit on message size that you can set too.

Unlike sendmail and postfix, Exim configuration is stored in one place
in fairly readable syntax. There is also many ways and places you can
enforce these checks.

NOT TESTED router example:

reject_if_too_big:
driver = redirect
domains = customer.domain.com
condition = ${if > \

{$message_size}{${lookup{$local_part}lsearch{/etc/messagelimit}{$value}{50M}}}
\
{yes}{no}}
allow_fail
data = :fail: message too big.

/etc/messagelimit would contain lines like:
mike 10M
jerry 5M

If the user isn't in the file the limit would be 50M.

Again, that is not tested and may have syntax errors or something, but
the concept is valid.

The Exim faq even has an entry that can enforce the max size message
that users can SEND as well (see Q0719)


To get help with the details, I would suggest the exim-users mailing
list.

Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



Similar Threads
Thread Thread Starter Forum Replies Last Post
Firefox - Prevent TextField size change when user changes font size? Wongod HTML Forum 2 10-04-2006 12:26 PM
File Size Limit DoomedLung PHP Forum 3 09-15-2006 04:56 PM
limit image size Nikko HTML Forum 6 06-25-2006 09:42 PM
How to limit size of log file? Octessence Linux Forum 2 10-21-2004 11:09 PM
Limit to size of POST in forms? news.amnet.net.au HTML Forum 1 09-15-2004 02:16 AM


All times are GMT. The time now is 09:26 AM. Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd. Copyright 2007-20011 Internet Computer Forum






Page generated in 0.17388 seconds with 7 queries