[Bug 273221] DMA does not correctly honor the addresees with the same invocation as sendmail
Date: Sat, 19 Aug 2023 00:22:14 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=273221
Bug ID: 273221
Summary: DMA does not correctly honor the addresees with the
same invocation as sendmail
Product: Base System
Version: CURRENT
Hardware: Any
OS: Any
Status: New
Severity: Affects Only Me
Priority: ---
Component: bin
Assignee: bugs@FreeBSD.org
Reporter: gjb@FreeBSD.org
In main as DMA had become the default MTA, there is a difference in its
handling of command-line arguments.
Consider a situation where /usr/sbin/sendmail is a link to
/usr/sbin/mailwrapper, and /etc/mail/mailer.conf is set to use /usr/libexec/dma
given the following simple script:
#!/bin/sh
body="Hello world"
subject="Hello"
emailsentfrom="$USER"
emailgoesto="$USER1 $USER2"
printf "From: ${emailsentfrom}\nTo: ${emaiilgoesto}\n \
Subject: "${subject}"\n\n${body}\n\n" \
| /usr/sbin/sendmail -oi -f ${emailsentfrom} ${emailgoesto}
With sendmail, "${emailgoesto}" would properly expand to whomever $USER1 and
$USER2 are, comma-separated, which is expected.
With DMA, "${emailgoesto}" is not comma-separated, and are verbatim the
expanded values "$USER1 $USER2", which is not expected.
--
You are receiving this mail because:
You are the assignee for the bug.