summaryrefslogtreecommitdiffstats
path: root/nomic-system/nomic-exim.conf
blob: 1589b53575913808c6150928af3a179ae22e03c8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
# Retiolum-only Exim configuration

# primary_hostname =

domainlist local_domains    = @
domainlist relay_to_domains = *.retiolum
hostlist   relay_from_hosts = <; 127.0.0.1 ; ::1 ; *.retiolum

never_users = root

log_selector = -queue_run
log_file_path = syslog
syslog_timestamp = false
syslog_duplication = false

acl_smtp_rcpt = acl_check_rcpt

host_lookup = *


begin acl

  acl_check_rcpt:

    accept
      domains = +local_domains
      verify = sender
      verify = recipient

    accept
      domains = +relay_to_domains
      hosts = +relay_from_hosts
      verify = sender
      verify = recipient/callout


begin routers

  remote_retiolum:
    driver = manualroute
    domains = ! +local_domains : *.retiolum
    transport = retiolum_smtp
    route_list = ^.* $0 byname
    no_more

  remote_internet:
    driver = redirect
    domains = ! +local_domains
    allow_fail
    data = :fail: relay not permitted
    cannot_route_message = relay not permitted
    no_more

  local_maildir:
    driver = accept
    check_local_user
    transport = home_maildir
    cannot_route_message = unknown local user


begin transports

  retiolum_smtp:
    driver = smtp
    retry_include_ip_address = false

  home_maildir:
    driver = appendfile
    maildir_format
    maildir_use_size_file
    directory = $home/Mail
    directory_mode = 0700
    delivery_date_add
    envelope_to_add
    return_path_add


begin retry

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


begin authenticators