---
title: "Postfix max mail file size"
date: "2009-02-26"
path: "/30-postfix-max-mail-file-size.html"
section: "/ramblings"
aliases:
  - "/30"
  - "/30-postfix-max-mail-file-size"
  - "/30.html"
  - "/ramblings/30-postfix-max-mail-file-size.html"
---

To obtain the current limit use (system used: Debian 4):

```
postconf | grep message_size_limit
```

Now edit the main postfix config:

```
nano /etc/postfix/main.cf
```

Add the line:

```
message_size_limit = 40960000
```

Now reload the postfix app:

```
/etc/init.d/postfix reload
```

Check again to see that the file size has been altered:

```
postconf | grep message_size_limit
```
