Once You Know, You Newegg
Home FAQ Qmail Limiting messages sizes qmail will accept
Limiting messages sizes qmail will accept PDF Print E-mail
Tuesday, 07 April 2009 01:07

Create /var/qmail/control/databytes and then within the file specify the maximum size of the message you want to allow in bytes. If you want to limit messages to roughly 10 megabytes then you would put 10000000 in the file, or you can use google so you can get the size right on the money.

# chmod 644 /var/qmail/control/databytes
# chown root:qmail  /var/qmail/control/databytes
# qmailctl restart