Re: [EXIM] Comment in a re-written address

Página Principal
Apagar esta mensagem
Responder a esta mensagem
Autor: patl
Data:  
Para: paulr
CC: exim-users
Assunto: Re: [EXIM] Comment in a re-written address
> Hi,
>
> In converting from Nexor's MMTA on our Mail Hubs (nearly there),
> I need to convert lines like the following in an MMTA aliases table:
>
> elec-year1:synonym "class@??? (5B7U+2RNU+3KAU)" 822
> elec-year2:synonym "class@??? (777V+2RCV+3KDV)" 822
> elec-year3:synonym "class@??? (8J9W+3YHW)" 822
> elec-year4:synonym "class@??? (689X+2AXX+8N5X+3LDX+3LEX+3LFX)" 822
>
> ...
>
> Assistance would be appreciated. Using Exim 1.92.
>
> [ BACKGROUND:
> I have a dynamic distribution list facility. It uses
> an adapted resend command in Majordomo on server
> udcf.gla.ac.uk which can recognise message header lines like
>
>      To: class@??? (8J9W+3YHW)
>   and
>      To: "(8J9W+3YHW)" <class@???>

>
> and will deliver to all students who are under one or more of the
> specified four character course codes (eliminating duplicate recipients).
> There are thousands of possible course codes.


Needing the translation in the headers rather than the envelope
makes things a bit more complicated. The easiest approach might
be to modify resend to check a new header instead of, or in addition
to, the To: field. (E.g. X-Course-Codes:) Then use a traditional
alias file with entries of the form:

    elec-year1: class-5B7U+2RNU+3KAU@???
    elec-year2: class-777V+2RCV+3KDV@???


and an Exim director along the following lines:

    class_lists:
        driver = smartuser
        domains = "gla.ac.uk"
        prefix = "class-"
        new_address = "class@???"
        headers_add = "X-Course-Codes: ${local_parts}"




-Pat

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