[Pkg-net-snmp-devel] Bug#455707: snmp: traptoemail does not use FQDN
Ferenc Wagner
wferi at niif.hu
Tue Dec 11 10:01:34 UTC 2007
Package: snmp
Version: 5.2.3-7
Severity: normal
Hi,
Without explicitly specifying the From: address with the -f option,
traptoemail sends messages with the short hostname as the domain part.
Most MTAs reject messages without a fully qualified domain, so these
messages are easily lost. In my opinion, a simple fix would be changing
$opts{'f'} = 'root@' . `hostname`;
to
$opts{'f'} = 'root@' . `hostname -f`;
at the top of the script.
Thanks,
Feri.
-- System Information:
Debian Release: 4.0
APT prefers stable
APT policy: (500, 'stable'), (50, 'unstable')
Architecture: i386 (i686)
Shell: /bin/sh linked to /bin/bash
Kernel: Linux 2.6.22-2-k7
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
More information about the Pkg-net-snmp-devel
mailing list