[Exim] virtual domains filtering

Páxina inicial
Borrar esta mensaxe
Responder a esta mensaxe
Autor: Michael N. Shibaev
Data:  
Para: EXIM
Asunto: [Exim] virtual domains filtering
            Hello,

    When i use filtering for local user (user@???)
    that one works. But in exim.conf routers section there is
    such router:


>virtual:
>        driver=domainlist
>    transport=virtual_delivery
>    route_file=/etc/exim/virtual.domains
>    search_type = lsearch


    and in transports section is such transport:


>virtual_delivery:
>        driver=appendfile
>    file=/var/spool/mail/${lookup{$domain}lsearch{/etc/exim/virtual.domains}
>    user=${lookup{$domain}lsearch{/etc/exim/virtual.domains}{$value}fail}
>    delivery_date_add
>    envelope_to_add
>    return_path_add
>    group=mail
>    mode=0600


    So all mail messages for any domain from /etc/exim/virtual.domains
    goes to according mailbox.
    For example, record from /etc/exim/virtual.domains


>    alg.kaliningrad.ru:             alg


    But if in this case l will put .forward file to alg's home directory
    and will send message to user1@??? that
    filter will not work.
    How can i decide this problem?


    Shibaev Michael