On Thu, May 20, 1999 at 08:06:52PM -0300, Eric Dahnke wrote:

> I am in need of setting message size limits on a per virtual domain
> basis.
> 
> I've got a system wide /control/databytes limit, and can see that I can
> limit on a per user basis via: |bouncesaying 'Message too big' [ `wc -c`
> -gt 10000 ] in the users .qmail file.
> 
> What would be fantastic is if I could put |bouncesaying 'Message too
> big' [ `wc -c` -gt 10000 ] in the .qmail-default file for the user which
> controls each virtual domain. But that doesn't work, or am I doing
> something wrong?

the .qmail-default file will only be looked at if there is no .qmail-user
file for [EMAIL PROTECTED] I can only suppose that you have such files
in the home directory of the user controlling the virtual domain. Remove
them, and the .qmail-default will work.

> If I'm out of luck on the above tack, anyone care to share how they
> would go about limiting message size on a per virtual domain basis.
> DATABYTES environment var and tcpd?

The use of the DATABYTES variable allows setting a size limit on messages
*originating* from some IP, not *destined* for some domain. Therefore, if
you want to set a limit for an entire virtual domain, you will have to run
a second copy of qmail-smtpd, listening on another IP address on your
machine, and then have a rule like:

:allow,DATABYTES="some limit"

for that instance of qmail-smtpd.

-- 
System Administrator
See complete headers for address, homepage and phone numbers

Reply via email to