[Prev][Next][Index][Thread]

Re: LAN qmail delivery?



On Tue 1998-06-02 (22:28), Michael Samuel wrote:
> On Tue, 2 Jun 1998, Mail Account for root wrote:
> 
> > Currently qmail has two delivery "queues":  local and remote.  Would it
> > possible to add a third one for the local area network?
> 
> Yes, and no...
> 
> Create a new user (preferred), and create a virtualdomain (qmail-send(8))
> for each host on your network, for example:
> 
> norm.my.network:localnet-norm
> sam.my.network:localnet-sam
> cliff.my.netwrok:localnet-cliff
> 
> Then, ~localnet/.qmail-norm-default will control deliveries to
> norm.my.network.  This can envoke qmail-remote directly (see
> qmail-remote(8)), which will mean that localnet deliveries compete with
> local deliveries (shouldn't be a problem usually), or it can implement
> it's own queue structure, possibly a Maildir delivery, followed by
> invoking maildirsmtp.

This is what I do for mail going to a particular machine on our LAN than
handles lost of mail. I have a virtual host delivering to a local user and
then a supervised maildirsmtp delivery to deliver mail in the maildir.

In /var/qmail/control/virtualdomains:

  local1.machine.dom:lanmail

In /home/lanmail/.qmail-default:

  ./Maildir/

Then I run my sdeliver script (http://rucus.ru.ac.za/~keith/qmail).
As Michael suggested, you could do this for any of the machines on your LAN. 
eg.

  local2.machine.dom:lanmail
  local3.machine.dom:lanmail

Another advantage of this approach is that you can do some mail filtering on
the mail before it gets delivered.

> Then again, it's probably easier to jack your concurrencyremote up a bit,
> and forget the whole idea :-)

yup :-)

> Michael Samuel,

  - Keith
-- 
Keith Burdis - MSc (Com Sci) - Rhodes University, South Africa  
Email   : keith@xxxxxxxxxxxxxx
WWW     : http://www.rucus.ru.ac.za/~keith/
IRC     : Panthras                                          JAPH

Standard disclaimer.
---


Follow-Ups: References: