Skip to content
Snippets Groups Projects
Commit be7b79d2 authored by Raphaël Pinson's avatar Raphaël Pinson
Browse files

mynetworks defaults to 127.0.0.1/8

parent 144d5026
No related branches found
No related tags found
No related merge requests found
...@@ -33,20 +33,25 @@ ...@@ -33,20 +33,25 @@
class postfix::mta { class postfix::mta {
$mydestination = $postfix::mydestination ? { $mydestination = $postfix::mydestination ? {
undef => $postfix::myorigin, undef => '$myorigin',
default => $postfix::mydestination, default => $postfix::mydestination,
} }
$mynetworks = $postfix::mynetworks ? {
undef => '127.0.0.1/8',
default => $postfix::mynetworks,
}
validate_re($postfix::relayhost, '^\S+$', validate_re($postfix::relayhost, '^\S+$',
'You must pass $relayhost to the postfix class') 'You must pass $relayhost to the postfix class')
validate_re($mydestination, '^\S+$', validate_re($mydestination, '^\S+$',
'You must pass $mydestination to the postfix class') 'Wrong value for $mydestination')
validate_re($postfix::mynetworks, '^\S+$', validate_re($mynetworks, '^\S+$',
'You must pass $mynetworks to the postfix class') 'Wrong value for $mynetworks')
postfix::config { postfix::config {
'mydestination': value => $mydestination; 'mydestination': value => $mydestination;
'mynetworks': value => $postfix::mynetworks; 'mynetworks': value => $mynetworks;
'relayhost': value => $postfix::relayhost; 'relayhost': value => $postfix::relayhost;
'virtual_alias_maps': value => 'hash:/etc/postfix/virtual'; 'virtual_alias_maps': value => 'hash:/etc/postfix/virtual';
'transport_maps': value => 'hash:/etc/postfix/transport'; 'transport_maps': value => 'hash:/etc/postfix/transport';
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment