[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[msmtp-users] msmtp fails if multiple recipients are specified in crontab MAILTO
`man 5 crontab` says:
MAILTO may also be used to direct mail to multiple recipients by separating recipient users with a comma.
However, if multiple recipients are listed in MAILTO when msmtp is being used, cron spits the following error to the log and no mail is sent:
CRON[5517]: (root) MAIL (mailed 1 byte of output; but got status 0x0041, #012)
It looks like cron effectively just runs `sendmail "$MAILTO"`, which produces the following error:
$ sendmail "user1@...45...,user2@...45..."
sendmail: recipient address user1@...45...,user2@...45... not accepted by the server
sendmail: server message: 501 5.1.3 Invalid address
sendmail: could not send mail (account default from /etc/msmtprc)
Any chance of getting this fixed?
Thanks!