---
name: "postfix-nochroot"
section: "8"
platform: "linux"
package: "selinux-basics"
version: "0.6.0"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/postfix-nochroot"
---

# postfix-nochroot(8)

change /etc/postfix/master.cf to not use chroot

## NAME

postfix-nochroot - change /etc/postfix/master.cf to not use chroot

## SYNOPSIS

**postfix-nochroot**

## DESCRIPTION

Renames /etc/postfix/master.cf to /etc/postfix/master.cf.bak and creates a new /etc/postfix/master.cf file with every service configured to not use chroot.  Every modified line is commented.  It also restarts Postfix (to apply the change) and rmoves the unused chroot directories /var/spool/postfix/{etc,lib,usr} .

Using a chroot environment makes upgrades more difficult and gets in the way when running SE Linux (without actually providing any security benefit in a SE Linux system).

## SEE ALSO

[**selinux**(8)](/selinux/8.md), **[sestatus(8)](/sestatus/8.md),** [**selinuxenabled**(1)](/selinuxenabled/1.md), **[check-selinux-installation(8)](/check-selinux-installation/8.md),** **[selinux-config-enforcing(8)](/selinux-config-enforcing/8.md),** **[selinux-policy-upgrade(8)](/selinux-policy-upgrade/8.md),** http://wiki.debian.org/SELinux - More about SELinux Debian install, http://etbe.coker.com.au/tag/selinux/ - Russell's SE Linux blog posts, http://etbe.coker.com.au/2008/08/02/postfix-and-chroot/ - post about this script.

## AUTHOR

This program and it's man page was written by Russell Coker \<russell@coker.com.au\> for  the **Debian** system (but may be used by others).  Permission is  granted to copy, distribute and/or modify this document under  the terms of the GNU General Public License, Version 3.

On Debian systems, the complete text of the GNU General Public  License can be found in /usr/share/common-licenses/GPL-3.
