Hello!

On Mon, 09 Feb 2015 at 09:21:40 (+0200), Yaroslav Savchenko wrote:

> Добрый день, коллеги.
> Подскажите пожалуйста, задача - отправить файлы *.P7s в определенный ящик.

> Идея была в demime установить переменную, по переменной в rewrite 
> переписать получателя, примерно так:
> rewrite:

> [email protected] "${if 
> ={$acl_c_opz}{1}{[email protected]}{[email protected]}}" Tt

> demime:

> warn message = X-p7s: Message with p7s
>          demime = p7s
>          set acl_c_opz = 1
>          log_message = BAD_ATTACHMENT. p7s

> Собственно, demime работает, но condition в rewrite ошибок не выдает, но 
> и не работает .
> Где я ошибся?

А rewrite разве происходит на стадии acl_smtp_mime или acl_smtp_data?

--- cut ---
31.2 When does rewriting happen?
--------------------------------
[...]
As soon as a message's header lines have been received, all the envelope
recipient addresses are permanently rewritten, and rewriting is also applied to
the addresses in the header lines (if configured). This happens before adding
any header lines that were specified in MAIL or RCPT ACLs, and before the DATA
ACL and local_scan() functions are run.
[...]
--- cut ---

Я не сильно вчитывался в раздел 31 файла /usr/local/share/doc/exim/spec.txt
Так что лучше перечитайте самостоятельно, чтобы понять, почему не
срабатывает rewrite.

ps: я бы тоже через роутер либо системный фильтр делал такой.

-- 
George L. Yermulnik
[YZ-RIPE]

_______________________________________________
Exim-users mailing list
[email protected]
http://mailground.net/mailman/listinfo/exim-users

Ответить