Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #160575

Re: How to configure cron (and pam?) to allow mail from cron?

Path csiph.com!news.mixmin.net!news.unit0.net!news.panservice.it!diesel.cu.mi.it!bofh.it!news.nic.it!robomod
From Gene Heskett <gheskett@shentel.net>
Newsgroups linux.debian.user
Subject Re: How to configure cron (and pam?) to allow mail from cron?
Date Sun, 15 Nov 2015 04:10:01 +0100
Message-ID <quVRv-4eT-3@gated-at.bofh.it> (permalink)
References <quRXA-1zA-13@gated-at.bofh.it> <quUsp-3gM-1@gated-at.bofh.it> <quVeN-3MW-15@gated-at.bofh.it>
X-Original-To Debian User <debian-user@lists.debian.org>
X-Mailbox-Line From debian-user-request@lists.debian.org Sun Nov 15 03:02:12 2015
Old-Return-Path <gheskett@shentel.net>
X-Amavis-Spam-Status No, score=-7.344 tagged_above=-10000 required=5.3 tests=[BAYES_00=-2, LDO_WHITELIST=-5, RP_MATCHES_RCVD=-0.345, WEIRD_PORT=0.001] autolearn=ham autolearn_force=no
X-Policyd-Weight NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_BL_NJABL=-1.5 CL_IP_EQ_FROM_MX=-3.1; rate: -6.1
X-Asg-Debug-ID 1447556514-097fa2077424e0ef0001-KlT975
X-Barracuda-Envelope-From gheskett@shentel.net
X-Barracuda-Rbl-Trusted-Forwarder 204.111.2.17
X-Barracuda-Apparent-Source-IP 204.111.64.149
X-Barracuda-Rbl-IP 204.111.64.149
X-Asg-Orig-Subj Re: How to configure cron (and pam?) to allow mail from cron?
User-Agent KMail/1.9.10 (enterprise35 0.20100827.1168748)
X-Kmail-Quoteprefix >
MIME-Version 1.0
Content-Type Text/Plain; charset="utf-8"
Content-Transfer-Encoding 7bit
Content-Disposition inline
X-Barracuda-Connect smtp1.edbg.cloud.shentel.net[204.111.2.17]
X-Barracuda-Start-Time 1447556514
X-Barracuda-URL https://204.111.1.147:443/cgi-mod/mark.cgi
X-Barracuda-Brts-Status 1
X-Barracuda-Brts-Evidence geneslinuxbox.net
X-Barracuda-Spam-Score 0.50
X-Barracuda-Spam-Status No, SCORE=0.50 using per-user scores of TAG_LEVEL=1000.0 QUARANTINE_LEVEL=1000.0 KILL_LEVEL=6.0 tests=WEIRD_PORT
X-Barracuda-Spam-Report Code version 3.2, rules version 3.2.3.24402 Rule breakdown below pts rule name description ---- ---------------------- -------------------------------------------------- 0.50 WEIRD_PORT URI: Uses non-standard port number for HTTP
X-Mailing-List <debian-user@lists.debian.org> archive/latest/700044
List-ID <debian-user.lists.debian.org>
List-URL <https://lists.debian.org/debian-user/>
List-Archive https://lists.debian.org/msgid-search/201511142201.53600.gheskett@shentel.net
Approved robomod@news.nic.it
Lines 34
Organization linux.* mail to news gateway
Sender robomod@news.nic.it
X-Original-Date Sat, 14 Nov 2015 22:01:53 -0500
X-Original-Message-ID <201511142201.53600.gheskett@shentel.net>
X-Original-References <CAFvQaj51d8G-zZe1Qp1fdC=OYQnN1+uFCd_C-5sBjtJFs5AJfw@mail.gmail.com> <201511142036.07006.gheskett@shentel.net> <CAFvQaj5ZA1g3vbgGP-Uov4iANNU2EnT=5-Pgq0tFYmdSaeioWg@mail.gmail.com>
Xref csiph.com linux.debian.user:160575

Show key headers only | View raw


On Saturday 14 November 2015 21:25:47 Kynn Jones wrote:

> On Sat, Nov 14, 2015 at 8:36 PM, Gene Heskett <gheskett@shentel.net> 
wrote:
> > On Saturday 14 November 2015 17:58:59 Kynn Jones wrote:
> >> I'm trying to set up a `cron` job that will send me mail for some
> >> outputs.
> >>
> >> In my `crontab` I have the `MAILTO` variable set to my email
> >> address, as well as the directives
> >>
> >> * * * * * /bin/date >> /tmp/debug_cron
> >> * * * * * /bin/date >&2
> >
> > On the machine, MAILTO: is not normally to your email address, but
> > usually is username@localhost.
>
> Oh, I see.  That makes cron's mail feature significantly less
> useful/convenient than I thought.
>
> Thanks!
>
> kj

Works just fine.  I get all the mails from clamscan, amanda, and 
spamassassin's utilities that way.  The idea is that when a background 
task is done, it sends you an email with the results.

Cheers, Gene Heskett
-- 
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
Genes Web page <http://geneslinuxbox.net:6309/gene>

Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

How to configure cron (and pam?) to allow mail from cron? Kynn Jones <kynnjo@gmail.com> - 2015-11-15 00:00 +0100
  Re: How to configure cron (and pam?) to allow mail from cron? Gene Heskett <gheskett@shentel.net> - 2015-11-15 02:40 +0100
    Re: How to configure cron (and pam?) to allow mail from cron? Kynn Jones <kynnjo@gmail.com> - 2015-11-15 03:30 +0100
      Re: How to configure cron (and pam?) to allow mail from cron? Gene Heskett <gheskett@shentel.net> - 2015-11-15 04:10 +0100
      Re: How to configure cron (and pam?) to allow mail from cron? David Wright <deblis@lionunicorn.co.uk> - 2015-11-17 16:10 +0100
        Re: How to configure cron (and pam?) to allow mail from cron? Chris Bannister <cbannister@slingshot.co.nz> - 2015-11-17 19:10 +0100
          Re: How to configure cron (and pam?) to allow mail from cron? <tomas@tuxteam.de> - 2015-11-17 19:20 +0100
            Re: How to configure cron (and pam?) to allow mail from cron? Chris Bannister <cbannister@slingshot.co.nz> - 2015-11-18 10:40 +0100

csiph-web