Re: All your emails belong to us...
On Apr 20, 12:58*pm, Fredderic <my-name-h...@excite.com> wrote:
> Okay... *Here goes...
>
> I haven't touched configuring exim for a while, because last time I
> tried to set the thing up in the basic local mail plus outbound via my
> ISP, ALL my mail started being sent via my ISP. *I'm guessing I just
> mis-understood a term or an option...
>
> Ultimately, I want mail without a domain, or with mydomain or
> mydomain.localnet (in either the from OR to fields of a message), to
> remain local. *Mail originating from this system with a particular
> domain in its from address, should be delivered via the relevant mail
> server for that domain (eg. my.n...@my.isp.com should be sent to
> my.isp.com for delivery), or bounced if I don't have a mail relay
> reconfigured for that domain.
>
> I'd think this should be a fairly basic setup, but I can't for the life
> of me sort through all the similarly named options to figure out which
> ones I should and shouldn't use. *:(
>
> Fredderic
For each local address you want this as your router:
local_relay_dom1:
driver = manualroute
domains = +domain_list_one
transport = remote_smtp
route_list = * mailserver.domain.list.one
host_find_failed = defer
errors_to = "postmaster@domain.list.one"
no_verify
no_more
And at the bottom of your local relays if you wanted to send all the
mail yourself, you would want this router:
dnslookup:
driver = dnslookup
domains = ! +local_domains
transport = remote_smtp
ignore_target_hosts = 0.0.0.0 : 127.0.0.0/8
errors_to = "postmaster@domain.com"
no_more
Don't forget to define your domains !!
|