From owner-freebsd-questions@FreeBSD.ORG Wed May 16 10:48:07 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id D609016A400 for ; Wed, 16 May 2007 10:48:07 +0000 (UTC) (envelope-from schiz0phrenic21@gmail.com) Received: from ik-out-1112.google.com (ik-out-1112.google.com [66.249.90.181]) by mx1.freebsd.org (Postfix) with ESMTP id 6C7A013C455 for ; Wed, 16 May 2007 10:48:07 +0000 (UTC) (envelope-from schiz0phrenic21@gmail.com) Received: by ik-out-1112.google.com with SMTP id c29so85305ika for ; Wed, 16 May 2007 03:48:06 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=WhLpg/o5kB+oR/JsbCZMM+cVe6L+q8aWl+pakvlSGzSJa3GvQnbxZqa9KAgpUG7bTTKgZ7dqIjScS87CEI9M5fyXO0R3dp2Z90z1XWLC0bTZqhSC5gbpYFZBRU1Ug/QteQSYPqNLcnQWHKjG6C1lfnV+AgA2oBIFIbLVu9aHdPI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=WQHhdvpK4+9ii18wj8eXbE50i7o/E/f6BS7pB3VUzL7y8+9mjXtT7n+mVnNXxknWrZ1agZ9E9G8HDcHfz9EBYor2pkxtw0XDxPUbgbiLpxACmhouVtwWfvOZ4VXswwwbjFdeXCjzMQBxnqpLiQDRBUHXQQS895S3ZitFE9IyfGI= Received: by 10.115.58.1 with SMTP id l1mr2089684wak.1179312485425; Wed, 16 May 2007 03:48:05 -0700 (PDT) Received: by 10.114.52.19 with HTTP; Wed, 16 May 2007 03:48:05 -0700 (PDT) Message-ID: <8d23ec860705160348v4f764652w3d89b3a7a7953523@mail.gmail.com> Date: Wed, 16 May 2007 06:48:05 -0400 From: Schiz0 To: "Ian Lord" In-Reply-To: <023c01c7978a$cd64e110$6400a8c0@msdi.local> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <00a401c7970d$cf443030$6400a8c0@msdi.local> <20070515212603.GD27529@nemesis.frida.mouhaha.de> <20070515213815.GA45661@gizmo.acns.msu.edu> <20070516071755.GB33559@nemesis.frida.mouhaha.de> <023c01c7978a$cd64e110$6400a8c0@msdi.local> Cc: Jerry McAllister , Oliver Peter , freebsd-questions@freebsd.org Subject: Re: Newbie Question: Mail from from cron jobs... 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: Wed, 16 May 2007 10:48:07 -0000 On 5/16/07, Ian Lord wrote: > > > -----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 > > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" > Try checking /etc/rc.conf for your hostname var. Also, /etc/hosts