diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2011-02-16 16:54:09 -0200 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2011-02-16 16:54:09 -0200 |
commit | eb728701336fc123810fe999c3d8f57dd7d3fffd (patch) | |
tree | a965d9d7fb2b1cb55688e71eda23e327db4b8b10 /templates | |
parent | 66b96fe144ada95b1f3c51c14ff014b27f03254d (diff) | |
download | puppet-mail-eb728701336fc123810fe999c3d8f57dd7d3fffd.tar.gz puppet-mail-eb728701336fc123810fe999c3d8f57dd7d3fffd.tar.bz2 |
Managing 05-node_id needed by squeeze
Diffstat (limited to 'templates')
-rw-r--r-- | templates/amavisd/05-node_id.erb | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/templates/amavisd/05-node_id.erb b/templates/amavisd/05-node_id.erb new file mode 100644 index 0000000..6a09896 --- /dev/null +++ b/templates/amavisd/05-node_id.erb @@ -0,0 +1,14 @@ +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 |