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
Featured Articles:
- 20 Linux System Monitoring Tools Every SysAdmin Should Know
- 20 Linux Server Hardening Security Tips
- Linux: 20 Iptables Examples For New SysAdmins

- My 10 UNIX Command Line Mistakes
- 25 PHP Security Best Practices For Sys Admins
- The Novice Guide To Buying A Linux Laptop
- Top 5 Email Client For Linux, Mac OS X, and Windows Users
- Top 20 OpenSSH Server Best Security Practices
- Top 10 Open Source Web-Based Project Management Software
Facebook it - Tweet it - Print it -
We're here to help you make the most of sysadmin work. So, subscribe!


{ 1 comment… read it below or add one }
this option is for all users ,
how to make diffrent mail box sizes for diffreent users or groups