Postfix mail server limit the mailbox size
So how do you limit the mailbox size for users configured with the Postfix mail server?
It is good choice to avoid problem (disk DoS) by limiting mailbox size. This will avoid the user or hacker to eat up all hard disk space.
Display the default mailbox size limit
Type the following command:
# postconf mailbox_size_limit
Output:
mailbox_size_limit = 51200000
51200000 bytes is default mailbox size limit.
Display the default maximum size in bytes of a message
Type the following command:
# postconf message_size_limit
Output:
message_size_limit = 10240000
Setup new mailbozsize limit
Open file /etc/postfix/main.cf and
# vi /etc/postfix/main.cf
Add/modify/set values as follows:
mailbox_size_limit = 30000000
message_size_limit = 10240000
Save and restart postfix mail server:
# /etc/init.d/postfix restart
Want to stay up to date with the latest Linux tips, news and announcements? Subscribe to our free e-mail newsletter or RSS feed to get all updates.
You can Email this page to a friend.
You may also be interested in other helpful articles:
- Postfix Illegal seek / queue file write mail server error and solution
- Postfix mail server block .bat, .exe .com .vbs mime attachments - common virus spreading files
- Quick Tip: Postfix Flush the Mail Queue
- Postfix masquerading or changing outgoing SMTP email or mail address
- Postfix and MS-Exchange Mail Server Affected by ORDB.org Spam Service
Discussion on This Article:
Leave a Reply
We encourage your comments, and suggestions. But please stay on topic, be polite, and avoid spam. Thank you very much for stopping by our site!
Tags: default_mailbox, hard_disk_space, mailbox_size_limit, mail_server, Postfix



this option is for all users ,
how to make diffrent mail box sizes for diffreent users or groups