[Exim] .forward with local copy will produce dupes.

Góra strony
Delete this message
Reply to this message
Autor: Andreas Metzler
Data:  
Dla: exim-users
Temat: [Exim] .forward with local copy will produce dupes.
Hello,
Summary:
forwarding a copy of all mail to a remote host produces dupes in the
local mailbox.

Running exim 4.22, almost the default configuration file, I only made
these imho unrelated changes:
* extend local_domains and relay_from_hosts
* set qualify_domain
* change local_delivery to deliver 0660 group mail
* deliver to smarthost instead of directly.
smarthost:
driver = manualroute
domains = ! +local_domains
transport = remote_smtp
route_list = * ${lookup{smarthost}lsearch{/etc/exim4/smarthost}}
host_find_failed = defer
same_domain_copy_routing = yes
ignore_target_hosts = 0.0.0.0 : 127.0.0.0/8
no_more

If I put "testit,blah@???" in ~testit/.forward while foo.org
cannot be delivered immidiately, I'll get dupes in /var/mail/testit.

While the mail is undelivered to foo.org any queue-runner processing
the mail will throw an additional copy into /var/mail/testit (the same
applies if doing the same thing with exim filter).

I know that this is documented (see one_time option) but as I am no
old hand with exim I did not realize how this limits the usability of
.forward, i.e. that it cannot be _reliably_ used to make copies of
messages unless both copies are always delivered in the same queue-run
(both local destinations or both remote destinations routed to the
same host).
               cu andreas
--
"See, I told you they'd listen to Reason," [SPOILER] Svfurlr fnlf,
fuhggvat qbja gur juveyvat tha.
Neal Stephenson in "Snow Crash"