On 2014-11-11 at 10:40 +1000, Ted Cooper wrote: > I have a desire to inject emails which have been received via getmail > into my Exim server so that they skip everything but a specific router. > The router hands off processing to an "Exim filter" file which sets up > final deliveries to the correct Maildirs.
Put that router first, add a condition on the router based on `$received_protocol`, add `no_more` so that any mails of that protocol won't be passed to later routers. Specify a protocol manually, which leads to: > The only hint I have so far is that I could structure the injected > emails like BSMTP and call "exim -bS -oMr userfwd", but then I would > need a program to convert a raw email into bsmtp. You don't need to specify -bs/-bh/-bS Running: exim -oMr foo $recipient should work; so should: exim -oMr foo -f $sender $recipient So while BSMTP offers the most specificity around precisely controlling recipients, you can do the above too. Just do *not* use `-t` which would parse the message for recipients and result in re-broadcasting to CC'd addresses. You might also consider looking at $received_protocol during ACL processing, for control options to avoid any fixups which you might otherwise be activating for local messages. -Phil -- ## List details at https://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/
