Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 16 May 2007 03:21:20 -0400
From:      "Ian Lord" <mailing-lists@msdi.ca>
To:        "'Oliver Peter'" <hoschi@mouhaha.de>, "'Jerry McAllister'" <jerrymc@msu.edu>
Cc:        freebsd-questions@freebsd.org
Subject:   RE: Newbie Question: Mail from from cron jobs...
Message-ID:  <023c01c7978a$cd64e110$6400a8c0@msdi.local>
In-Reply-To: <20070516071755.GB33559@nemesis.frida.mouhaha.de>
References:  <00a401c7970d$cf443030$6400a8c0@msdi.local> <20070515212603.GD27529@nemesis.frida.mouhaha.de> <20070515213815.GA45661@gizmo.acns.msu.edu> <20070516071755.GB33559@nemesis.frida.mouhaha.de>

next in thread | previous in thread | raw e-mail | index | archive | help


-----Original Message-----
From: Oliver Peter [mailto:hoschi@mouhaha.de] 
Sent: 16 mai 2007 03:18
To: Jerry McAllister
Cc: Oliver Peter; Ian Lord; freebsd-questions@freebsd.org
Subject: Re: Newbie Question: Mail from from cron jobs...

On Tue, May 15, 2007 at 05:38:15PM -0400, Jerry McAllister wrote:
> On Tue, May 15, 2007 at 11:26:03PM +0200, Oliver Peter wrote:
> 
> > On Tue, May 15, 2007 at 12:26:36PM -0400, Ian Lord wrote:
> > >  ...
> > > 
> > > Where can I change the address root@localhost.mydomain.com to
> > > machinename@mydomain.com ?
> 
> Look in the file /etc/mail/aliases
> 
> You can alias root to go to your favorite address.
> Don't forget to run   newaliases(1)   after editing the file.
> 
> Of course, doing this will mean that all mail to root will
> go to you.   

Hhm. I thought the problem was that you would like to change the From:
of those e-mails not the To: ?

-- 
Oliver PETER, email: hoschi@mouhaha.de, ICQ# 113969174
"Worker bees can leave. Even drones can fly away. The Queen is their slave."

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Exactly... I receive the emails since I correctly configured my aliases to
redirect all mails externally...

The problem I have is with the from...

Someone told me to change the hostname in rc.conf, that won't work since I
have 4 machines:

	Machine1.mydomain.com
	Machine2.mydomain.com
	Machine3.mydomain.com
	Machine4.mydomain.com

I want the mail from to be 
root@mydomain.com not root@localhost.mydomain.com
...

Not too sure where to look into to fix this




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?023c01c7978a$cd64e110$6400a8c0>