Высылаю весь конфигprimary_hostname = otec.odessa.ua
hide mysql_servers = localhost/exim/exim/exim
domainlist local_domains = ${lookup mysql{SELECT `domain` \
FROM `domain` WHERE \
`domain`='${domain}' AND \
`active`='1'}}
domainlist relay_to_domains = ${lookup mysql{SELECT `domain` \
FROM `domain` WHERE \
`domain`='${domain}' AND \
`active`='1'}}
hostlist relay_from_hosts = localhost : 127.0.0.1/8 : 192.168.0.0/24 : 192.168.1.1
acl_smtp_rcpt = acl_check_rcpt
acl_smtp_data = acl_check_data
av_scanner = clamd:/var/run/clamav/clamd
qualify_domain = otec.odessa.ua
qualify_recipient = otec.odessa.ua
allow_domain_literals = false
exim_user = mailnull
exim_group = mail
never_users = root
#rfc1413_hosts = *
rfc1413_query_timeout = 0s
ignore_bounce_errors_after = 15m
timeout_frozen_after = 7d
freeze_tell = admin@otec.odessa.ua
helo_accept_junk_hosts = localhost : 127.0.0.1/8 : 192.168.0.0/24 : 192.168.1.1
auto_thaw = 1h
smtp_banner = "$primary_hostname, ESMTP EXIM $version_number"
smtp_accept_max = 50
smtp_accept_max_per_connection = 25
smtp_connect_backlog = 30
smtp_accept_max_per_host = 20
split_spool_directory = true
remote_max_parallel = 15
return_size_limit = 70k
message_size_limit = 24M
helo_allow_chars = _
smtp_enforce_sync = true
log_selector = +all
syslog_timestamp = no
system_filter = /usr/local/etc/exim/copy_mail.conf
begin acl
acl_check_rcpt:
accept hosts = :
deny message = "оЕДПРХУФЙНЩЕ УЙНЧПМЩ Ч БДТЕУЕ"
domains = +local_domains
local_parts = ^[.] : ^.*[@%!/|]
deny message = "оЕДПРХУФЙНЩЕ УЙНЧПМЩ Ч БДТЕУЕ"
domains = !+local_domains
local_parts = ^[./|] : ^.*[@%!] : ^.*/\\.\\./
# require verify = sender
deny message = "HELO/EHLO ПВСЪБОП ВЩФШ РП SMTP RFC"
condition = ${if eq{$sender_helo_name}{}{yes}{no}}
accept authenticated = *
control = submission
deny message = "оЕ ОБДП РЙИБФШ УЧПК IP Ч ЛБЮЕУФЧЕ HELO!"
hosts = *:!+relay_from_hosts
condition = ${if eq{$sender_helo_name}\
{$sender_host_address}{true}{false}}
deny condition = ${if eq{$sender_helo_name}\
{$interface_address}{yes}{no}}
hosts = !127.0.0.1 : !localhost : *
message = "ьФП НПК IP-БДТЕУ! рЫЈМ РТПЮШ!"
deny condition = ${if match{$sender_helo_name}\
{\N^\d+$\N}{yes}{no}}
hosts = !127.0.0.1:!localhost:*
message = "ч HELO ОЕ НПЗХФ ВЩФШ ФПЛБ ГЙЖТЩ!"
deny message = "оЕ ОТБЧЙФУС НОЕ чБЫ ИПУФ..."
condition = ${if match{$sender_host_name} \
{adsl|dialup|pool|peer|dhcp} \
{yes}{no}}
deny message = "host in blacklist - $dnslist_domain \n $dnslist_text"
log_message = found in $dnslist_domain
dnslists = opm.blitzed.org : \
proxies.blackholes.easynet.nl : \
cbl.abuseat.org : \
bl.spamcop.net : \
bl.csma.biz : \
dynablock.njabl.org
accept domains = +local_domains
endpass
message = "ч ЬФПН ДПНЕОЕ ОЕФ ФБЛПЗП РПМШЪПЧБФЕМС"
verify = recipient
accept domains = +relay_to_domains
endpass
message = "нПС УЕТЧЕТБ ОЕ ЪОБФШ НБТЫТХФ ОБ ЬФПФ ИПУФ..."
verify = recipient
accept hosts = +relay_from_hosts
deny message = "уЧПВПДЕО. ьФП ФЕВЕ ОЕ пРЕОтЕМЕК."
acl_check_data:
deny malware = *
message = "In e-mail found VIRUS - $malware_name"
# еУМЙ ЕУФШ ОЕПВИПДЙНПУФШ - ФХФ РТПЧЕТЛЙ ОБ УРБН
# рТПРХУЛБЕН ПУФБМШОПЕ
accept
begin routers
dnslookup:
driver = dnslookup
domains = ! +local_domains
transport = remote_smtp
ignore_target_hosts = localhost : 0.0.0.0 : 127.0.0/8 : 192.168.0.0/24 : 192.168.1.0/24
no_more
mysqluser:
driver = accept
condition = ${if eq{}{${lookup mysql{SELECT `maildir` FROM `mailbox` \
WHERE `username`='${quote_mysql:$local_part@$domain}'}}}{no}{yes}}
transport = mysql_delivery
system_aliases:
driver = redirect
allow_fail
allow_defer
data = ${lookup mysql{SELECT `goto` FROM `alias` \
WHERE `address`='${quote_mysql:$local_part@$domain}' OR \
`address`='${quote_mysql:@$domain}'}}
begin transports
remote_smtp:
driver = smtp
mysql_delivery:
driver = appendfile
check_string = ""
create_directory
delivery_date_add
directory = ${lookup mysql{SELECT CONCAT('/var/mail/exim/', `maildir`) \
FROM `mailbox` WHERE `username`='${local_part}@${domain}'}}
directory_mode = 770
envelope_to_add
group = mail
maildir_format
maildir_tag = ,S=$message_size
message_prefix = ""
message_suffix = ""
mode = 0600
address_file:
driver = appendfile
delivery_date_add
envelope_to_add
return_path_add
address_pipe:
driver = pipe
return_output
address_reply:
driver = autoreply
# оБЮЙОБАФУС РПЧФПТЩ ОЕДПУФБЧМЕООЩИ РЙУЕН.
begin retry
* * F,2h,15m; G,16h,1h,1.5; F,4d,6h
begin rewrite
begin authenticators
auth_plain:
driver = plaintext
public_name = PLAIN
server_condition = ${lookup mysql{SELECT `username` FROM \
`mailbox` WHERE `username` = \
'${quote_mysql:$1}' AND `password` = \
'${quote_mysql:$2}'}{yes}{no}}
server_prompts = :
server_set_id = $2
auth_login:
driver = plaintext
public_name = LOGIN
server_condition = ${lookup mysql{SELECT `username` FROM \
`mailbox` WHERE `username` = \
'${quote_mysql:$1}' AND `password` = \
'${quote_mysql:$2}'}{yes}{no}}
server_prompts = Username:: : Password::
server_set_id = $1
auth_cram_md5:
driver = cram_md5
public_name = CRAM-MD5
server_secret = ${lookup mysql{SELECT `password` FROM \
`mailbox` WHERE `username` \
= '${quote_mysql:$1}'}{$value}fail}
server_set_id = $1