Make sure from address includes a domain name
authorJamie Cameron <jcameron@webmin.com>
Thu, 6 Nov 2008 23:19:02 +0000 (23:19 +0000)
committerJamie Cameron <jcameron@webmin.com>
Thu, 6 Nov 2008 23:19:02 +0000 (23:19 +0000)
mailboxes/boxes-lib.pl

index a1b6d07..f823346 100644 (file)
@@ -808,6 +808,7 @@ if (@from && $from[0] =~ /\S/) {
 else {
        local @uinfo = getpwuid($<);
        $fromaddr = $uinfo[0] || "nobody";
+       $fromaddr .= '@'.&get_system_hostname();
        }
 local $esmtp = $_[8] ? 1 : 0;
 if ($_[1]) {