---
name: "Mail::MtPolicyd::Client::Request"
section: "3pm"
platform: "linux"
package: "mtpolicyd"
version: "2.05-1.2"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/Mail::MtPolicyd::Client::Request"
---

# Mail::MtPolicyd::Client::Request(3pm)

a postfix policyd client request class

## NAME

Mail::MtPolicyd::Client::Request - a postfix policyd client request class

## VERSION

version 2.05

## DESCRIPTION

Class for construction of policyd requests.

### SYNOPSIS

```
  use Mail::MtPolicyd::Client::Request;
  $request = Mail::MtPolicyd::Client::Request->new(
    'client_address' => '127.0.0.1',
  );
```

### METHODS

- as\_string

  Returns the request in as a string in the policyd request format.

### ATTRIBUTES

- type (default: smtpd\_access\_policy)

  The type of the request.

- instance (default: **rand()** )

  The instance ID of the mail processed by the MTA.

- attributes (default: {} )

  A hashref with contains all key/value pairs of the request.

## AUTHOR

Markus Benning \<ich@markusbenning.de\>

## COPYRIGHT AND LICENSE

This software is Copyright (c) 2014 by Markus Benning \<ich@markusbenning.de\>.

This is free software, licensed under:

```
  The GNU General Public License, Version 2, June 1991
```
