Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
Puppet Camptocamp Postfix
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Projets publics
Puppet Camptocamp Postfix
Commits
de6c111a
You need to sign in or sign up before continuing.
Commit
de6c111a
authored
12 years ago
by
Raphaël Pinson
Browse files
Options
Downloads
Patches
Plain Diff
Fix unscoped variables in templates/master.cf.common.erb
parent
6b995331
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
spec/classes/postfix_spec.rb
+10
-1
10 additions, 1 deletion
spec/classes/postfix_spec.rb
templates/master.cf.common.erb
+5
-5
5 additions, 5 deletions
templates/master.cf.common.erb
with
15 additions
and
6 deletions
spec/classes/postfix_spec.rb
+
10
−
1
View file @
de6c111a
...
@@ -98,7 +98,16 @@ describe 'postfix' do
...
@@ -98,7 +98,16 @@ describe 'postfix' do
it
{
it
{
should
contain_file
(
'/etc/postfix/master.cf'
).
without
(
'seltype'
).
with_content
(
should
contain_file
(
'/etc/postfix/master.cf'
).
without
(
'seltype'
).
with_content
(
/smtp inet n - - - - smtpd/
/smtp inet n - - - - smtpd/
)
}
).
with_content
(
/amavis unix/
).
with_content
(
/dovecot.*\n.* user=bar:bar /
).
with_content
(
/schleuder/
).
with_content
(
/sympa/
)
}
it
{
should
contain_file
(
'/etc/postfix/main.cf'
).
without
(
'seltype'
)
}
it
{
should
contain_file
(
'/etc/postfix/main.cf'
).
without
(
'seltype'
)
}
it
{
should
contain_postfix__config
(
'myorigin'
)
}
it
{
should
contain_postfix__config
(
'myorigin'
)
}
...
...
This diff is collapsed.
Click to expand it.
templates/master.cf.common.erb
+
5
−
5
View file @
de6c111a
<%
if
has_variable?
(
"
postfix
_
use_amavisd
"
)
and
postfix_use_amavisd
==
'yes'
%>
<%
if
scope
.
lookupvar
(
'
postfix
::
use_amavisd
'
)
==
'yes'
%>
amavis unix - - - - 2 smtp
amavis unix - - - - 2 smtp
-o smtp_data_done_timeout=1200
-o smtp_data_done_timeout=1200
-o smtp_send_xforward_command=yes
-o smtp_send_xforward_command=yes
...
@@ -17,15 +17,15 @@ amavis unix - - - - 2 smtp
...
@@ -17,15 +17,15 @@ amavis unix - - - - 2 smtp
-o receive_override_options=no_unknown_recipient_checks,no_header_body_checks
-o receive_override_options=no_unknown_recipient_checks,no_header_body_checks
-o smtpd_bind_address=127.0.0.1
-o smtpd_bind_address=127.0.0.1
<%
end
-%>
<%
end
-%>
<%
if
has_variable?
(
"
postfix
_
use_dovecot_lda
"
)
and
postfix_use_dovecot_lda
==
'yes'
%>
<%
if
scope
.
lookupvar
(
'
postfix
::
use_dovecot_lda
'
)
==
'yes'
%>
dovecot unix - n n - - pipe
dovecot unix - n n - - pipe
flags=DRhu user=
<%=
postfix
_
mail_user
%>
:
<%=
postfix
_
mail_user
%>
argv=/usr/lib/dovecot/deliver -d ${recipient}
flags=DRhu user=
<%=
scope
.
lookupvar
(
'
postfix
::
mail_user
'
)
%>
:
<%=
scope
.
lookupvar
(
'
postfix
::
mail_user
'
)
%>
argv=/usr/lib/dovecot/deliver -d ${recipient}
<%
end
-%>
<%
end
-%>
<%
if
has_variable?
(
"
postfix
_
use_schleuder
"
)
and
postfix_use_schleuder
==
'yes'
%>
<%
if
scope
.
lookupvar
(
'
postfix
::
use_schleuder
'
)
==
'yes'
%>
schleuder unix - n n - - pipe
schleuder unix - n n - - pipe
flags=DRhu user=schleuder argv=/usr/bin/schleuder ${user}
flags=DRhu user=schleuder argv=/usr/bin/schleuder ${user}
<%
end
-%>
<%
end
-%>
<%
if
has_variable?
(
"
postfix
_
use_sympa
"
)
and
postfix_use_sympa
==
'yes'
%>
<%
if
scope
.
lookupvar
(
'
postfix
::
use_sympa
'
)
==
'yes'
%>
sympa unix - n n - - pipe
sympa unix - n n - - pipe
flags=R user=sympa argv=/usr/lib/sympa/bin/queue ${recipient}
flags=R user=sympa argv=/usr/lib/sympa/bin/queue ${recipient}
sympabounce unix - n n - - pipe
sympabounce unix - n n - - pipe
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment