Re: [gentoo-user] Tell cron to send email using sender:passwd@host:587 syntax?

2013-11-17 Thread Tanstaafl
On 2013-11-17 6:42 AM, Tanstaafl wrote: I missed the significance of Alans reference to python earlier... Sorry, that was Neil's reference...

Re: [gentoo-user] Tell cron to send email using sender:passwd@host:587 syntax?

2013-11-17 Thread Tanstaafl
On 2013-11-16 3:25 PM, Manuel McLure wrote: Why did the gentoo devs decide to build an smtp client into it capable of doing TLS, instead of simply requiring an MTA to be able to email emerge logs? They didn't. The smtp client is part of Python, not part of portage. If you're developing in Pyt

Re: [gentoo-user] Tell cron to send email using sender:passwd@host:587 syntax?

2013-11-17 Thread Peter Humphrey
On Saturday 16 Nov 2013 15:03:57 Tanstaafl wrote: > My real question is, why can portage do this (send emails without a > local MTA installed)? Portage needs to depend on as few other packages as possible. If it required an MTA on a new system, all sorts of dependency loops and other problems wo

Re: [gentoo-user] Tell cron to send email using sender:passwd@host:587 syntax?

2013-11-16 Thread Neil Bothwick
On Sat, 16 Nov 2013 15:03:57 -0500, Tanstaafl wrote: > My real question is, why can portage do this (send emails without a > local MTA installed)? I already answered that, it uses Python's smtlib (or something equivalent, I haven't checked). That's a core Python library and since portage depends

Re: [gentoo-user] Tell cron to send email using sender:passwd@host:587 syntax?

2013-11-16 Thread Alan McKinnon
On 16/11/2013 19:42, Tanstaafl wrote: > On 2013-11-16 12:32 PM, Neil Bothwick wrote: >> sendmail sends mail. > > And apparently so does portage... > > So, anyone care to venture a guess as to why the gentoo devs decided to > implement their own smtp server just so portage could send emails all b

Re: [gentoo-user] Tell cron to send email using sender:passwd@host:587 syntax?

2013-11-16 Thread Manuel McLure
On Sat, Nov 16, 2013 at 12:03 PM, Tanstaafl wrote: > No... > > I know all about running a local MTA. > > My real question is, why can portage do this (send emails without a local > MTA installed)? > > Why did the gentoo devs decide to build an smtp client into it capable of > doing TLS, instead of

Re: [gentoo-user] Tell cron to send email using sender:passwd@host:587 syntax?

2013-11-16 Thread Tanstaafl
On 2013-11-16 2:29 PM, Benjamin Lee wrote: On Sat, 16 Nov 2013 09:05:52 -0500, Tanstaafl 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:pas...@smtp.example.com:587 (using TLS), but alas, my google-fu is failing on this o

Re: [gentoo-user] Tell cron to send email using sender:passwd@host:587 syntax?

2013-11-16 Thread Benjamin Lee
On Sat, 16 Nov 2013 09:05:52 -0500, Tanstaafl 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:pas...@smtp.example.com:587 (using > TLS), but alas, my google-fu is failing on this one... I can't find a > single mention

Re: [gentoo-user] Tell cron to send email using sender:passwd@host:587 syntax?

2013-11-16 Thread Tanstaafl
On 2013-11-16 12:32 PM, Neil Bothwick wrote: sendmail sends mail. And apparently so does portage... So, anyone care to venture a guess as to why the gentoo devs decided to implement their own smtp server just so portage could send emails all by itself, rather than requiring the installation

Re: [gentoo-user] Tell cron to send email using sender:passwd@host:587 syntax?

2013-11-16 Thread Neil Bothwick
On Sat, 16 Nov 2013 10:17:07 -0500, Tanstaafl wrote: > >> Ok... so... the question remains - can I tell cron to send mail the > >> same way? > > > > You don't, cron sends mail via sendmail, to the recipient specified by > > the MAILTO variable in the crontab file. > > Thanks Neil, but... you

Re: [gentoo-user] Tell cron to send email using sender:passwd@host:587 syntax?

2013-11-16 Thread Tanstaafl
On 2013-11-16 10:04 AM, Neil Bothwick wrote: On Sat, 16 Nov 2013 09:59:09 -0500, Tanstaafl wrote: On 2013-11-16 9:56 AM, Neil Bothwick wrote: So it uses SMTP by default, Python has standard libraries that make this simple, and only uses sendmail when you explicitly instruct it to do so. Ok

Re: [gentoo-user] Tell cron to send email using sender:passwd@host:587 syntax?

2013-11-16 Thread Neil Bothwick
On Sat, 16 Nov 2013 09:59:09 -0500, Tanstaafl wrote: > On 2013-11-16 9:56 AM, Neil Bothwick wrote: > > So it uses SMTP by default, Python has standard libraries that make > > this simple, and only uses sendmail when you explicitly instruct it > > to do so. > > Ok... so... the question remains

Re: [gentoo-user] Tell cron to send email using sender:passwd@host:587 syntax?

2013-11-16 Thread Tanstaafl
On 2013-11-16 9:56 AM, Neil Bothwick wrote: So it uses SMTP by default, Python has standard libraries that make this simple, and only uses sendmail when you explicitly instruct it to do so. Ok... so... the question remains - can I tell cron to send mail the same way?

Re: [gentoo-user] Tell cron to send email using sender:passwd@host:587 syntax?

2013-11-16 Thread Neil Bothwick
On Sat, 16 Nov 2013 09:05:52 -0500, Tanstaafl wrote: > > #PORTAGE_ELOG_MAILURI="root /usr/sbin/sendmail" > > PORTAGE_ELOG_MAILURI="recipi...@example.com > > sender:pas...@smtp.example.com:100587" > > I'm guessing portage still uses /usr/sbin/sendmail, but using the above > defined credentials?

Re: [gentoo-user] Tell cron to send email using sender:passwd@host:587 syntax?

2013-11-16 Thread Tanstaafl
On 2013-11-16 9:05 AM, Tanstaafl wrote: Hi all... I'm a little confused by something... If I change the MAILURI in make.conf from the default, ie: #PORTAGE_ELOG_MAILURI="root /usr/sbin/sendmail" PORTAGE_ELOG_MAILURI="recipi...@example.com sender:pas...@smtp.example.com:100587" I'm guessing

[gentoo-user] Tell cron to send email using sender:passwd@host:587 syntax?

2013-11-16 Thread Tanstaafl
Hi all... I'm a little confused by something... If I change the MAILURI in make.conf from the default, ie: #PORTAGE_ELOG_MAILURI="root /usr/sbin/sendmail" PORTAGE_ELOG_MAILURI="recipi...@example.com sender:pas...@smtp.example.com:100587" I'm guessing portage still uses /usr/sbin/sendmail, b