postfix: Trying to get the combo postfix + submission + saslauthd + postgrey + cyrus lmtp delivery working.

This commit is contained in:
Lari Huttunen 2013-03-01 15:21:05 +01:00
parent 2217bca3a1
commit 7fed52107c
3 changed files with 143 additions and 0 deletions

View file

@ -5,6 +5,9 @@
# $mail_domain:
# SMTP domain name.
#
# $mydestination:
# Destinations we will accept and relay mail for.
#
# $mail_server:
# Optional smarthost used for sending mail.
#
@ -34,6 +37,9 @@
#
# $submission:
# Whether to enable submission (and sasl::saslauthd).
#
# $cyrus_lmtp:
# Whether to enable cyrus-lmtp delivery.
class postfix {
include ssl
@ -65,6 +71,7 @@ class postfix {
$postfix_interfaces = "localhost"
}
if $postgrey {
case $::operatingsystem {
"debian","ubuntu": {
@ -115,6 +122,21 @@ class postfix {
if $submission {
include sasl::saslauthd
mount { "/var/spool/postfix/var/run/saslauthd":
name => $sasl_authdir ? {
undef => "/var/run/saslauthd",
default => "/var/run/saslauthd",
},
ensure => mounted,
atboot => true,
device => "none",
fstype => "tmpfs",
options => "uid=postfix,gid=postfix,mode=0710",
dump => "0",
pass => "0",
require => File["/var/spool/postfix/var/run/saslauthd"],
before => Service["postfix"],
},
}
file { "/etc/postfix/master.cf":