postfix
: configure postfix, main classpostfix::config::main
: configures the main.cf file This class is included by postfix::server and postfix::satellite to write the main.cf filepostfix::config::master
: configure master.cfpostfix::service
: create the postfix Service
postfix::config::service
: define a service in master.cf file of postfix See master(5) for detailspostfix::map
: this defines a map for postfix you can either use $source or $content parameter or use your own concat::fragment resources to add content to
configure postfix, main class
include postfix
The following parameters are available in the postfix
class:
packages
package_ensure
use_profile
parameters
parameters_profiles
services
services_profiles
maps
maps_profiles
map_dir
ssl_dir
owner
group
mode
postmap_command
create_resources
master_cf_file
main_cf_file
Data type: Array
packages to install
Default value: ['postfix']
Data type: String
defaults to 'installed'
Default value: 'installed'
Data type: String[1]
profile for the configuration to use.
Default value: 'none'
Data type: Hash
Hash of parameters for server Remark: in hiera this parameter is hash merged
Default value: {}
Data type: Hash
a Hash of profiles for parameters (see above) if $postfix::use_profile is set then and $parameters_profiles["$postfix::use_profile"] exists, the profile is merged with $postfix::parameters. Like this several config profiles can be defined (eg. mailserver, mail satellite, etc.) Remark: in hiera this parameter is hash merged
Default value: {}
Data type: Hash
Hash of services for server Defaults to {} Remark: in hiera this parameter is hash merged
Default value: {}
Data type: Hash
a Hash of profiles for services (see above) if $postfix::use_profile is set then and $services_profiles["$postfix::use_profile"] exists, the profile is merged with $postfix::services. Like this several config profiles can be defined (eg. mailserver, mail satellite, etc.) Remark: in hiera this parameter is hash merged
Default value: {}
Data type: Hash
Hash of maps to generate Defaults to {} Remark: in hiera this parameter is hash merged
Default value: {}
Data type: Hash
a Hash of profiles for maps (see above) if $postfix::use_profile is set then and $maps_profiles["$postfix::use_profile"] exists, the profile is merged with $postfix::maps. Like this several config profiles can be defined (eg. mailserver, mail satellite, etc.) Remark: in hiera this parameter is hash merged
Default value: {}
Data type: String
directory for maps to create
Default value: '/etc/postfix/maps'
Data type: String
directory for ssl to create
Default value: '/etc/postfix/ssl'
Data type: String
file and directory owner
Default value: 'root'
Data type: String
file and directory group
Default value: 'root'
Data type: String
file mode
Default value: '0644'
Data type: String
the postmap command to use
Default value: '/usr/sbin/postmap'
Data type: Hash
generic create_resources (for certificates etc)
Default value: {}
Data type: String
filename and path to master.cf file
Default value: '/etc/postfix/master.cf'
Data type: String
filename and path to main.cf file
Default value: '/etc/postfix/main.cf'
configures the main.cf file
This class is included by postfix::server and postfix::satellite to write the main.cf file
The following parameters are available in the postfix::config::main
class:
Data type: String
name and path of the main.cf file
Data type: String
owner of the main.cf file
Data type: String
group of the main.cf file
Data type: String
mode of the main.cf file
Data type: Hash
The parameters to set in the main.cf file Defaults to {}
Default value: {}
configure master.cf
The following parameters are available in the postfix::config::master
class:
Data type: String
name and path for master.cf file
Data type: String
owner of master.cf
Data type: String
group of master.cf
Data type: String
file mode of master.cf
Data type: Hash
services to configure (also see README)
Default value: {}
create the postfix Service
The following parameters are available in the postfix::service
class:
service_name
service_ensure
service_enable
disabled_services
exec_postfix_enable
sync_chroot
ensure_syslog_flag
Data type: String
The name of the service
Default value: 'postfix'
Data type: String
state of the service.
Default value: 'running'
Data type: Boolean
if service should be enabled
Default value: true
Data type: Array
Array of Services to stop
Default value: []
Data type: Boolean
if set to true, we run postfix-enable
Default value: false
Data type: Optional[String[1]]
if set to a path, the according chroot is synced.
Default value: undef
Data type: Boolean
if set to true, and sync_chroot is choosen, a flag is set to allow logging from chroot this is very OpenBSD specific !
Default value: false
define a service in master.cf file of postfix
See master(5) for details
The following parameters are available in the postfix::config::service
defined type:
type
command
args
service_names
priv
unpriv
chroot
wakeup
maxproc
active
comments
order
master_cf_file
Data type: String
Specify the service type. one of: inet, unix, fifo, pass. defaults to 'unix'
Default value: 'unix'
Data type: String
The command to be executed. defaults to $title
Default value: $title
Data type: Array
Array of commands arguments
Default value: []
Data type: Array
Array of service names to configure. defaults to [$title]
Default value: [$title]
Data type: String
Whether or not access is restricted to the mail system. defaults '-' (use built-in default)
Default value: '-'
Data type: String
Whether the service runs with root privileges or as the owner of the Postfix system. defaults '-' (use built-in default)
Default value: '-'
Data type: String
Whether or not the service runs chrooted to the mail queue directory. defaults '-' (use built-in default)
Default value: '-'
Data type: String
Wake up time defaults 'n' (default for postfix >= 3.0)
Default value: '-'
Data type: String
The maximum number of processes that may execute this service simultaneously defaults 'n' (default for postfix >= 3.0)
Default value: '-'
Data type: Boolean
if false, the service will not be activated (commented out) default: true,
Default value: true
Data type: Array
Array of comments to print in front of the service definition. defaults to [] (no comment)
Default value: []
Data type: String
order of the fragment (defaults to '55')
Default value: '55'
Data type: String
target
this defines a map for postfix
you can either use $source or $content parameter or use your own concat::fragment resources to add content to the map.
The following parameters are available in the postfix::map
defined type:
Data type: String
the directory to create the map in
Data type: String
postmap command
Data type: String
The name of the map defaults to $title
Default value: $title
Data type: String
the type of the map defaults to hash
Default value: 'hash'
Data type: Optional[String[1]]
source of the map defaults to ''
Default value: undef
Data type: Array
Array of lines to add to the map defaults to []
Default value: []
Data type: String
owner of the map file
Data type: String
group of the map file
Data type: String
file mode of the map file