From owner-freebsd-questions@FreeBSD.ORG Thu Nov 10 03:08:33 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B05B616A41F for ; Thu, 10 Nov 2005 03:08:33 +0000 (GMT) (envelope-from greg@grokking.org) Received: from herbert.sohotech.ca (herbert.sohotech.ca [206.116.63.239]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4C72443D46 for ; Thu, 10 Nov 2005 03:08:33 +0000 (GMT) (envelope-from greg@grokking.org) Received: from localhost (unknown [127.0.0.1]) by herbert.sohotech.ca (Postfix) with ESMTP id AB9D517BC40 for ; Wed, 9 Nov 2005 19:08:31 -0800 (PST) Received: from herbert.sohotech.ca ([127.0.0.1]) by localhost (herbert.sohotech.ca [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 86140-07 for ; Wed, 9 Nov 2005 19:08:30 -0800 (PST) Received: from [192.168.33.4] (heinlein.sohotech.ca [192.168.33.4]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by herbert.sohotech.ca (Postfix) with ESMTP id B125E17B57B for ; Wed, 9 Nov 2005 19:08:30 -0800 (PST) Message-ID: <4372B9AF.8000300@grokking.org> Date: Wed, 09 Nov 2005 19:08:31 -0800 From: Greg Maruszeczka User-Agent: Mozilla Thunderbird 1.0.7 (X11/20051106) X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-questions@freebsd.org References: In-Reply-To: X-Enigmail-Version: 0.93.0.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Scanned: amavisd-new at sohotech.ca Subject: Re: Configuring default 6.0 install to send mail 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: Thu, 10 Nov 2005 03:08:33 -0000 Brooke Landers wrote: > Hello list. I am learning FreeBSD and I'd like to know how to configure > Sendmail to simply forward mail although it seems it's doing this by > default. I can send mail, but it's being rejected since > mylocalhost.mydomain.com doesn't resolve. I'm using internal hosts that > will never have DNS entries. > > I'm looking for somewhere where I can specify that user@mylocalhost can > send mail as user@mydomain.com. I'm pretty sure that my mail would be > accepted if I can do this. > > I don't want to set up a mail server, I'd just like to know how I can > get my logs and admin mail forwarded to an external address. I apologize > for not sending this to a sendmail list, but I figured there may be > something simple and specific to FreeBSD that I have overlooked. > > Thank you for any help :) > BL > If that's all you want to do the simplest thing is this (as root): cd /etc/mail vi aliases Look for the entry for root: uncomment it and add whatever external address you want after the colon. After saving and exiting: newaliases Now all system mail should be sent to the external address you specified in /etc/mail/aliases. Test it by doing this: mail -s "Test" root G