Gentoo Archives: gentoo-user

From: Neil Bothwick <neil@××××××××××.uk>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Tell cron to send email using sender:passwd@host:587 syntax?
Date: Sat, 16 Nov 2013 17:32:45
Message-Id: 20131116173217.25a9d278@digimed.co.uk
In Reply to: Re: [gentoo-user] Tell cron to send email using sender:passwd@host:587 syntax? by Tanstaafl
1 On Sat, 16 Nov 2013 10:17:07 -0500, Tanstaafl wrote:
2
3 > >> Ok... so... the question remains - can I tell cron to send mail the
4 > >> same way?
5 > >
6 > > You don't, cron sends mail via sendmail, to the recipient specified by
7 > > the MAILTO variable in the crontab file.
8 >
9 > Thanks Neil, but... you said 'You don't'... not 'You CAN'T'...
10 >
11 > Can you elaborate on this? If this is not possible - why is it not
12 > possible? In other words, if portage can do it, why can't cron?
13
14 Well, it's possible, you just patch cron to add SMTP code so that it can
15 send mail itself, rather than using the unix standard approach of doing
16 its own job and passing other tasks onto programs designed for those jobs.
17
18 Cron runs cron jobs, sendmail sends mail.
19
20
21 --
22 Neil Bothwick
23
24 A real programmer never documents his code.
25 It was hard to make, it should be hard to read

Attachments

File name MIME type
signature.asc application/pgp-signature

Replies

Subject Author
Re: [gentoo-user] Tell cron to send email using sender:passwd@host:587 syntax? Tanstaafl <tanstaafl@×××××××××××.org>