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
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Projets publics
Puppet Camptocamp Postfix
Commits
faae1c71
Commit
faae1c71
authored
Sep 21, 2010
by
Marc Fournier
Browse files
Options
Downloads
Plain Diff
Merge remote branch 'sarava/master'
parents
32993e2a
328c20af
No related branches found
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
manifests/classes/postfix.pp
+3
-1
3 additions, 1 deletion
manifests/classes/postfix.pp
manifests/definitions/hash.pp
+25
-9
25 additions, 9 deletions
manifests/definitions/hash.pp
templates/master.cf.debian.erb
+34
-1
34 additions, 1 deletion
templates/master.cf.debian.erb
with
62 additions
and
11 deletions
manifests/classes/postfix.pp
+
3
−
1
View file @
faae1c71
...
...
@@ -86,6 +86,7 @@ class postfix {
file
{
"/etc/postfix/master.cf"
:
ensure
=>
present
,
owner
=>
"root"
,
group
=>
"root"
,
mode
=>
"0644"
,
content
=>
$operatingsystem
?
{
Redhat
=>
template
(
"postfix/master.cf.redhat.erb"
),
...
...
@@ -103,8 +104,9 @@ class postfix {
file
{
"/etc/postfix/main.cf"
:
ensure
=>
present
,
owner
=>
"root"
,
group
=>
"root"
,
mode
=>
"0644"
,
source
=>
"puppet:///postfix/main.cf"
,
source
=>
"puppet:///
modules/
postfix/main.cf"
,
replace
=>
false
,
seltype
=>
$postfix_seltype
,
notify
=>
Service
[
"postfix"
],
...
...
This diff is collapsed.
Click to expand it.
manifests/definitions/hash.pp
+
25
−
9
View file @
faae1c71
...
...
@@ -5,11 +5,10 @@ Creates postfix hashed "map" files. It will create "${name}", and then build
"
${name}
.db"
using
the
"postmap"
command
.
The
map
file
can
then
be
referred
to
using
postfix::config
.
Note
:
the
content
of
the
file
is
not
managed
by
this
definition
.
Parameters
:
-
*
name
*
:
the
name
of
the
map
file
.
-
*
ensure
*
:
present
/
absent
,
defaults
to
present
-
*
ensure
*
:
present
/
absent
,
defaults
to
present
.
-
*
source
*
:
file
source
.
Requires
:
-
Class
[
"postfix"
]
...
...
@@ -29,7 +28,7 @@ Example usage:
}
*/
define
postfix::hash
(
$ensure
=
"present"
)
{
define
postfix::hash
(
$ensure
=
"present"
,
$source
=
false
)
{
# selinux labels differ from one distribution to another
case
$operatingsystem
{
...
...
@@ -47,12 +46,29 @@ define postfix::hash ($ensure="present") {
}
}
case
$source
{
false
:
{
file
{
"
${name}
"
:
ensure
=>
$ensure
,
mode
=>
600
,
owner
=>
root
,
group
=>
root
,
seltype
=>
$postfix_seltype
,
require
=>
Package
[
"postfix"
],
}
}
default
:
{
file
{
"
${name}
"
:
ensure
=>
$ensure
,
mode
=>
600
,
owner
=>
root
,
group
=>
root
,
source
=>
$source
,
seltype
=>
$postfix_seltype
,
require
=>
Package
[
"postfix"
],
}
}
}
file
{
"
${name}
.db"
:
ensure
=>
$ensure
,
...
...
This diff is collapsed.
Click to expand it.
templates/master.cf.debian.erb
+
34
−
1
View file @
faae1c71
...
...
@@ -7,7 +7,8 @@
# service type private unpriv chroot wakeup maxproc command + args
# (yes) (yes) (yes) (never) (100)
# ==========================================================================
<%=
postfix_smtp_listen
%>
:smtp inet n - - - - smtpd
<%
if
postfix_smtp_listen
==
'all'
%>
smtp inet n - - - - smtpd
<%
else
%><%=
postfix_smtp_listen
%>
:smtp inet n - - - - smtpd
<%
end
%>
#submission inet n - - - - smtpd
# -o smtpd_enforce_tls=yes
# -o smtpd_sasl_auth_enable=yes
...
...
@@ -74,4 +75,36 @@ scalemail-backend unix - n n - 2 pipe
mailman unix - n n - - pipe
flags=FR user=list argv=/usr/lib/mailman/bin/postfix-to-mailman.py
${nexthop} ${user}
<%
if
postfix_use_amavisd
==
'yes'
%>
amavis unix - - - - 2 smtp
-o smtp_data_done_timeout=1200
-o smtp_send_xforward_command=yes
127.0.0.1:10025 inet n - - - - smtpd
-o content_filter=
-o local_recipient_maps=
-o relay_recipient_maps=
-o smtpd_restriction_classes=
-o smtpd_client_restrictions=
-o smtpd_helo_restrictions=
-o smtpd_sender_restrictions=
-o smtpd_recipient_restrictions=permit_mynetworks,reject
-o mynetworks=127.0.0.0/8
-o strict_rfc821_envelopes=yes
-o receive_override_options=no_unknown_recipient_checks,no_header_body_checks
-o smtpd_bind_address=127.0.0.1
<%
end
%>
<%
if
postfix_use_dovecot_lda
==
'yes'
%>
dovecot unix - n n - - pipe
flags=DRhu user=vmail:vmail argv=/usr/lib/dovecot/deliver -d ${recipient}
<%
end
%>
<%
if
postfix_use_schleuder
==
'yes'
%>
schleuder unix - n n - - pipe
flags=DRhu user=schleuder argv=/usr/bin/schleuder ${user}
<%
end
%>
<%
if
postfix_use_sympa
==
'yes'
%>
sympa unix - n n - - pipe
flags=R user=sympa argv=/usr/lib/sympa/bin/queue ${recipient}
sympabounce unix - n n - - pipe
flags=R user=sympa argv=/usr/lib/sympa/bin/bouncequeue ${user}
<%
end
%>
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