[Exim] virtual domains filtering

トップ ページ
このメッセージを削除
このメッセージに返信
著者: Michael N. Shibaev
日付:  
To: EXIM
題目: [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