Доброго всем дня!
Хотелось бы иметь возможность с сервера отправлять е-майл.
Для этого стоит EXIM. При попытке выполнить "exim -bt user@myhost" адрес благополучно разрешается, но при попытке соединения с удаленным адресом идет ответ "cannot be resolved at this time: host lookup did not complete".
Система Fedora 7, EXIM из RPM, в The Bat! нашел, что для POP3 и SMTP нужны порты 25 и 110. Я их открыл. tcpdump'ом пакеты вижу.
Помогите пожалуйста. Где я ошибаюсь.
Заранее спасибо.
Вот конфиг:primary_hostname = XXXXX.XX
domainlist local_domains = XXXXX.XX
domainlist relay_to_domains = *
hostlist relay_from_hosts = 127.0.0.1:192.168.4.250:192.168.2.66
hostlist auth_relay_hosts = *
acl_smtp_mail = acl_check_mail
acl_smtp_rcpt = acl_check_rcpt
acl_smtp_data = acl_check_data
acl_smtp_mime = acl_check_mimeav_scanner = clamd:/var/run/clamd.exim/clamd.sock
tls_advertise_hosts = *
tls_certificate = /etc/pki/tls/certs/exim.pem
tls_privatekey = /etc/pki/tls/private/exim.pemdaemon_smtp_ports = 25 : 465 : 587
tls_on_connect_ports = 465never_users = root
host_lookup = *
auth_advertise_hosts =rfc1413_hosts = *
rfc1413_query_timeout = 5signore_bounce_errors_after = 2d
timeout_frozen_after = 7d
begin acl
acl_check_mail:
deny condition = ${if eq{$sender_helo_name}{} {1}}
message = Nice boys say HELO first
warn condition = ${if eq{$sender_host_name}{} {1}}
set acl_m_greylistreasons = Host $sender_host_address lacks reverse DNS\n$acl_m_greylistreasons
acceptacl_check_rcpt:
accept hosts = :
deny message = Restricted characters in address
domains = +local_domains
local_parts = ^[.] : ^.*[@%!/|]
deny message = Restricted characters in address
domains = !+local_domains
local_parts = ^[./|] : ^.*[@%!] : ^.*/\\.\\./
accept local_parts = postmaster
domains = +local_domainsaccept hosts = +relay_from_hosts
control = submissionaccept authenticated = *
control = submission
require message = relay not permitted
domains = +local_domains : +relay_to_domainsrequire verify = recipient
$dnslist_domain\n$dnslist_text
$dnslist_domain
$dnslist_domain\n$acl_m_greylistreasonsaccept
acl_check_data:accept
acl_check_mime:
# File extension filtering.
deny message = Blacklisted file extension detected
condition = ${if match \
{${lc:$mime_filename}} \
{\N(\.exe|\.pif|\.bat|\.scr|\.lnk|\.com)$\N} \
{1}{0}}accept
begin routers
dnslookup:
driver = dnslookup
domains = ! +local_domains
transport = remote_smtp
ignore_target_hosts = 0.0.0.0 : 127.0.0.0/8
no_moresystem_aliases:
driver = redirect
allow_fail
allow_defer
data = ${lookup{$local_part}lsearch{/etc/aliases}}
user = mail
file_transport = address_file
pipe_transport = address_pipeuserforward:
driver = redirect
check_local_user
# local_part_suffix = +* : -*
# local_part_suffix_optional
file = $home/.forward
allow_filter
no_verify
no_expn
check_ancestor
file_transport = address_file
pipe_transport = address_pipe
reply_transport = address_replyprocmail:
driver = accept
check_local_user
require_files = ${local_part}:+${home}/.procmailrc:/usr/bin/procmail
transport = procmail
no_verify
localuser:
driver = accept
check_local_user
# local_part_suffix = +* : -*
# local_part_suffix_optional
transport = local_delivery
cannot_route_message = Unknown user
begin transportsremote_smtp:
driver = smtp
procmail:
driver = pipe
command = "/usr/bin/procmail -d $local_part"
return_path_add
delivery_date_add
envelope_to_add
user = $local_part
initgroups
return_output
local_delivery:
driver = appendfile
file = /var/mail/$local_part
delivery_date_add
envelope_to_add
return_path_add
group = mail
mode = 0660address_pipe:
driver = pipe
return_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,6hbegin rewrite
но при попытке соединения с удаленным адресом идет ответ "cannot
>be resolved at this time: host lookup did not complete".такое сообщение на все домены, или какие-то конкретные?
добавьте в роутер dnslookup:
cannot_route_message = Я exim $version_number не могу отрезолвить домен $domain. Проверьте настройки ДНС на моём хосте.покажите:
exim -bt abuse@exim.org
и
host -t mx exim.org
abuse@exim.org cannot be resolved at this time: host lookup did not complete
и такое сообщение на все домены;; connection timed out; no servers could be reached
>abuse@exim.org cannot be resolved at this time: host lookup did not complete
>
>и такое сообщение на все домены
>
>;; connection timed out; no servers could be reachedкрутите свой днс и смотрите настройки в /etc/resolv.conf