smtpd: Added relaying for clients
This commit is contained in:
parent
4f22f69766
commit
20423bd1db
3 changed files with 22 additions and 4 deletions
|
@ -173,6 +173,25 @@ class smtpd::server(
|
|||
before => Service["smtpd"],
|
||||
}
|
||||
|
||||
file { "/etc/mail/clients":
|
||||
ensure => present,
|
||||
mode => "0644",
|
||||
owner => "root",
|
||||
group => "wheel",
|
||||
source => [
|
||||
"puppet:///files/mail/clients.${::homename}",
|
||||
"puppet:///files/mail/clients",
|
||||
"puppet:///modules/smtpd/empty",
|
||||
],
|
||||
}
|
||||
exec { "makemap -t set clients":
|
||||
refreshonly => true,
|
||||
cwd => "/etc/mail",
|
||||
path => "/bin:/usr/bin:/sbin:/usr/sbin",
|
||||
subscribe => File["/etc/mail/clients"],
|
||||
before => Service["smtpd"],
|
||||
}
|
||||
|
||||
if $domains {
|
||||
smtpd::aliases { $domains:
|
||||
gecos => $gecos,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue