Package: dma Version: 0.9-1 Severity: important Dear Maintainer,
in some cases, the "From:" and the "To: address headers are missing a domain part. When I use the command line to directly send an email like "echo somethong | mail -s 'test' somb...@example.org" as root, the sender address is correctly expanded to root@<MASQUERADE-address> if MASQUERADE is set in /etc/dma/dma.conf, to root@<MAILNAME> if MASQUERADE is not set, and to root@`hostname -s` if MAILNAME is also not set. However, when the mail is sent from cron (e.g., by a line "* * * * * echo something" in root's crontab), the From: address header is only "root (Cron Daemon)" and only later by the smarthost expanded to r...@mysmarthost.sender.com, when it actually should be root@<MAILNAME or MASQUARADE or at least `hostname`>. When using the aliases file to map local accounts to foreign adddresses, the "To:" header is (also) missing the domain part, e.g. with an alias file "root: b...@example.com, b...@example.org", the mail is correcly delivered to the two addresses, but the "To:" header field contains only "root" (which is expanded by my smarthost to r...@mysmarthost.sender.com), when it also should actually be root@<MAILNAME or `hostname`> https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=697871 seems to be rather similar, but not quite, since in my case, it's not always the case since it works when sending from the command line using the mail command, but it also affects the To: header field when using aliases (even when using the mail command). I can't say why one triggers this behaviour and the other doesn't, and I'm also not sure whether the latest upstream version shows the same behavior. Best, Christian Tessarek -- System Information: Debian Release: 8.5 Architecture: amd64 (x86_64) Kernel: Linux 3.16.0-4-amd64 (SMP w/24 CPU cores)