From owner-freebsd-questions@FreeBSD.ORG Tue Sep 30 14:17:28 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 5A63516A4B3 for ; Tue, 30 Sep 2003 14:17:28 -0700 (PDT) Received: from smtp.tiadon.com (SMTP.tiadon.com [69.27.132.161]) by mx1.FreeBSD.org (Postfix) with ESMTP id 449354400E for ; Tue, 30 Sep 2003 14:17:27 -0700 (PDT) (envelope-from kdk@daleco.biz) Received: from daleco.biz ([69.27.131.162]) by smtp.tiadon.com with Microsoft SMTPSVC(5.0.2195.6713); Tue, 30 Sep 2003 16:08:34 -0500 Message-ID: <3F79F2BE.7080705@daleco.biz> Date: Tue, 30 Sep 2003 16:16:46 -0500 From: "Kevin D. Kinsey, DaleCo, S.P." User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.4) Gecko/20030920 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Bernard Roux References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 30 Sep 2003 21:08:35.0200 (UTC) FILETIME=[02B91000:01C38797] cc: freebsd-questions@freebsd.org Subject: Re: Mail Server 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: Tue, 30 Sep 2003 21:17:28 -0000 Bernard Roux wrote: >Please can you help me. I would like to setup a mail server using Freebsd. I >have installed the software, but how do I configure Freebsd to become a mail >server. > >I am desperate. > > >Kind regards > >Bernard Roux > > In addition to the fine replies you have already received, let me add to the noise: FreeBSD comes with Sendmail, all time King ("James" ;-) of the MTA's, already installed. All you need is the line sendmail_enable="YES" In /etc/rc.conf. So you have a working SMTP server on hand, it just needs some configuration. If you do *not* know how to set up DNS, you should read up on that first. Walk through /etc/mail and look at a few files: local-host-names # add your hostname to this file #if it doesn't exist, create it relay-domains #you may need to add LAN IP's # or other domains to allow outbound # relaying of mail aliases # username mapping virtusertable # domain mapping Check the file /var/log/maillog as well, as most any errors dealing with the mailserver will show up there. If you want to use the machine as a POP or IMAP server, check the programs in /etc/ports/mail. There is an example line to enable a POP server in /etc/inetd.conf, but one is not installed by default. I don't necessarily wish to give you the impression that running a mail server is a piece of cake, but it's not that difficult to get started with it. What is tough is keeping it secure, and making sure the configuration makes it a workhorse and not a headache. HTH, Kevin Kinsey DaleCo, S.P.