Re: [EXIM] majordomo?

Kezdőlap
Üzenet törlése
Válasz az üzenetre
Szerző: Nigel Metheringham
Dátum:  
Címzett: Jeffrey Goldberg
CC: Bruce Bowler, Majordomo Users List, exim-users
Tárgy: Re: [EXIM] majordomo?

J.Goldberg@??? said:
} For example, could management be easier with a majordomo director?

OK, I don't use Majordomo, and know zilch about how it lays out things.
However I suspect that you could do something very similar to what I do
with smartlist.

smartlist has a directory for each list, all the lists for a system go 
below a base directory.  In an active list directory there will always be 
a file called rc.init.  So on my system where the list directories are 
/var/spool/slist/* the following director mops up both list and request 
mail
  list_director:
    driver = smartuser,
    suffix = -request,
    suffix_optional,
    except_local_parts = ".bin:.etc",
    require_files = /var/spool/slist/${local_part}/rc.init,
    transport = list_transport;


(the except is to make sure that smartlist's internal directories aren't
exploited by someone)

The list_transport that everything is passed to is equally simple:-
  list_transport:
    driver = pipe;
    command = "/var/spool/slist/.bin/flist ${local_part}${local_part_suffix
}",
    current_directory = "/var/spool/slist",
    home_directory = "/var/spool/slist",
    user = slist,
    group = slist


and this is enough to make the whole system rock.
Majordomo will obviously also require that you dispose of stdout/stderr
reporting (which exim considers an error - this can be done by tweaking
the transport parameters or maybe redirecting it (with care - exim doesn't
use the shell unless told to).

smartlist does not use outgoing aliases, instead it invokes the MTA with a
list of sorted addresses (split by domain to try and keep similar
destinations together). However if you did use aliases for the outgoing
stuff then you could restrict their use to particular sender addresses.

The advantage of the stuff described above is that to create a list I just
tell smartlist to do it, and everything else happens by magic - exim sees
it etc. No aliases to edit. Only one place to put the information, so it
*has* to be consistant.

    Nigel.
-- 
[ Nigel.Metheringham@???   -  Systems Software Engineer ]
[ Tel : +44 113 251 6012                   Fax : +44 113 234 6065 ]
[      Real life is but a pale imitation of a Dilbert strip       ]




--
*** Exim information can be found at http://www.exim.org/ ***