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

mydestination defaults to myorigin

parent 8b0cd58a
No related branches found
No related tags found
No related merge requests found
...@@ -32,15 +32,20 @@ ...@@ -32,15 +32,20 @@
# #
class postfix::mta { class postfix::mta {
$mydestination = $postfix::mydestination ? {
undef => $postfix::myorigin,
default => $postfix::mydestination,
}
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($postfix::mydestination, '^\S+$', validate_re($mydestination, '^\S+$',
'You must pass $mydestination to the postfix class') 'You must pass $mydestination to the postfix class')
validate_re($postfix::mynetworks, '^\S+$', validate_re($postfix::mynetworks, '^\S+$',
'You must pass $mynetworks to the postfix class') 'You must pass $mynetworks to the postfix class')
postfix::config { postfix::config {
'mydestination': value => $postfix::mydestination; 'mydestination': value => $mydestination;
'mynetworks': value => $postfix::mynetworks; 'mynetworks': value => $postfix::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';
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment