LINUX.ORG.RU
решено ФорумAdmin

Не получается авторизоваться через Thunderbird в Exim4

 


0

1

Здравствуйте, никак не могу понять , что необходимо прописать в exim.conf, чтобы получилось авторизоваться через Thunderbird из дома и отправить письмо.
При этом, если захожу на сервер через консоль и пробую
telnet localhost 25 - Ehlo localhost - AUTH PLAIN логин+пароль - авторизуюсь
exim -bh домашний ip -то же самое - авторизуюсь успешно.

Exim.conf - поставил где можно accept и логин и пароль прописал в нем же для теста.

domainlist local_domains = @
domainlist relay_to_domains =
hostlist relay_from_hosts = 127.0.0.1/8
acl_smtp_rcpt = acl_check_rcpt
acl_smtp_data = acl_check_data
qualify_domain = leadershark.com
allow_domain_literals = false
exim_user = Debian-exim
exim_group = Debian-exim
never_users = root
rfc1413_query_timeout = 0s
sender_unqualified_hosts = +relay_from_hosts
recipient_unqualified_hosts = +relay_from_hosts
ignore_bounce_errors_after = 45m
timeout_frozen_after = 15d
helo_accept_junk_hosts = 127.0.0.1
auto_thaw = 1h
smtp_banner = «$primary_hostname, ESMTP EXIM $version_number»
smtp_accept_max = 75
smtp_accept_max_per_connection = 35
smtp_connect_backlog = 30
smtp_accept_max_per_host = 75
split_spool_directory = true
remote_max_parallel = 15
return_size_limit = 7k
helo_allow_chars = _
smtp_enforce_sync = false
message_size_limit = 15M
helo_allow_chars = _
log_selector = \
+all_parents \
+connection_reject \
+incoming_interface \
+lost_incoming_connection \
+received_sender \
+received_recipients \
+smtp_confirmation \
+smtp_syntax_error \
+smtp_protocol_error \
-queue_run
syslog_timestamp = no


begin acl

acl_check_rcpt:

hosts = *
control = allow_auth_unadvertised

hostlist host_auth_accept_relay = *

accept hosts = :

accept message = «incorrect symbol in address»
domains = +local_domains
local_parts = ^[.] : ^.*[@%!/|]

accept message = «incorrect symbol in address»
domains = !+local_domains
local_parts = ^[./|] : ^.*[@%!] : ^.*/\\.\\./

accept message = «HELO/EHLO require by SMTP RFC»
condition = ${if eq{$sender_helo_name}{}{yes}{no}}

accept authenticated = *

accept message = «Your IP in HELO - access denied!»
hosts = * : !+relay_from_hosts : !81-196.lissyara.su
condition = ${if eq{$sender_helo_name}\
{$sender_host_address}{true}{false}}

accept condition = ${if eq{$sender_helo_name}\
{$interface_address}{yes}{no}}
hosts = !127.0.0.1 : !localhost : *
message = «main IP in your HELO! Access denied!»

accept condition = ${if match{$sender_helo_name}\
{\N^\d+$\N}{yes}{no}}
hosts = !127.0.0.1 : !localhost : *
message = «can not be only number in HELO!»

accept message = «your hostname is bad (adsl, poll, ppp & etc).»
condition = ${if match{$sender_host_name} \
{adsl|dialup|pool|peer|dhcp} \
{yes}{no}}
warn

set acl_m0 = 0s


accept domains = +relay_to_domains
endpass
message = «main server not know how relay to this address»
verify = recipient

deny message = you in blacklist: $dnslist_domain --> $dnslist_text
dnslists = opm.blitzed.org : \
cbl.abuseat.org : \
bl.csma.biz : \
dynablock.njabl.org

accept hosts = +relay_from_hosts

deny message = «relay not permitted»

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_more

system_aliases:
driver = redirect
allow_fail
allow_defer
data = ${lookup{$local_part}lsearch{/etc/aliases}}
user = Debian-exim
group = Debian-exim
file_transport = address_file
pipe_transport = address_pipe

userforward:
driver = redirect
check_local_user
file = $home/.forward
no_verify
no_expn
check_ancestor
file_transport = address_file
pipe_transport = address_pipe
reply_transport = address_reply
condition = ${if exists{$home/.forward} {yes} {no} }

localuser:
driver = accept
check_local_user
transport = local_delivery
cannot_route_message = Unknown user

begin transports

remote_smtp:
driver = smtp

local_delivery:
driver = appendfile
check_string = «»
create_directory
delivery_date_add
directory = /home/businessinfo/Maildir
directory_mode = 770
envelope_to_add
group = mail
maildir_format
maildir_tag = ,S=$message_size
message_prefix = «»
message_suffix = «»
mode = 0660

address_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,6h


AUTH_SERVER_ALLOW_NOTLS_PASSWORDS = true

fixed_plain:
driver = plaintext
public_name = PLAIN
server_prompts = :
server_condition = \
${if and {{eq{$auth2}{businessinfo}}{eq{$auth3}{post123}}}}
server_set_id = $auth2


fixed_login:
driver = plaintext
public_name = LOGIN
client_send = : username : mysecret
server_prompts = username : Password
server_condition = \
${if and {{eq{$auth1}{businessinfo}}{eq{$auth2}{post123}}}}
server_set_id = $auth1



Последнее исправление: cetjs2 (всего исправлений: 1)

У меня вот такое работает отлично:

plain_pam:
        driver                  = plaintext
        public_name             = PLAIN
        server_prompts          = :
        server_condition        = ${if pam{$auth2:${sg{$auth3}{:}{::}}}}
        server_set_id           = $auth2

login_pam:
        driver                  = plaintext
        public_name             = LOGIN
        server_prompts          = Username:: : Password::
        server_condition        = ${if pam{$auth1:${sg{$auth2}{:}{::}}}}
        server_set_id           = $auth1
iron ★★★★★
()
Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.