Re: [exim] suggestion - exim-new-users

Startseite
Nachricht löschen
Nachricht beantworten
Autor: Jason Meers
Datum:  
To: Exim Users List
Betreff: Re: [exim] suggestion - exim-new-users
Having read through your posts, I think I should clarify what I meant,
and personally would have liked to have seen or would have found useful
when I first started using Exim.

1) A usable config, no matter how simple. The sample config is very
thorough but now 20 pages long. I usually have to delete 18 or so pages
just to make it readable. An example is shown below, this is only
intended a starting point. I could live with a "clunky" config as long
as I know I'm not running an open relay.

2) From this starting point I would expect questions like:

how can I specify 2 local domains instead of just 1
how do I list hosts in a separate file
what is relay_from_hosts needed for
what does the "!" mean in "! +local_domains"

3) I also would expect someone to be willing to help me understand why
the subnet is written as /8 instead of /255.0.0.0 or what an MX record
actually does. It isn't strictly about exim but thats no reason to tell
someone to go away and RTFM or print out the full spec.

If I don't understand that its a router I need to perform a certain
function, how would I know which part of the spec to read?

4) As I learn, I would like to be shown how to change a working config
to modify it's behavior and progress in small step eg:

  domainlist    local_domains    =    example.com : example2.com


could use a text file instead:

domainlist local_domains = /etc/exim/local-domains.txt



Below is the simple config I described as a clunky but usable starting
point (I never actually managed to get Exim3 working and gave up
completely, chosing to learn postfix instead).

Thanks

Jason


######################################################################
#                       EXIM CONFIGURATION                           #
######################################################################


   domainlist    local_domains    =    example.com


   hostlist    relay_from_hosts    = 127.0.0.1 : 10.0.0.0/8


acl_smtp_rcpt   =       acl_check_rcpt


######################################################################
#                       ACL CONFIGURATION                            #
######################################################################
begin acl


acl_check_rcpt:

   accept  domains       = +local_domains
           endpass
           verify        = recipient


   accept  hosts         = +relay_from_hosts


   deny    message       = relay not permitted


######################################################################
#                      ROUTERS CONFIGURATION                         #
######################################################################
begin routers


dnslookup:
driver = dnslookup
domains = ! +local_domains
transport = remote_smtp
ignore_target_hosts = 0.0.0.0 : 127.0.0.0/8
no_more

localuser:
driver = accept
check_local_user
transport = local_delivery
cannot_route_message = Unknown user

######################################################################
#                      TRANSPORTS CONFIGURATION                      #
######################################################################
begin transports


remote_smtp:
driver = smtp

local_delivery:
driver = appendfile
file = /var/mail/$local_part
delivery_date_add
envelope_to_add
return_path_add
group = mail
mode = 0660

######################################################################
#                      RETRY CONFIGURATION                           #
######################################################################
begin retry


# Address or Domain    Error       Retries
# -----------------    -----       -------


*                      *           F,2h,15m; G,16h,1h,1.5; F,4d,6h