Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 9 Jun 2006 23:05:15 +0300
From:      Giorgos Keramidas <keramida@ceid.upatras.gr>
To:        Freminlins <freminlins@gmail.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Sendmail = mind boggling
Message-ID:  <20060609200515.GA83230@gothmog.pc>
In-Reply-To: <eeef1a4c0606091234m28ad97b5o6c1f332067888dc4@mail.gmail.com>
References:  <eeef1a4c0606091234m28ad97b5o6c1f332067888dc4@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On 2006-06-09 20:34, Freminlins <freminlins@gmail.com> 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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060609200515.GA83230>