Re: Incompatibility between Sendmail and DMA
- In reply to: Miroslav Lachman : "Re: Incompatibility between Sendmail and DMA"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 06 Jan 2025 20:40:46 UTC
fyi, Miroslav Lachman wrote in <334d1c9b-8a04-4140-beea-8121bed7c91f@quip.cz>: |On 06/01/2025 19:03, Juraj Lutter wrote: |>> On 6 Jan 2025, at 18:50, Helge Oldach <freebsd@oldach.net> wrote: |>> Miroslav Lachman wrote on Mon, 06 Jan 2025 17:14:47 +0100 (CET): |>> On 1/6/25 11:14, Miroslav Lachman wrote: |>>> After upgrading from 13.3 to 14.2, sending emails from shel lscript, |>>> which had worked for about 20 years, stopped working. |>>> |>>> The code looks like this: |>>> |>>> mailto="mon mon-sms" |>>> subject="DMA check" |>>> msg="testing of DMA" |>>> |>>> echo -e "$msg" | mail -s "$subject" "$mailto" |>> |>> Try: |>> |>> echo -e "$msg" | mail -s "$subject" $mailto |> |> When mail recipients are delimited by a comma (,), it would work \ |> independently of quotes. | |No it does not. | sendmail: invalid recipient `mon,mon-sms' | |Even unquoted recipients delimited by comma on the command line shows |the error: | |# echo check | mail -s "DMA check" mon,mon-sms | sendmail: invalid recipient `mon,mon-sms' Heirloom mailx and elder s-nail did do that (names.c:extract()): # </dev/null MAILRC=/dev/null s-nail-v14.8.0 -n -d -stest 'du,au' user = steffen, homedir = /home/steffen "/usr/sbin/sendmail" arguments: "sendmail" "-i" "--" "au" "du" # </dev/null MAILRC=/dev/null s-nail-v14.8.0 -n -d -stest du,au user = steffen, homedir = /home/steffen "/usr/sbin/sendmail" arguments: "sendmail" "-i" "--" "au" "du" I changed it though since the parser is borked (can easily be fooled) and will be replaced with an already written and tested RFC 5322 parser. (We now support a -T switch however, which parses "like an email header"; through the new parser in the future, though.) --steffen | |Der Kragenbaer, The moon bear, |der holt sich munter he cheerfully and one by one |einen nach dem anderen runter wa.ks himself off |(By Robert Gernhardt) | |In Fall and Winter, feel "The Dropbear Bard"s pint(er). | |The banded bear |without a care, |Banged on himself for e'er and e'er | |Farewell, dear collar bear