This is not a particularly good idea.
The first problem is that to get 2 instances of sendmail referring to a
different .cf file, one of them must use the -C switch, which is an "unsafe"
switch, which can cause some options to be ignored, or set to defaults,
especially when users other than root invoke it. The workaround is to build
two sendmails, each of which refers to different .cf files. Kind of a
headache to maintain.
The second problem is - how do you originate mail from the multi-hosted
machine? Which sendmail do you use? It must be put into Mail.rc, pine.conf,
or whatever you use as the local MUA - that local MUA may or may not permit
additional switches to be added to the sendmail command line. It may even be
hardcoded to use /usr/lib/sendmail, which may not be the one you want.
But the main reason this is a bad idea, is that it bypasses sendmail's
multi-domain features, which are designed to avoid this sort of hack in the
first place! One sendmail can host and/or route as many domains as you care
to throw at it, and each domain can have its own set of unique addresses,
i.e. [EMAIL PROTECTED] and [EMAIL PROTECTED] are both supported, and
both are distinct from each other. They can deliver to distinct mailboxes on
the same machine, or on different machines altogether.
But to answer your question, it's the DaemonPortOptions option that you want
to take a look at, to get sendmail to bind to a particular address or port.
You cannot get the Internet at large to connect to your non-standard port, but
if your systems are the only ones relaying to the non-standard port, you can
tell them to do so in the mailertable.
But it's ugly, and unnecessary.
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of Denis Vella
> Sent: Monday, March 15, 1999 8:52 AM
> To: [EMAIL PROTECTED]
> Subject: Mail Daemons - Possibly Off-Topic
>
>
> Hi All,
>
> Does anybody have any views / experience with running multiple sendmail
> daemons (or other mailers) or with running mail daemons on non standard
> ports? How do you get mail to such a server? How do you get sendmail to
> bind to a non standard port?
>
> Alternatively, could you have two daemons listening on different IP
> addresses on the same machine (similar to multiple Web Hosting)? Again,
> how do you get sendmail (or other) to listen to a particular address?
>
> The idea is to have two completely distinct domains on a single machine
> with no possible overlap.
>
> Thanks,
> Denis
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> Denis Vella Tel: +356 445566
> [EMAIL PROTECTED] Fax: +356 484316
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> -
> [To unsubscribe, send mail to [EMAIL PROTECTED] with
> "unsubscribe firewalls" in the body of the message.]
>
-
[To unsubscribe, send mail to [EMAIL PROTECTED] with
"unsubscribe firewalls" in the body of the message.]