Re: mailsize limit

2001-07-25 Thread Magnus Bodin

On Tue, Jul 24, 2001 at 10:15:03PM +0300, Constantine Koulis wrote:
 Dear Sir.
 I am very interested to do what u said in ur email about limiting the 
 mailbox size.please give me an example how to do it cause i do use the
 tcp.smtp file.

Sometimes I am very baffled on how little work some readers of this list
are about to do by themselves. Please READ THE DOCS NEXT TIME and at least
try. Everything in life is not given in examples. 

But. Instead of _just_ being grumpy, I answer as well:

Here is an example /etc/tcp.smtp-file:

#
# /etc/tcp.smtp
#
#
#  Allow RELAYING from LOCAL NETS
#  as specified in RFC 1918 http://rfc1918.x42.com/
#  (These nets are per definition always internal and not on the Internet)
#
192.168.:allow,RELAYCLIENT=,DATABYTES=0
172.16-31.:allow,RELAYCLIENT=,DATABYTES=0
10.:allow,RELAYCLIENT=,DATABYTES=0
#
#
#
#  Allow RELAYING also from LOCALHOST
127.:allow,RELAYCLIENT=
#
#
#
#  DO NOT allow RELAYING, but allow CONNECTING from ALL OTHER
#
:allow


Then just compile the tcp.smtp-file normally and hey, run.

Summer is warm and nice.

/magnus



Re: mailsize limit

2001-07-24 Thread Magnus Bodin

On Tue, Jul 24, 2001 at 05:04:25PM +0200, Frank Moeller wrote:
 Hi all.
  
 I'd like to do some mailsize limiting with qmail and I'm wondering
 if there's a simple way to do this:
  
 - external to local should be limited to i.e. 5Mb
 - local to local mail should be unlimited
  
 What I'm looking for is some kind of domain dependend maximum mail size
 limiting...

You can set the environment variable DATABYTES
in your tcp.smtp-file (that I assume you use and compile to tcp.smtp.cdb,
and use with tcpserver according to life with qmail).

Just like you set RELAYCLIENT=, you can set DATABYTES there to different
values. 

Set DATABYTES TO 0 if you don't want any limit.
set it to something else to limit.

/magnus

-- 
Unfortunately, those people who have nothing better to do than post on the
 Internet all day long are rarely the ones who have the most insights.
   - Jakob Nielsen, August 1997



Re: mailsize limit

2001-07-24 Thread Constantine Koulis

Dear Sir.
I am very interested to do what u said in ur email about limiting the 
mailbox size.please give me an example how to do it cause i do use the
tcp.smtp file.
Sincerely

Tks  Best Regards
Koulis Constantine.
Bucharest Romania
Business Phone :+4-093979131


From: Magnus Bodin [EMAIL PROTECTED]
To: Frank Moeller [EMAIL PROTECTED]
CC: [EMAIL PROTECTED]
Subject: Re: mailsize limit
Date: Tue, 24 Jul 2001 17:32:39 +0200

On Tue, Jul 24, 2001 at 05:04:25PM +0200, Frank Moeller wrote:
  Hi all.
 
  I'd like to do some mailsize limiting with qmail and I'm wondering
  if there's a simple way to do this:
 
  - external to local should be limited to i.e. 5Mb
  - local to local mail should be unlimited
 
  What I'm looking for is some kind of domain dependend maximum mail size
  limiting...

You can set the environment variable DATABYTES
in your tcp.smtp-file (that I assume you use and compile to tcp.smtp.cdb,
and use with tcpserver according to life with qmail).

Just like you set RELAYCLIENT=, you can set DATABYTES there to different
values.

Set DATABYTES TO 0 if you don't want any limit.
set it to something else to limit.

/magnus

--
Unfortunately, those people who have nothing better to do than post on the
  Internet all day long are rarely the ones who have the most insights.
- Jakob Nielsen, 
August 1997


_
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp