1. Please take a little time for this simple survey! Thank you for participating!
    Dismiss Notice
  2. Dear Pleskians, please read this carefully! New attachments and other rules Thank you!
    Dismiss Notice
  3. Dear Pleskians, I really hope that you will share your opinion in this Special topic for chatter about Plesk in the Clouds. Thank you!
    Dismiss Notice

limit email siz

Discussion in 'Plesk for Linux - 8.x and Older' started by duke22, Sep 13, 2005.

  1. duke22

    duke22 Guest

    hello just wondering whether there is a way to restrict the size of the email user can receive. I don't mean the actuall mailbox size but the size of the individual emails?

    I would assume the limit for the mailbox quota is for the mailbox size isn't it?

    thanks for your help
  2. jamesyeeoc

    jamesyeeoc Guest

    I have not tried this myself (never had the need), but you may want to try creating/editing the Qmail control file:


    Here's the info from 'man qmail-smtpd':
                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
    I'm not sure if this would include attachment size or just message body size.