Peter Marenbach <[EMAIL PROTECTED]> wrote:
> >
> > You are missing the obvious solution: use two qmail instances on
> > this box. The first one is used for receiving all mails from
> > external and has the domains in locals/virtualhosts and locals. The
> > second one only has its own hostname in locals and rcpthosts and is
> > _only_ used to relay messages from own clients/customers/whatever to
> > the world. The world could include the secoand qmail instance on
> > this box.
>
> Actually, setting up multiple instances on one machine was my first
> throught. I believe to have exactly the behaviour I described, I would
> need one instance for each VPN. However, due to the modular structure
> of qmail I thought it would not be possible to run multiple instances
> (e.g. listining on different ports) on the same machine. How will one
> qmail-smtpd know to which qmail-send it has to pass its mail?
It's compiled into the qmail-smtpd binary (conf-qmail). For domain "A",
you set conf-qmail to /var/qmail-a and compile/install. You then change
conf-qmail to /var/qmail-b and compile/install. Repeat as necessary.
You then have multiple IP addresses on the box, and bind each instance
of qmail-smtpd to one of them. The MX record for domain "A" points to
the A record with the IP address that /var/qmail-a/bin/qmail-smtpd is
using, etc.
> Is this controlled only by the queue directory path? If yes, could I
> run one qmail-smtpd which would be patched to use different queue
> directories for the different VPNs?
Too complicated. See above.
> Then I could setup one qmail-send for each VPN and things would be
> fine. (at least as long as the number of instances does not kill my
> machine ... a Sun E250)
qmail puts very little load on a system for a moderate mail load; much
less than sendmail, for instance.
Charles
--
-----------------------------------------------------------------------
Charles Cazabon <[EMAIL PROTECTED]>
GPL'ed software available at: http://www.qcc.sk.ca/~charlesc/software/
-----------------------------------------------------------------------