Philip Hazel wrote:
> On Thu, 16 Dec 2004, Tommy Butler wrote:
>
>
>>I tried the following:
>>domainlist relay_to_domains = *
>>#domainlist relay_to_domains = *
>>domainlist relay_to_domains =
>>domainlist relay_to_domains = localhost
>>domainlist relay_to_domains = cityairlines.net
>>
>>none of which worked.
>
> I think[*] the fundamental problem here is that you are unclear about
> INCOMING relaying and OUTGOING relaying.
You are correct.
> The relay_to_domains setting is
> for controlling INCOMING relaying; it names the domains for which you
> are prepared to relay mail, from any host on the Internet. Hence setting
> it to "*" is a bad idea, as it makes you an open relay.
>
> If you want to send mail from, say, your desktop, via the Exim server,
> to the world, that is OUTGOING relaying. In the default configuration it
> is controlled by the relay_from_hosts setting, which defaults to
>
> domainlist relay_from_hosts = 127.0.0.1
>
> That is, by default, the server will relay only from itself. If you want
> the server to allow outgoing relaying from your local LAN, set something
> like
>
> domainlist relay_from_hosts = 127.0.0.1 : 192.168.3.0/24
> ^^^^^^^^^^^^^^
> Your LAN network here.
What if the employees need to be able to send email out from home? Or hotels
when traveling? How do I alow that? I can't restrict it to just the company
LAN. What should I put here for domainlist relay_from_hosts ??
> The comments in the default configuration that comes with Exim do, I
> hope, explain this fairly clearly.
Nope. Here are the comments:
# The next three settings create two lists of domains and one list of hosts.
# These lists are referred to later in this configuration using the syntax
# +local_domains, +relay_to_domains, and +relay_from_hosts, respectively. They
# are all colon-separated lists:
# '@' refers to 'the name of the local host'
### EXPANSION-begins ######################
domainlist local_domains = DEBCONFlocal_domainsDEBCONF
domainlist relay_to_domains = DEBCONF[something I can't remember; I removed it
because it kept expanding to "*"]DEBCONF
hostlist relay_from_hosts = 127.0.0.1 : ::::1
> [*] Apologies if I'm off the subject here; I haven't really been
> following this thread.
You're right on the money.
--
Tommy Butler
tommy@???