Class postfix::server
In: /modules/postfix/manifests/server.pp
Parent:

Class: postfix::server

The title is used for the ‘myhostname’ parameter.

When setting ‘postgrey’ to true, you might want to install a custom file as /etc/postfix/postgrey_whitelist_clients.local too.

Sample Usage :

Resources

Resources

File["/etc/postfix/main.cf"]
   content => template(postfix/main.cf$filesuffix.erb)
   notify => Service["postfix"]
File["/etc/postfix/master.cf"]
   content => template(postfix/master.cf$filesuffix.erb)
   notify => Service["postfix"]
Package[$package_name]
   ensure => installed
   alias => "postfix"
Postfix::File["body_checks"]
   content => template("postfix/body_checks.erb")

Regex body_checks

Postfix::File["header_checks"]
   content => template("postfix/header_checks.erb")
Service["postfix"]
   require => Package["postfix"]
   enable => true
   ensure => running
   hasstatus => true
   restart => "/sbin/service postfix reload"

[Validate]