Merge remote branch 'nadir/master'
Conflicts: manifests/classes/postfix.pp
This commit is contained in:
commit
07c02213db
4 changed files with 19 additions and 3 deletions
4
README
4
README
|
@ -4,6 +4,10 @@ This module will help install and configure postfix.
|
|||
|
||||
A couple of classes will preconfigure postfix for common needs.
|
||||
|
||||
Config
|
||||
------
|
||||
- set $postfix_use_amavisd="true" to include postfix::amavis
|
||||
|
||||
== Example:
|
||||
|
||||
include postfix
|
||||
|
|
8
manifests/classes/postfix-amavis.pp
Normal file
8
manifests/classes/postfix-amavis.pp
Normal file
|
@ -0,0 +1,8 @@
|
|||
class postfix::amavis {
|
||||
include amavisd-new
|
||||
postfix::config {
|
||||
"content_filter": value => "amavis:[127.0.0.1]:10024";
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -32,9 +32,9 @@
|
|||
#
|
||||
class postfix::mta {
|
||||
|
||||
case $postfix_relayhost {
|
||||
"": { fail("Required \$postfix_relayhost variable is not defined.") }
|
||||
}
|
||||
#case $postfix_relayhost {
|
||||
# "": { fail("Required \$postfix_relayhost variable is not defined.") }
|
||||
#}
|
||||
|
||||
case $postfix_mydestination {
|
||||
"": { $postfix_mydestination = "\$myorigin" }
|
||||
|
|
|
@ -56,6 +56,10 @@ class postfix {
|
|||
"": { $postfix_mastercf_tail = "" }
|
||||
}
|
||||
|
||||
if $postfix_use_amavisd == 'yes' {
|
||||
include postfix::amavis
|
||||
}
|
||||
|
||||
package { ["postfix", "mailx"]:
|
||||
ensure => installed
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue