Автор: Jazzy
Дата сообщения: 15.01.2003 14:54
надо в exim.conf:
domainlist relay_to_domains =
hostlist relay_from_hosts = 127.0.0.1 : 192.168.0.0/16
В данном случае разрешено отправлять письма с самого сервера и сети 192.168.0.0/16.
вот мой конфиг:
Код:
# Макросы
MY_DOMAIN = xxx.ru
LOCAL_DOMAINS = localhost
# Сам конфиг
primary_hostname = yyy.xxx.ru
domainlist local_domains = @ : LOCAL_DOMAINS : MY_DOMAIN
domainlist relay_to_domains =
hostlist relay_from_hosts = 127.0.0.1 : 192.168.0.0/16
# Фильтр для DrWeb
trusted_users = drweb
trusted_groups = drweb
system_filter = /usr/local/drweb/system.filter
system_filter_pipe_transport = filter_pipe
system_filter_reply_transport = address_reply
#-------------
acl_smtp_rcpt = acl_check_rcpt
rfc1413_hosts = *
rfc1413_query_timeout = 30s
ignore_bounce_errors_after = 2d
timeout_frozen_after = 7d
# ACL для входящей почты
begin acl
acl_check_rcpt:
accept hosts = :
deny local_parts = ^.*[@%!/|] : ^\.
accept local_parts = postmaster
domains = +local_domains
require verify = sender
accept domains = +local_domains
endpass
message = unknown user
verify = recipient
accept domains = +relay_to_domains
endpass
message = unrouteable address
verify = recipient
accept hosts = +relay_from_hosts
accept authenticated = *
deny message = relay not permitted
begin routers
dnslookup:
driver = dnslookup
domains = ! +local_domains
transport = remote_smtp
ignore_target_hosts = 0.0.0.0 : 127.0.0.0/8
no_more
system_aliases:
driver = redirect
allow_fail
allow_defer
data = ${lookup{$local_part}lsearch{/etc/aliases}}
retry_use_local_part
localuser:
driver = accept
domains = ${lookup mysql {MY_USER}{$value}}
retry_use_local_part
transport = local_delivery
begin transports
remote_smtp:
driver = smtp
local_delivery:
driver = appendfile
file = /var/spool/exim/${domain}/${local_part}
delivery_date_add
envelope_to_add
return_path_add
group = mail
mode = 0660
user = exim
filter_pipe:
driver = pipe
user = drweb
group = drweb
return_fail_output
address_file:
driver = appendfile
delivery_date_add
envelope_to_add
return_path_add
address_reply:
driver = autoreply
begin retry
* * F,2h,15m; G,16h,1h,1.5; F,4d,6h
begin rewrite
begin authenticators