≡ Menu

hard disk space

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

Resize Windows Partition with Open Source Software

You would like to install Linux/BSD Os but windows partition is taking up your whole hard disk space. Or you don't want to pay money to resize hard disk partition (tools like partition magic costs money). Not to worry you can resize partition with KNOPPIX Live Linux CD.

RESIZE PARTITION with Knoppix Live CD

Step #1 : Visit official Knoppix site and download live CD.

Step #2 : Burn Knoppix Live CD to DVD/CD media

Step #3 : Boot from CD

Step #4 : Boot into Knoppix > Open terminal > type command qtparted >

Step #5: Follow on screen instructions to resize your windows partition

Update: We are updating this howto. Please come back later or browse all our latest tips & tricks from home page. You may also try out following softwares for resize windows partition :

Related articles:

  1. Maximum Partition size supported by Linux
  2. Mount remote windows partition (windows share) under Linux
  3. The importance of Linux partitions
  4. Restore Debian Linux Grub boot loader
  5. Series: Understanding UNIX/Linux file system

Translation: