Skip to content

Commit 660c771

Browse files
committed
fxied bug with unrouteable aliases
1 parent 2ce5290 commit 660c771

File tree

1 file changed

+16
-2
lines changed

1 file changed

+16
-2
lines changed

install/0.9.7/rhel/exim.conf

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ tls_advertise_hosts = *
2727
tls_certificate = /etc/pki/tls/certs/exim.pem
2828
tls_privatekey = /etc/pki/tls/private/exim.pem
2929

30-
daemon_smtp_ports = 25 : 465 : 587
30+
daemon_smtp_ports = 25 : 465 : 587 : 2525
3131
tls_on_connect_ports = 465
3232
never_users = root
3333
host_lookup = *
@@ -40,6 +40,7 @@ DKIM_DOMAIN = ${lc:${domain:$h_from:}}
4040
DKIM_FILE = /etc/exim/domains/${lc:${domain:$h_from:}}/dkim.pem
4141
DKIM_PRIVATE_KEY = ${if exists{DKIM_FILE}{DKIM_FILE}{0}}
4242

43+
4344
##########################################################################
4445
begin acl
4546
##########################################################################
@@ -162,12 +163,13 @@ begin routers
162163
##########################################################################
163164
dnslookup:
164165
driver = dnslookup
165-
domains = ! +local_domains
166+
domains = !+local_domains
166167
transport = remote_smtp
167168
# ignore_target_hosts = 0.0.0.0 : 127.0.0.0/8
168169
no_more
169170

170171
#system_aliases:
172+
# domains = +local_domains
171173
# driver = redirect
172174
# allow_fail
173175
# allow_defer
@@ -211,6 +213,7 @@ aliases:
211213
pipe_transport = address_pipe
212214
unseen
213215

216+
214217
localuser_spam:
215218
driver = accept
216219
transport = local_spam_delivery
@@ -229,18 +232,25 @@ catchall:
229232
file_transport = local_delivery
230233
redirect_router = dnslookup
231234

235+
terminate_alias:
236+
driver = accept
237+
transport = devnull
238+
condition = ${lookup{$local_part@$domain}lsearch{/etc/exim/domains/$domain/aliases}{true}{false}}
239+
232240

233241
##########################################################################
234242
begin transports
235243
##########################################################################
236244
remote_smtp:
237245
driver = smtp
246+
helo_data = $sender_address_domain
238247
dkim_domain = DKIM_DOMAIN
239248
dkim_selector = mail
240249
dkim_private_key = DKIM_PRIVATE_KEY
241250
dkim_canon = relaxed
242251
dkim_strict = 0
243252

253+
244254
procmail:
245255
driver = pipe
246256
command = "/usr/bin/procmail -d $local_part"
@@ -306,6 +316,10 @@ userautoreply:
306316
subject = "${if def:h_Subject: {Autoreply: ${quote:${escape:$h_Subject:}}} {Autoreply Message}}"
307317
to = "${sender_address}"
308318

319+
devnull:
320+
driver = appendfile
321+
file = /dev/null
322+
309323
##########################################################################
310324
begin retry
311325
* * F,2h,15m; G,16h,1h,1.5; F,4d,6h

0 commit comments

Comments
 (0)