Commit be7b79d2 authored by Raphaël Pinson's avatar Raphaël Pinson
Browse files

mynetworks defaults to 127.0.0.1/8

parent 144d5026
......@@ -33,20 +33,25 @@
class postfix::mta {
$mydestination = $postfix::mydestination ? {
undef => $postfix::myorigin,
undef => '$myorigin',
default => $postfix::mydestination,
}
$mynetworks = $postfix::mynetworks ? {
undef => '127.0.0.1/8',
default => $postfix::mynetworks,
}
validate_re($postfix::relayhost, '^\S+$',
'You must pass $relayhost to the postfix class')
validate_re($mydestination, '^\S+$',
'You must pass $mydestination to the postfix class')
validate_re($postfix::mynetworks, '^\S+$',
'You must pass $mynetworks to the postfix class')
'Wrong value for $mydestination')
validate_re($mynetworks, '^\S+$',
'Wrong value for $mynetworks')
postfix::config {
'mydestination': value => $mydestination;
'mynetworks': value => $postfix::mynetworks;
'mynetworks': value => $mynetworks;
'relayhost': value => $postfix::relayhost;
'virtual_alias_maps': value => 'hash:/etc/postfix/virtual';
'transport_maps': value => 'hash:/etc/postfix/transport';
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment