• The new Python extension is now available. It allows customers to deploy and manage WSGI-based Python applications on their websites directly from Plesk.
  • Debian 11 has reached its end-of-life (vendor EOL date - August 31, 2026). Plesk Obsidian 18.0.81 is the last release to support it.
    If you are running Plesk Obsidian on Debian 11, we recommend you upgrade those servers to Debian 12 using our dist-upgrade tool.
  • We plan to deprecate and remove the support for XML RPC protocol versions earlier than 1.6.9.1 in Plesk Obsidian 18.0.82. We strongly recommend that you update all existing integrations using earlier versions of the XML RPC protocol to comply with the version 1.6.9.1 specification.

limit email siz

D

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
 
I have not tried this myself (never had the need), but you may want to try creating/editing the Qmail control file:

/var/qmail/control/databytes

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