Date: Sat, 19 Aug 2023 00:22:14 +0000 From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 273221] DMA does not correctly honor the addresees with the same invocation as sendmail Message-ID: <bug-273221-227@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D273221 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=3D"Hello world" subject=3D"Hello" emailsentfrom=3D"$USER" emailgoesto=3D"$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. --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-273221-227>