| | |
| | | domains = +local_domains |
| | | |
| | | require verify = sender |
| | | |
| | | # Whitelist |
| | | |
| | | |
| | | # Blacklist management |
| | | # Blacklist |
| | | deny senders = ${lookup mysql {SELECT DISTINCT address FROM MYSQL_BLACKTABLE WHERE '${quote_mysql:$sender_address}' LIKE address \ |
| | | AND (recipient = '' OR recipient = '${quote_mysql:$domain}' OR recipient = '${quote_mysql:$local_part}@${quote_mysql:$domain}') \ |
| | | AND active = '1' AND server_id = 'MAILSERVER_ID'}{$value}} |
| | |
| | | |
| | | acl_check_helo: |
| | | accept hosts = +relay_from_hosts |
| | | # If the HELO pretend to be this host |
| | | deny condition = ${if or { \ |
| | | {eq {${lc:$sender_helo_name}}{MAILSERVER_HOSTNAME}} \ |
| | | {eq {${lc:$sender_helo_name}}{MAILSERVER_IP}} \ |
| | | } {true}{false} } |
| | | # If the HELO pretend to be this host |
| | | deny condition = ${if or { \ |
| | | {eq {${lc:$sender_helo_name}}{MAILSERVER_HOSTNAME}} \ |
| | | {eq {${lc:$sender_helo_name}}{MAILSERVER_IP}} \ |
| | | } {true}{false} } |
| | | # by default we accept |
| | | accept |
| | | |
| | |
| | | |
| | | warn message = X-SA-Report: $spam_report |
| | | spam = nobody:true |
| | | |
| | | condition = ${if >{$spam_score_int}{0}{true}{false}} |
| | | warn message = X-SA-Status: Yes |
| | | |
| | | warn message = X-SA-Status: Yes |
| | | spam = nobody:true |
| | | condition = ${if >{$spam_score_int}{50}{true}{false}} |
| | | |
| | |
| | | # allow_fail |
| | | # allow_defer |
| | | # data = ${lookup{$local_part}lsearch{/etc/aliases}} |
| | | # user = exim |
| | | # user = exim |
| | | # file_transport = address_file |
| | | # pipe_transport = address_pipe |
| | | |
| | |
| | | transport = autoresponder_transport |
| | | unseen |
| | | |
| | | cc_router: |
| | | driver = redirect |
| | | data = ${lookup mysql {SELECT cc FROM MYSQL_EMAILTABLE WHERE email=CONCAT('${quote_mysql:$local_part}','@','${quote_mysql:$domain}')}{$value}} |
| | | unseen |
| | | # cc_router: |
| | | # driver = redirect |
| | | # data = ${lookup mysql {SELECT cc FROM MYSQL_EMAILTABLE WHERE email=CONCAT('${quote_mysql:$local_part}','@','${quote_mysql:$domain}')}{$value}} |
| | | # unseen |
| | | |
| | | forward_router: |
| | | driver = redirect |
| | | data = ${lookup mysql {SELECT forward FROM MYSQL_EMAILTABLE WHERE email=CONCAT('${quote_mysql:$local_part}','@','${quote_mysql:$domain}') AND forward != ''}{$value}} |
| | | # forward_router: |
| | | # driver = redirect |
| | | # data = ${lookup mysql {SELECT forward FROM MYSQL_EMAILTABLE WHERE email=CONCAT('${quote_mysql:$local_part}','@','${quote_mysql:$domain}') AND forward != ''}{$value}} |
| | | |
| | | local_mailbox_router: |
| | | driver = accept |