---
name: "postfix-add-policy"
section: "8"
platform: "linux"
package: "postfix"
version: "3.10.13-0+deb13u1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/postfix-add-policy"
---

# postfix-add-policy(8)

add policy service to Postfix master.cf

## NAME

postfix-add-policy - add policy service to Postfix master.cf

## SYNOPSIS

```
postfix-add-policy [policy name...] [username...] [argv...]
```

## DESCRIPTION

The [**postfix-add-policy**(8)](/postfix-add-policy/8.md) command adds an smtp policy server named *policy name* running using *username* and called as *argv* to /etc/postfix/master.cf to facilitate integration of SMTP policy servers such as postgrey or postfix-policyd-spf-perl.  The configuration is based on the Postfix SMTPD\_POLICY\_README.  Administrators should verify it is appropriate for their requirements.

The original file is copied prior to modification and left in /etc/postfix to make it possible to revert changes easily.

Available in the Debian package for Postfix version 2.5.3 and later.

## DIAGNOSTICS

If the given *policy name*  already appears in the master.cf, a message will be printed to standard out and master.cf will not be modified.

## ENVIRONMENT

```

```

- **MAIL\_CONFIG**

  Directory with Postfix configuration files.

  The [**postfix-add-policy**(8)](/postfix-add-policy/8.md) command should use this, but it currently doesn't.  It is hard coded to /etc/postfix.  This should be changed.

## CONFIGURATION PARAMETERS

```

```

None

## FILES

```
/etc/postfix/master.cf
```

## SEE ALSO

```
postconf(5), Postfix configuration
```

## LICENSE

```

```

This software is licensed under the MIT open source license.

## AUTHOR(S)

```
Scott Kitterman
<scott@kitterman.com>
```
