Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Projets publics
Puppet Camptocamp Postfix
Commits
a0958dcf
Commit
a0958dcf
authored
Mar 06, 2015
by
Markus Frosch
Committed by
Raphaël Pinson
Mar 25, 2015
Browse files
Introduce IPv6 supporting defaults for mynetworks
parent
12e0ce29
Changes
2
Hide whitespace changes
Inline
Side-by-side
manifests/init.pp
View file @
a0958dcf
...
...
@@ -82,7 +82,7 @@ class postfix (
$master_submission
=
undef
,
# postfix_master_submission
$mta
=
false
,
$mydestination
=
'$myorigin'
,
# postfix_mydestination
$mynetworks
=
'127.0.0.0/8'
,
# postfix_mynetworks
$mynetworks
=
'127.0.0.0/8
[::ffff:127.0.0.0]/104 [::1]/128
'
,
# postfix_mynetworks
$myorigin
=
$::fqdn
,
$relayhost
=
undef
,
# postfix_relayhost
$root_mail_recipient
=
'nobody'
,
# root_mail_recipient
...
...
spec/classes/postfix_spec.rb
View file @
a0958dcf
...
...
@@ -214,7 +214,7 @@ describe 'postfix' do
let
(
:params
)
{
{
:mta
=>
true
,
:mydestination
=>
'1.2.3.4'
,
:relayhost
=>
'2.3.4.5'
}
}
it
'should configure postfix as a minimal MTA, delivering mail to the mydestination param'
do
is_expected
.
to
contain_postfix__config
(
'mydestination'
).
with_value
(
'1.2.3.4'
)
is_expected
.
to
contain_postfix__config
(
'mynetworks'
).
with_value
(
'127.0.0.0/8'
)
is_expected
.
to
contain_postfix__config
(
'mynetworks'
).
with_value
(
'127.0.0.0/8
[::ffff:127.0.0.0]/104 [::1]/128
'
)
is_expected
.
to
contain_postfix__config
(
'relayhost'
).
with_value
(
'2.3.4.5'
)
is_expected
.
to
contain_postfix__config
(
'virtual_alias_maps'
).
with_value
(
'hash:/etc/postfix/virtual'
)
is_expected
.
to
contain_postfix__config
(
'transport_maps'
).
with_value
(
'hash:/etc/postfix/transport'
)
...
...
@@ -261,7 +261,7 @@ describe 'postfix' do
end
it
'should configure all local email to be forwarded to $root_mail_recipient delivered through $relayhost'
do
is_expected
.
to
contain_postfix__config
(
'mydestination'
).
with_value
(
'1.2.3.4'
)
is_expected
.
to
contain_postfix__config
(
'mynetworks'
).
with_value
(
'127.0.0.0/8'
)
is_expected
.
to
contain_postfix__config
(
'mynetworks'
).
with_value
(
'127.0.0.0/8
[::ffff:127.0.0.0]/104 [::1]/128
'
)
is_expected
.
to
contain_postfix__config
(
'relayhost'
).
with_value
(
'2.3.4.5'
)
is_expected
.
to
contain_postfix__config
(
'virtual_alias_maps'
).
with_value
(
'hash:/etc/postfix/virtual'
)
is_expected
.
to
contain_postfix__config
(
'transport_maps'
).
with_value
(
'hash:/etc/postfix/transport'
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment