Re: [qmailtoaster] how to increase email size in one email account

2016-04-05 Thread Sebastian Grewe
Hey Manikandan,

This is from the man page for qmail-smtpd 
(http://www.qmail.org/man/man8/qmail-smtpd.html):

databytes
   Maximum number of bytes allowed in a message, or 0 for
   no limit.  Default: 0.  If a message exceeds this
   limit, qmail-smtpd returns a permanent error code to
   the client; in contrast, if the disk is full or qmail-
   smtpd hits a resource limit, qmail-smtpd returns a
   temporary error code.

   databytes counts bytes as stored on disk, not as
   transmitted through the network.  It does not count the
   qmail-smtpd Received line, the qmail-queue Received
   line, or the envelope.

   If the environment variable DATABYTES is set, it
   overrides databytes.

As you can see there is a environment variable available that can override the 
default setting from your control folder. I am not entirely certain if this 
also works on a per-user basis (I don’t think it would) but it would certainly 
work on a IP basis. This is from another sample on the Webz 
https://www.safaribooksonline.com/library/view/qmail/1565926285/ch04s09.html):

# allow 50 megabyte powerpoints from the boss
209.58.173.10:allow,DATABYTES="5000"
 
# allow 20 meg outgoing mail from nearby hosts
172.16.15.1-127.:allow,RELAYCLIENT="",DATABYTES="2000"
So if that user is running with a specific IP you could allow them to exceed 
your default limit. This may or may not work for you but it’s the best I could 
find quickly. Others may have better ideas/solutions for your problem :-)

Cheers,
Sebastian


> On 05 Apr 2016, at 08:49, Chandran Manikandan  wrote:
> 
> Hi All,
> 
> Am running qmailtoaster in centos 6.6 64 bit.
> 
> I have allowed email size 10 MB in /var/qmail/control/databytes file and able 
> to send and receive emails with the 10 MB size.
> 
> I need to allow one email account 20 MB size email for send and receive, rest 
> of other accounts remain same 10 MB size.
> 
> Is there any option to allow in that file.
> 
> -- 
> Thanks,
> Manikandan.C
> System Administrator



[qmailtoaster] how to increase email size in one email account

2016-04-05 Thread Chandran Manikandan
Hi All,

Am running qmailtoaster in centos 6.6 64 bit.

I have allowed email size 10 MB in /var/qmail/control/databytes file and
able to send and receive emails with the 10 MB size.

I need to allow one email account 20 MB size email for send and receive,
rest of other accounts remain same 10 MB size.

Is there any option to allow in that file.

-- 
*Thanks,*
*Manikandan.C*
*System Administrator*