From owner-freebsd-questions@FreeBSD.ORG Fri Jun 9 20:03:39 2006 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 0654E16A474 for ; Fri, 9 Jun 2006 20:03:39 +0000 (UTC) (envelope-from keramida@ceid.upatras.gr) Received: from igloo.linux.gr (igloo.linux.gr [62.1.205.36]) by mx1.FreeBSD.org (Postfix) with ESMTP id 027D443D73 for ; Fri, 9 Jun 2006 20:03:35 +0000 (GMT) (envelope-from keramida@ceid.upatras.gr) Received: from gothmog.pc (host5.bedc.ondsl.gr [62.103.39.229]) (authenticated bits=128) by igloo.linux.gr (8.13.6/8.13.6/Debian-1) with ESMTP id k59K34Co027640 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Fri, 9 Jun 2006 23:03:06 +0300 Received: from gothmog.pc (gothmog [127.0.0.1]) by gothmog.pc (8.13.6/8.13.6) with ESMTP id k59K5GAr001364; Fri, 9 Jun 2006 23:05:16 +0300 (EEST) (envelope-from keramida@ceid.upatras.gr) Received: (from giorgos@localhost) by gothmog.pc (8.13.6/8.13.6/Submit) id k59K5FO8001363; Fri, 9 Jun 2006 23:05:15 +0300 (EEST) (envelope-from keramida@ceid.upatras.gr) Date: Fri, 9 Jun 2006 23:05:15 +0300 From: Giorgos Keramidas To: Freminlins Message-ID: <20060609200515.GA83230@gothmog.pc> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Hellug-MailScanner: Found to be clean X-Hellug-MailScanner-SpamCheck: not spam, SpamAssassin (score=-3.076, required 5, autolearn=not spam, ALL_TRUSTED -1.80, AWL 1.32, BAYES_00 -2.60) X-Hellug-MailScanner-From: keramida@ceid.upatras.gr X-Spam-Status: No Cc: freebsd-questions@freebsd.org Subject: Re: Sendmail = mind boggling 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: Fri, 09 Jun 2006 20:03:39 -0000 On 2006-06-09 20:34, Freminlins wrote: > Hello, > I've always steered clear of using Sendmail (prefering Exim), > but I thought I would give it a try and am having real > difficulties with something I think should be simple. Setting up an email server is not really a simple thing to do. > I want to keep running Exim on port 25. I want Sendmail to run > on a different port. So I am trying to use the > "O DaemonPortOptions=Port=2525" option. However, I have 6 cf > files in /etc/mail - freebsd.cf, mail.xxx.co.uk.submit.cf, > freebsd.submit.cf, sendmail.cf, mail.xxx.co.uk.cf and > submit.cf. I've tried all sorts of combinations of adding the > above option to these files, but whenever I try to start > Sendmail this error: > sm-mta[52968]: NOQUEUE: SYSERR(root): opendaemonsocket: daemon Daemon0: cannot bind: Address already in use. This is probably because Sendmail tries to bind port 25 too, which is taken over by Exim. Do you *really* have to run both Sendmail and Exim on the same host? It may be a good idea to run Sendmail within a "jail", and set it up to listen for connections only on the jail's IP address. > Which file(s) am I supposed to put this option into? > I just don't understand. The `mail.xxx.co.uk.mc' file is the right one. If you are putting it anywhere else, you are doing something that is wrong. > Is it correct, also, that I have 6 cf files? I set this up as > per the handbook. At this rate I know why I've always used Exim :-) The Handbook doesn't mention any way to set the DaemonPortOptions stuff, as far as I can tell: $ cd ~/ws/bsd/doc/en_US.ISO8859-1/books/handbook $ fgrep -r DaemonPortOption . $ So you must have been following other instructions too. What are those instructions? - Giorgos