notify => Service['amavis'],
}
+ case $lsbdistcodename {
+ 'lenny': { }
+ default: {
+ file { "/etc/amavis/conf.d/05-node_id":
+ ensure => present,
+ owner => root,
+ group => root,
+ mode => 0644,
+ content => template('mail/amavisd/05-node_id.erb'),
+ notify => Service['amavis'],
+ }
+ }
+ }
+
group { 'amavis':
ensure => present,
}
--- /dev/null
+use strict;
+
+# $myhostname is used by amavisd-new for node identification, and it is
+# important to get it right (e.g. for ESMTP EHLO, loop detection, and so on).
+
+chomp($myhostname = `hostname --fqdn`);
+
+# To manually set $myhostname, edit the following line with the correct Fully
+# Qualified Domain Name (FQDN) and remove the # at the beginning of the line.
+#
+#$myhostname = "mail.example.com";
+$myhostname = "<%= fqdn %>";
+
+1; # ensure a defined return