Sendmail = mind boggling

Giorgos Keramidas keramida at
Fri Jun 9 20:03:39 UTC 2006

On 2006-06-09 20:34, Freminlins <freminlins at> 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 -,,
>,, and
>  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 `' 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

More information about the freebsd-questions mailing list