Skip to content

Commit

Permalink
update single exim single config file
Browse files Browse the repository at this point in the history
  • Loading branch information
Udera committed Jun 18, 2015
1 parent 6b4a42a commit b5ac838
Showing 1 changed file with 52 additions and 12 deletions.
64 changes: 52 additions & 12 deletions docs/configure
Expand Up @@ -493,19 +493,42 @@ ditch_malware:
and users.on_avscan = '1' \
and users.domain_id=domains.domain_id}}}{1} }} {yes}{no} }

# spam drop router
ditch_spam_drop:
driver = redirect
allow_fail
data = :blackhole:
condition = ${if >{$spam_score_int}{${lookup mysql{select users.sa_refuse * 10 from users,domains \
where localpart = '${quote_mysql:$local_part}' \
and domain = '${quote_mysql:$domain}' \
and users.on_spamassassin = '1' \
and users.spam_drop = '1' \
and users.domain_id=domains.domain_id \
and users.sa_refuse > 0 }{$value}fail}} {yes}{no}}
retry_use_local_part

ditch_spam:
driver = redirect
allow_fail
data = :blackhole:
condition = ${if >{$spam_score_int}{${lookup mysql{select users.sa_refuse * 10 from users,domains \
where localpart = '${quote_mysql:$local_part}' \
and domain = '${quote_mysql:$domain}' \
and users.on_spamassassin = '1' \
and users.domain_id=domains.domain_id \
and users.sa_refuse > 0 }{$value}fail}} {yes}{no}}
local_part_suffix = -*
local_part_suffix_optional
retry_use_local_part
driver = redirect
allow_fail
file_transport = virtual_ditch_spam_transport
data = ${lookup mysql{select concat(smtp,'/.Spam') \
from users,domains \
where localpart = '${quote_mysql:$local_part}' \
and domain = '${quote_mysql:$domain}' \
and domains.enabled = '1' \
and users.enabled = '1' \
and users.domain_id = domains.domain_id}}
condition = ${if >{$spam_score_int}{${lookup mysql{select \
users.sa_refuse * 10 from users,domains \
where localpart = '${quote_mysql:$local_part}' \
and domain = '${quote_mysql:$domain}' \
and users.on_spamassassin = '1' \
and users.spam_drop = '0' \
and users.on_forward = '0' \
and users.type = 'local' \
and users.domain_id=domains.domain_id \
and users.sa_refuse > 0 }{$value}fail}} {yes}{no}}
retry_use_local_part

ditch_hdrmailer:
driver = redirect
Expand Down Expand Up @@ -853,6 +876,23 @@ virtual_vacation_delivery:
and localpart='${quote_mysql:$local_part}' \
and users.domain_id=domains.domain_id}}

virtual_ditch_spam_transport:
driver = appendfile
envelope_to_add
return_path_add
mode = 0600
maildir_format = true
create_directory = true
user = ${lookup mysql{select users.uid from users,domains \
where localpart = '${quote_mysql:$local_part}' \
and domain = '${quote_mysql:$domain}' \
and users.domain_id = domains.domain_id}}
group = ${lookup mysql{select users.gid from users,domains \
where localpart = '${quote_mysql:$local_part}' \
and domain = '${quote_mysql:$domain}' \
and users.domain_id = domains.domain_id}}
maildir_use_size_file = false

mailman_transport:
driver = pipe
command = MAILMAN_WRAP \
Expand Down

0 comments on commit b5ac838

Please sign in to comment.