On Mon, Nov 14, 2016 at 12:49:37PM +0700, Victor Sudakov wrote:
Victor> Oleksandr Trotsai wrote:
Victor> > Victor> > Может в конкретный роутер напихать что-то типа
Victor> > Victor> > headers_add + headers_remove
Victor> > Victor> 
Victor> > Victor> Отдельный роутер что ли завести под эту задачу? 
Victor> > Victor> 
Victor> > Victor> -- 
Victor> > Victor> Victor Sudakov,  VAS4-RIPE, VAS47-RIPN
Victor> > Victor> sip:suda...@sibptus.tomsk.ru
Victor> > 
Victor> > Ну да. Тем более, что это хорошо попрадает под условия
Victor> > задачи, как вы их описали
Victor> 
Victor> С manualroute на все домены Pupkin,inc ?
Victor> А поизящнее как-то?
Victor> 
Victor> Да и headers_add + headers_remove разве перепишет envelope?

Э-э-э
Обычные заголовки например так
+---------------+---------------+------------+--------------+
|headers_rewrite|Use: transports|Type: string|Default: unset|
+---------------+---------------+------------+--------------+

This option allows addresses in header lines to be rewritten at transport time,
that is, as the message is being copied to its destination. The contents of the
option are a colon-separated list of rewriting rules. Each rule is in exactly
the same form as one of the general rewriting rules that are applied when a
message is received. These are described in chapter 31. For example,

headers_rewrite = a@b c@d f : \
                  x@y w@z

changes a@b into c@d in From: header lines, and x@y into w@z in all
address-bearing header lines. The rules are applied to the header lines just
before they are written out at transport time, so they affect only those copies
of the message that pass through the transport. However, only the message's
original header lines, and any that were added by a system filter, are
rewritten. If a router or transport adds header lines, they are not affected by
this option. These rewriting rules are not applied to the envelope. You can
change the return path using return_path, but you cannot change envelope
recipients at this time.

А envelope-to это ж фактически получатель почты, т.е. через
роутер rewrite меняете получателя на то что вам надо

По-моему так

-- 
Best regard, Aleksander Trotsai aka MAGE-RIPE aka MAGE-UANIC
My public PGP key placed at http://mvps.adamant.ua/pgp/trotsai.asc
Big trouble: 
BOFH excuse #226:

A star wars satellite accidently blew up the WAN.


_______________________________________________
Exim-users mailing list
Exim-users@mailground.net
http://mailground.net/mailman/listinfo/exim-users

Ответить