Thus said Mike Robison on Mon, 13 Jul 2015 09:51:59 -0400:
> I'm now being asked to set up a third instance for our servers which
> send unterminated lines as well as refuse to go to a non-standard
> port. Does it make sense to set up a third instance, or is there a way
> to set up one instance of qmail to listen to two different ports at
> the same time?
I suppose correcting the problem at the source (e.g. the non-compliant
servers) is out of the question?
As for whether or not it makes sense to setup a third instance... did it
make sense to setup the second instance?
Thanks,
Andy
--
TAI64 timestamp: 4000000055a3cea1
On Monday 13 Jul 2015 09:51:59 Mike Robison wrote:
> Currently, I am running two instances of qmail under supervise. One on port
> 25 and the other on port 26.
I assume you mean qmail-smtpd via tcpserver or indeed inetd or xinetd running
on those ports.
> The one on port 26 is for the servers that I
> manage which send unterminated lines which I then run through fixcrio in
> order to insert missing CRs at the ends of lines.
> I'm now being asked to set up a third instance for our servers which send
> unterminated lines as well as refuse to go to a non-standard port. Does it
> make sense to set up a third instance, or is there a way to set up one
> instance of qmail to listen to two different ports at the same time?
One tcpserver process can only listen to a single port, so you'll need
separate instances for each port - but you don't need separate instances of
qmail[-send] itself - each tcpserver/qmail-smtpd instance can feed into the
same qmail queue (and corresponding qmail-send etc).
I hope that helps.
On Monday 13 Jul 2015 11:19:55 Mike Robison wrote:
> > On Monday 13 Jul 2015 09:51:59 Mike Robison wrote:
> > > Currently, I am running two instances of qmail under supervise. One on
> > > port 25 and the other on port 26.
> >
> > I assume you mean qmail-smtpd via tcpserver or indeed inetd or xinetd
> > running on those ports.
>
> Yes, tcpserver. And under /var/qmail/supervise, I have qmail-smtpd and
> qmail-smtpd2 (I must have been following these instructions at the time:
> http://mugurel.sumanariu.ro/linux/running-toaster-qmail-smtp-on-a-2nd-port/)
> qmail-smtpd is on port 25
> qmail-smtpd2 is on port 26 and runs fixcrio.
> Both listen, using the server's localname.
>
> > > The one on port 26 is for the servers that I
> > > manage which send unterminated lines which I then run through fixcrio in
> > > order to insert missing CRs at the ends of lines.
> > > I'm now being asked to set up a third instance for our servers which
> > > send unterminated lines as well as refuse to go to a non-standard port.
> > > Does it make sense to set up a third instance, or is there a way to set
> > > up one instance of qmail to listen to two different ports at the same
> > > time?
> >
> > One tcpserver process can only listen to a single port, so you'll need
> > separate instances for each port - but you don't need separate instances
> > of qmail[-send] itself - each tcpserver/qmail-smtpd instance can feed into
> > the same qmail queue (and corresponding qmail-send etc).
>
> I hope that helps.
>
> So I guess this modifies my question to, how does one get two instances of
> tcpserver to listen on the same port, but to requests coming to either two
> different interfaces (ie eth0 and eth1) or two different hostnames (host1
> and host2 but pointing to the same machine)? I see that tcpserver has a -l
> flag for localname. Is that an avenue I could pursue?
Specify the host argument for the IP address to listen on (you may have this
set to '0' at the moment, meaning all IP addresses that the machine listens
on) (see the webpage on tcpserver, or install the ucspi-tcp man pages which
includes a man page for tcpserver).
cheers,
Andrew.
On Monday 13 Jul 2015 13:17:54 Mike Robison wrote:
> > So I guess this modifies my question to, how does one get two instances of
> > tcpserver to listen on the same port, but to requests coming to either two
> > different interfaces (ie eth0 and eth1) or two different hostnames (host1
> > and host2 but pointing to the same machine)? I see that tcpserver has a -l
> > flag for localname. Is that an avenue I could pursue?
>
> Specify the host argument for the IP address to listen on (you may have this
> set to '0' at the moment, meaning all IP addresses that the machine listens
> on) (see the webpage on tcpserver, or install the ucspi-tcp man pages which
> includes a man page for tcpserver).
> Oh great. I think I can handle that. Currently, it uses the hostname:
>
> -l "resh.wts.edu"
>
> But if I'm interpreting right, I could just point two dns records at my
> machine resh.wts.edu and resh2.wts.edu and on a second setup, use -l
> "resh2.wts.edu" and that would differentiate between endpoints. Right?
I reiterate: see the webpage on tcpserver, or install the ucspi-tcp man pages
which includes a man page for tcpserver.