[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



Thanks!

I'll give it a try.

On Sat, Jun 29, 2013 at 03:32:12PM +0200, Martin Lambers wrote:
> On Tue, 25 Jun 2013 11:44:17 -0400, Paul Donohue wrote:
> > 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.
> 
> I pushed a patch. Now msmtp parses command line recipient addresses as
> if they appeared in mail headers. So you can comma-separate them, and
> you can also use quoting and comments and other weird stuff.
> 
> Can you try this?
> 
> (Please note that SourceForge has moved the git repository; see
> http://sourceforge.net/p/msmtp/code/)
> 
> Best regards,
> Martin
> 
> ------------------------------------------------------------------------------
> 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
>