[exim] unseen router for incoming mail

Góra strony
Delete this message
Reply to this message
Autor: Marcin Krol
Data:  
Dla: exim-users
Temat: [exim] unseen router for incoming mail
Hello everyone,

..so I have those two unseen routers (below) for sending to some address a copy of outgoing and incoming mail, respectively.

It works, but when the forward address (say, "fin@???") is located within the same domain that is forwarded (say, "da7.promo.pl"), it obviously starts a loop.

Now Exim detects that:

fin@??? is a duplicate address: discarded

But in debug log I see there are several loops done that might be avoided and I don't like implicit depending on Exim for detection of potential infinite loop.

Is there a way to explicitly detect that unseen router for an address has already sent a copy of this mail before and skip this router explicitly in "condition"?

copy_out_virtual_domain:
  driver = redirect
  condition = ${if and { \
      { exists{/home/${lookup{$sender_address_domain}lsearch*{/etc/virtual/domainowners}{$value}}/.out} } \
      { !eq {$received_protocol} {filtered} } \
                       } \
               }
  file = /home/${lookup{$sender_address_domain}lsearch*{/etc/virtual/domainowners}{$value}}/.out
  unseen


copy_in_virtual_domain:
  driver = redirect
  condition = ${if and { \
      { exists{/home/${lookup{$domain}lsearch*{/etc/virtual/domainowners}{$value}}/.in} } \
      { !eq {$received_protocol} {filtered} } \
                       } \
               }
  file = /home/${lookup{$domain}lsearch*{/etc/virtual/domainowners}{$value}}/.in
  unseen








--
Marcin Krol