On Sat, 16 Nov 2013 09:05:52 -0500, Tanstaafl <[email protected]> wrote: [...] > I think all I need to do is figure out how to tell cron to send emails > the same way as portage using sender:[email protected]:587 (using > TLS), but alas, my google-fu is failing on this one... I can't find a > single mention anywhere of alternate examples of sending emails with > cron, much less using sender:passwd@host:587 syntax... > > So... anyone? I can't imagine it isn't possible... ?
You're asking about cron, which is the wrong question. Run a local MTA and have it relay everything through the remote SMTP server. This is 3 lines in a Postfix configuration file [1] (only 1 line if you don't require authentication). Any MTA can do this, as it is a very common setup. Then all programs (not just cron) that use the sendmail binary or relay to localhost:25 will work automatically. [1] http://www.postfix.org/SOHO_README.html#client_sasl_enable -- Benjamin Lee http://www.b1c1l1.com/
signature.asc
Description: PGP signature

