From: Benjamin Lee <ben@b1c1l1.com>
To: gentoo-user@lists.gentoo.org
Cc: tanstaafl@libertytrek.org
Subject: Re: [gentoo-user] Tell cron to send email using sender:passwd@host:587 syntax?
Date: Sat, 16 Nov 2013 11:29:04 -0800 [thread overview]
Message-ID: <20131116112904.2bf9e1bf@b1c1l1.com> (raw)
In-Reply-To: <52877BC0.4030004@libertytrek.org>
[-- Attachment #1: Type: text/plain, Size: 1032 bytes --]
On Sat, 16 Nov 2013 09:05:52 -0500, Tanstaafl <tanstaafl@libertytrek.org> 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:passwd@smtp.example.com: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/
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 836 bytes --]
next prev parent reply other threads:[~2013-11-16 19:29 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-11-16 14:05 [gentoo-user] Tell cron to send email using sender:passwd@host:587 syntax? Tanstaafl
2013-11-16 14:13 ` Tanstaafl
2013-11-16 14:56 ` Neil Bothwick
2013-11-16 14:59 ` Tanstaafl
2013-11-16 15:04 ` Neil Bothwick
2013-11-16 15:17 ` Tanstaafl
2013-11-16 17:32 ` Neil Bothwick
2013-11-16 17:42 ` Tanstaafl
2013-11-16 21:24 ` Alan McKinnon
2013-11-18 13:45 ` [gentoo-user] Re: Tell cron to send email using sender:passwd <at> host:587 syntax? James
2013-11-16 19:29 ` Benjamin Lee [this message]
2013-11-16 20:03 ` [gentoo-user] Tell cron to send email using sender:passwd@host:587 syntax? Tanstaafl
2013-11-16 20:25 ` Manuel McLure
2013-11-17 11:42 ` Tanstaafl
2013-11-17 11:45 ` Tanstaafl
2013-11-16 23:14 ` Neil Bothwick
2013-11-17 9:00 ` Peter Humphrey
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20131116112904.2bf9e1bf@b1c1l1.com \
--to=ben@b1c1l1.com \
--cc=gentoo-user@lists.gentoo.org \
--cc=tanstaafl@libertytrek.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox