accidentally responded to Jason instead of the list.. trying again. :-)
On Mon, Dec 9, 2013 at 4:17 AM, Jasen Betts <jasen@???> wrote:
> On 2013-12-08, Tony Primerano <tony.primerano@???> wrote:
> > Is it possible for Exim to distinguish between mail from the internet and
> > that from a mail client/MUA?
> >
> > I want mail from the internet to be delivered locally and if it is from
> an
> > authenticated user then honor my MX record and send it to the internet.
>
> that's a fairly common requirement.
>
> > - I'm switching to gmail and I have my MX record pointing to google's
> > mailservers.
> > - google is configured to send everything to my Exim instance.
> > - Exim is configured to save the messages locally
> >
> > So now when someone sends mail to my users, it goes to google then to my
> > Exim instance. My users can view it in both places.
> >
> > The problem is if my users send mail to the Exim server directly it is
> not
> > delivered to google.
>
> > Is there a way to make this happen?
>
> Yes. put the router that's responsible for delivery to google before
> the ones that deliver locally.
> AND
> put a condition on the google router so that it only runs for mail
> directly received from your users. (not mail from from them via google)
>
What would that router condition look like? Sorry, I'm new to exim.
Can you point me to the document that talks about adding conditionals and
what variable should I be checking?
pseudo code...
google router
if local mail from local user
transport = remote_smtp
else
transport = local_delivery
end
>
>
>
> --
> For a good time: install ntp
>
> --
> ## 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/
>