Re: [EXIM] address_file and user rights

Página superior
Eliminar este mensaje
Responder a este mensaje
Autor: Ben Smithurst
Fecha:  
A: exim-users
Asunto: Re: [EXIM] address_file and user rights
Tabor J. Wells wrote:

> Maybe I'm missing something but I think you're making this more difficult
> than it has to be. Why not use the archive2.pl script as included with
> Majordomo


I was going to say the same thing myself, but realised that making Exim
append the Majordomo archive makes more sense. (Why start a Perl script
to do a job that Exim can do itself perfectly well?) I just have a
director something like

list_aliases:
file = /etc/aliases.lists
user = majordom
group = mail
mode = 600

and then create aliases like

list-mkarchive: /usr/majordomo/lists/list.archive/list.199808

and make list-mkarchive a subscriber to the list. Then once a month just
do something like

sed 's/\.[0-9][0-9][0-9][0-9][0-9][0-9]$/'.`date +%Y%m`/ ...

to update the filename extension in the alias file. I've been using
this setup for, uh, three minutes :-) and it seems to work alright.

[you'll probably want to add a condition to that director
so only Majordomo can append the archives - see the FAQ at
http://www.netmaster.ca/exim/majordomo.html, I think that's the URL
anyway.]

-- 
Ben Smithurst                             http://www.scientia.demon.co.uk/
ben@???


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