From owner-freebsd-questions@FreeBSD.ORG Sun Oct 25 01:10:12 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1889A106566B for ; Sun, 25 Oct 2009 01:10:12 +0000 (UTC) (envelope-from dcdowse@gmx.net) Received: from mail.gmx.net (mail.gmx.net [213.165.64.20]) by mx1.freebsd.org (Postfix) with SMTP id 60F5A8FC08 for ; Sun, 25 Oct 2009 01:10:11 +0000 (UTC) Received: (qmail invoked by alias); 25 Oct 2009 01:10:09 -0000 Received: from p4FD4EFBA.dip.t-dialin.net (EHLO bytebox) [79.212.239.186] by mail.gmx.net (mp004) with SMTP; 25 Oct 2009 02:10:09 +0100 X-Authenticated: #30106961 X-Provags-ID: V01U2FsdGVkX1+kC8FbxBykD8aaviOZ7vmdIQGxa7f8X59iLf+J0y FS7s58PaoKhT2L Date: Sun, 25 Oct 2009 02:10:09 +0100 From: "Daniel C. Dowse" To: Kelly Martin Message-Id: <20091025021009.051de285.dcdowse@gmx.net> In-Reply-To: <1338880b0910240008h5d5e7846q8ccf184728d9e036@mail.gmail.com> References: <1338880b0910240008h5d5e7846q8ccf184728d9e036@mail.gmail.com> X-Mailer: Sylpheed 2.7.0 (GTK+ 2.12.11; i386-unknown-freebsd7.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Y-GMX-Trusted: 0 X-FuHaFi: 0.63 Cc: FreeBSD Questions Subject: Re: changing cron's From: address in emails X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 25 Oct 2009 01:10:12 -0000 On Sat, 24 Oct 2009 01:08:21 -0600 Kelly Martin wrote: > Greetings, here's a simple question for the FreeBSD gurus out there. I > have several servers running cron scripts daily for me, and they all > send me e-mail with their output. Regardless of which server it is, > each of these e-mails have the From: address looking exactly the same. > They all say they are from the "Cron Daemon". Fine, but I'd like to > know more clearly which server the cron output is from. > > How can I change the From: address of these emails to "Myserver Cron > Daemon" instead? I know cron runs as the user, so it's not immediately > obvious to me how to change the From: field. Already the subject line > says something like "Cron ..." but this doesn't stand > out enough for my tired eyes. Why don`t you just create some filter rules in your mua ? It may makes it clear for you if you create a folder for each host and filter your msg on receiving ? e.g. Inbox ... CronDir - Host 1 - Host 2 .... Cheers Daniel -- Just because I don`t care - Doesn`t mean I don`t understand ! -- Homer J. Simpson