summaryrefslogtreecommitdiff
path: root/templates/amavisd/05-node_id.erb
blob: 6a09896af6e0737e0f02be3a628da9c9d6f813fa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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