`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 "us...@example.com,us...@example.com"
sendmail: recipient address us...@example.com,us...@example.com 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!

------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev
_______________________________________________
msmtp-users mailing list
msmtp-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/msmtp-users

Reply via email to