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, "[EMAIL PROTECTED]") is located
within the same domain that is forwarded (say, "da7.promo.pl"), it obviously
starts a loop.
Now Exim detects that:
[EMAIL PROTECTED] 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
--
## List details at http://lists.exim.org/mailman/listinfo/exim-users
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/