[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [msmtp-users] msmtp fails if multiple recipients are specified in crontab MAILTO



On Mon, Jun 24, 2013 at 10:16:39AM +0200, Matus UHLAR - fantomas wrote:
> >On Sun, 23 Jun 2013 14:29:04 -0400, Paul Donohue wrote:
> >> `man 5 crontab` says:
> >> MAILTO may also be used to direct mail to multiple recipients by
> >> separating recipient users with a comma.
> 
> >> 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)
> 
> Should be tested with other programs installed as sendmail.

I tested with nullmailer, and it seemed to work properly using that.