Puppet Class: postfix::sasl

Defined in:
manifests/sasl.pp

Summary

use case for configuring sasl authentication

Overview

This class will generate the settings required for SASL authentication.

Examples:

Basic usage for dovecot


class { 'postfix::sasl': }

Parameters:

  • type (Any) (defaults to: 'dovecot')

    Postfix ‘smtpd_sasl_type` setting.

  • path (Any) (defaults to: 'private/auth')

    Postfix ‘smtpd_sasl_path` setting.

  • broken_clients (Any) (defaults to: true)

    Postfix ‘broken_sasl_auth_clients` setting.

  • security_options (Any) (defaults to: 'noanonymous, noplaintext')

    Postfix ‘smtpd_sasl_security_options` setting.

  • tls_security_options (Any) (defaults to: 'noanonymous')

    Postfix ‘smtpd_sasl_tls_security_options` setting.

  • smtpd_tls_auth_only

    Postfix ‘smtpd_tls_auth_only` setting.

  • tls_auth_only (Any) (defaults to: true)


23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# File 'manifests/sasl.pp', line 23

class postfix::sasl(
  $type = 'dovecot',
  $path = 'private/auth',
  $broken_clients = true,
  $security_options = 'noanonymous, noplaintext',
  $tls_security_options = 'noanonymous',
  $tls_auth_only = true,
) {
  postfix::maincf::param { 'smtpd_sasl_type':
    value => $type,
  }
  postfix::maincf::param { 'smtpd_sasl_path':
    value => $path,
  }
  postfix::maincf::param { 'broken_sasl_auth_clients':
    value => $broken_clients,
  }
  postfix::maincf::param { 'smtpd_sasl_security_options':
    value => $security_options,
  }
  postfix::maincf::param { 'smtpd_sasl_tls_security_options':
    value => $tls_security_options,
  }
  postfix::maincf::param { 'smtpd_tls_auth_only':
    value => $tls_auth_only,
  }
}