Defined Type: exim::rewrite

Defined in:
manifests/rewrite.pp

Summary

This define is used to build rewrite rules

Overview

Parameters:

  • order (Integer) (defaults to: 1)

    Determines the order, in which retry statements are evaluated

  • pattern (String)

    Matches those addresses that are to be rewriten by rule

  • replacement (String)

    the replacement string for matching pattern

  • flags (Array[Enum['E','F','T','b','c','f','h','r','s','t','Q','q','R','w','S']])

    The flags are single characters which indicates the address location to which the rule applies and how the rewriting takes place



17
18
19
20
21
22
23
24
25
26
27
28
# File 'manifests/rewrite.pp', line 17

define exim::rewrite (
  String $pattern,
  String $replacement,
  Array[Enum['E','F','T','b','c','f','h','r','s','t','Q','q','R','w','S']] $flags,
  Integer $order=1,
  ){
  concat::fragment { "rewrite-${title}":
    target  => $::exim::config_path,
    content => template("${module_name}/rewrite/rewrite.erb"),
    order   => $order + 6000,
  }
}