File pykolab-0.7.20-tpl_amavisd.patch of Package pykolab

diff -Ppru pykolab-0.7.20.orig/share/templates/amavisd.conf.tpl pykolab-0.7.20.tpl_amavisd/share/templates/amavisd.conf.tpl
--- pykolab-0.7.20.orig/share/templates/amavisd.conf.tpl	2016-01-27 12:27:17.000000000 +0100
+++ pykolab-0.7.20.tpl_amavisd/share/templates/amavisd.conf.tpl	2016-02-04 14:51:36.883156120 +0100
@@ -162,6 +162,7 @@ use strict;
 # OTHER MORE COMMON SETTINGS (defaults may suffice):
 
 # \$myhostname = 'host.example.com';  # must be a fully-qualified domain name!
+chomp(\$myhostname = `hostname --fqdn`);
 
 # \$notify_method  = 'smtp:[127.0.0.1]:10025';
 # \$forward_method = 'smtp:[127.0.0.1]:10025';  # set to undef with milter!
openSUSE Build Service is sponsored by