From owner-freebsd-questions@FreeBSD.ORG Thu Jul 31 03:07:50 2003 Return-Path: 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 E4B0337B401 for ; Thu, 31 Jul 2003 03:07:50 -0700 (PDT) Received: from chen.org.nz (chen.org.nz [210.54.19.51]) by mx1.FreeBSD.org (Postfix) with ESMTP id E2BA343F93 for ; Thu, 31 Jul 2003 03:07:49 -0700 (PDT) (envelope-from jonc@chen.org.nz) Received: from grimoire.chen.org.nz (localhost [127.0.0.1]) by chen.org.nz (8.12.9/8.12.9) with ESMTP id h6VA7lpI062619; Thu, 31 Jul 2003 22:07:47 +1200 (NZST) (envelope-from jonc@grimoire.chen.org.nz) Received: (from jonc@localhost) by grimoire.chen.org.nz (8.12.9/8.12.9/Submit) id h6VA7jVo062618; Thu, 31 Jul 2003 22:07:45 +1200 (NZST) (envelope-from jonc) Date: Thu, 31 Jul 2003 22:07:45 +1200 From: Jonathan Chen To: MatzeLoCal@gmx.de Message-ID: <20030731100745.GA62573@grimoire.chen.org.nz> References: <28932.1059632349@www62.gmx.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <28932.1059632349@www62.gmx.net> User-Agent: Mutt/1.4.1i cc: freebsd-questions@freebsd.org Subject: Re: [NEWBIE] Using external SMTP-Server for mail X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 31 Jul 2003 10:07:51 -0000 On Thu, Jul 31, 2003 at 08:19:09AM +0200, MatzeLoCal@gmx.de wrote: [...] > How do I set up mail in FreeBSD that it uses an external mail-server? In my > case I need to send the messages that will send my cron and some apps. But > our Systemadministrator will does not allow me to use the FreeBSD with sendmail > as server, he says that I have to use our M$ Exchange as mail server. If you want to get FreeBSD to forward your email to the MS-Exchange server, you have to: 1. make sure sendmail is running. (ie remove sendmail_* lines from /etc/rc.conf) 2. # cd /etc/mail 3. # cp freebsd.mc `hostname`.mc 4. edit `hostname`.mc and uncomment the following line: define(`SMART_HOST', `your.isp.mail.server') 5. replace `your.isp.mail.server' with your Exchange server. 6. # make 7. # make install 8. # sh /etc/rc.sendmail restart This will configure sendmail to send all non-local mail to the Exchange Server for further processing (eg: to send email to the 'Net). If you want to suck your email from the Exchange server, you'll have to install something like ports/mail/fetchmail. Cheers. -- Jonathan Chen ---------------------------------------------------------------------- The Internet: an empirical test of the idea that a million monkeys banging on a million keyboards can produce Shakespeare