summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--manifests/sympa.pp10
1 files changed, 10 insertions, 0 deletions
diff --git a/manifests/sympa.pp b/manifests/sympa.pp
index d916d51..044cc0a 100644
--- a/manifests/sympa.pp
+++ b/manifests/sympa.pp
@@ -99,6 +99,16 @@ class mail::sympa {
source => "puppet:///modules/mail/sympa/logrotate",
}
+ # gracefully restart sympa everyday
+ cron { "sympa-restart":
+ command => "/etc/init.d/sympa restart > /dev/null 2>&1",
+ user => root,
+ hour => "*/3",
+ minute => "0",
+ ensure => absent,
+ require => Service['sympa'],
+ }
+
postfix::transport_regexp_snippet { 'sympa_transport_regexp':
content => template('mail/postfix/sympa/transport_regexp.erb'),
}