Что я мелю? Не работает imap авторизация!!!
Наверное лучше все по порядку:
Снес все что стояло раньше и поставил exim, dovecot и postfixadmin по статье Лиса (
http://www.lissyara.su/?id=1173).
Postfixadmin немного буксует, не хочет создавать ящики из .../postfixadmin/admin//create-mailbox.php
Зато создает из .../postfixadmin/create-mailbox.php , но с этим я сам разрулю наверное.
Конфиг exim вот.
Код: Выделить всё
primary_hostname = mx.fitsudzha.net
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.0/8:192.168.0.0/16
acl_smtp_rcpt = acl_check_rcpt
acl_smtp_data = acl_check_data
qualify_domain = fitsudzha.net
qualify_recipient = fitsudzha.net
allow_domain_literals = false
exim_user = mailnull
exim_group = mail
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 = 192.168.0.0/16
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 = 64M
helo_allow_chars = _
smtp_enforce_sync = false
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:
accept hosts = :
deny message = "incorrect symbol in address"
domains = +local_domains
local_parts = ^[.] : ^.*[@%!/|]
deny message = "incorrect symbol in address"
domains = !+local_domains
local_parts = ^[./|] : ^.*[@%!] : ^.*/\\.\\./
accept local_parts = postmaster
domains = +local_domains
deny message = "HELO/EHLO require by SMTP RFC"
condition = ${if eq{$sender_helo_name}{}{yes}{no}}
accept authenticated = *
deny message = "Your IP in HELO - access denied!"
hosts = * : !+relay_from_hosts : !81-196.fitsudzha.net
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 = "main IP in your HELO! Access denied!"
deny 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!"
deny 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 = 30s
warn
hosts = +relay_from_hosts:77.243.5.0/28
set acl_m0 = 0s
warn
logwrite = Delay $acl_m0 for $sender_host_name [$sender_host_address] with HELO=$sender_helo_name. Mail from $sender_address to $local_part@$domain.
delay = $acl_m0
accept domains = +local_domains
endpass
message = "In my mailserver not stored this user"
verify = recipient
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 \n $dnslist_text"
dnslists = opm.blitzed.org : cbl.abuseat.org : bl.csma.biz : dynablock.njabl.org
accept hosts = +relay_from_hosts
deny message = "Homo hominus lupus est"
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 = 0.0.0.0 : 127.0.0.0/8
no_more
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}'}}
dovecot_user:
driver = accept
condition = ${lookup mysql{SELECT `goto` FROM `alias` WHERE `address`='${quote_mysql:$local_part@$domain}' OR `address`='${quote_mysql:@$domain}'}{yes}{no}}
transport = dovecot_delivery
begin transports
remote_smtp:
driver = smtp
dovecot_delivery:
driver = pipe
command = /usr/local/libexec/dovecot/deliver -d $local_part@$domain
message_prefix =
message_suffix =
delivery_date_add
envelope_to_add
return_path_add
log_output
user = mailnull
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:$auth2}' AND `password` = '${quote_mysql:$auth3}'}{yes}{no}}
server_prompts = :
server_set_id = $auth2
auth_login:
driver = plaintext
public_name = LOGIN
server_condition = ${lookup mysql{SELECT `username` FROM `mailbox` WHERE `username` = '${quote_mysql:$auth1}' AND `password` = '${quote_mysql:$auth2}'}{yes}{no}}
server_prompts = Username:: : Password::
server_set_id = $auth1
auth_cram_md5:
driver = cram_md5
public_name = CRAM-MD5
server_secret = ${lookup mysql{SELECT `password` FROM `mailbox` WHERE `username` = '${quote_mysql:$auth1}'}{$value}fail}
server_set_id = $auth2
Конфиг dovecot:
Код: Выделить всё
base_dir = /var/run/dovecot/
protocols = imap pop3
listen = *
ssl_disable = yes
disable_plaintext_auth = no
shutdown_clients = yes
log_path = /var/log/dovecot
log_timestamp = "%b %d %H:%M:%S "
syslog_facility = mail
login_dir = /var/run/dovecot/login
login_chroot = yes
login_user = dovecot
login_process_size = 64
login_process_per_connection = yes
login_processes_count = 3
login_max_processes_count = 64
login_greeting = привет МЕДВЕД! ;) http://fitsudzha.net
login_log_format_elements = user=<%u> method=%m rip=%r lip=%l %c
login_log_format = %$: %s
verbose_proctitle = yes
first_valid_uid = 25
first_valid_gid = 0
mail_extra_groups = mail
default_mail_env = maildir:/var/mail/exim/%n@%d
umask = 0077
protocol imap {
imap_client_workarounds = delay-newmail outlook-idle \
}
protocol pop3 {
pop3_uidl_format = %08Xu%08Xv
pop3_client_workarounds = outlook-no-nuls oe-ns-eoh
}
protocol lda {
postmaster_address = ***@list.ru
auth_socket_path = /var/run/dovecot/auth-master
}
auth default {
mechanisms = plain
socket listen {
master {
path = /var/run/dovecot/auth-master
mode = 0600
user = mailnull
#group = mail
}
}
passdb sql {
args = /usr/local/etc/dovecot-sql.conf
}
userdb sql {
args = /usr/local/etc/dovecot-sql.conf
}
user = root
}
plugin {
}
Вот лог Dovecot:
Код: Выделить всё
dovecot: Mar 03 23:19:42 Info: imap-login: Login: user=<****@fitsudzha.net>, method=PLAIN, rip=82.211.152.13, lip=77.243.5.34
dovecot: Mar 03 23:19:42 Error: IMAP(****@fitsudzha.net): Unknown client workaround: \
dovecot: Mar 03 23:19:42 Error: child 15543 (imap) returned error 89
dovecot: Mar 03 23:19:48 Info: imap-login: Login: user=<****@fitsudzha.net>, method=PLAIN, rip=82.211.152.13, lip=77.243.5.34
dovecot: Mar 03 23:19:48 Error: IMAP(****@fitsudzha.net): Unknown client workaround: \
dovecot: Mar 03 23:19:48 Error: child 15545 (imap) returned error 89
dovecot: Mar 04 03:00:00 Error: Time just moved backwards by 2 seconds. I'll sleep now until we're back in present. http://wiki.dovecot.org/TimeMovedBackwards
dovecot: Mar 04 03:00:03 Error: imap-login: Time just moved backwards by 2 seconds. I'll sleep now until we're back in present. http://wiki.dovecot.org/TimeMovedBackwards
dovecot: Mar 04 03:00:03 Error: imap-login: Time just moved backwards by 2 seconds. I'll sleep now until we're back in present. http://wiki.dovecot.org/TimeMovedBackwards
Вот mainlog Exim-a:
Код: Выделить всё
2008-03-03 13:01:39 unexpected disconnection while reading SMTP command from (77.243.5.34) [118.168.138.44] I=[77.243.5.34]:25
2008-03-03 13:32:23 H=(77.243.5.34) [118.168.138.44] I=[77.243.5.34]:25 F=<rurdhd@hotmail.com> rejected RCPT <toxxx@mail2000.com.tw>: "main IP in your HELO! Access denied!"
2008-03-03 13:32:23 unexpected disconnection while reading SMTP command from (77.243.5.34) [118.168.138.44] I=[77.243.5.34]:25
2008-03-03 14:02:24 H=(77.243.5.34) [118.168.138.44] I=[77.243.5.34]:25 F=<rurdhd@hotmail.com> rejected RCPT <toxxx@mail2000.com.tw>: "main IP in your HELO! Access denied!"
2008-03-03 14:02:26 unexpected disconnection while reading SMTP command from (77.243.5.34) [118.168.138.44] I=[77.243.5.34]:25
2008-03-03 17:04:44 exim 4.69 daemon started: pid=671, -q30m, listening for SMTP on port 25 (IPv6 and IPv4)
2008-03-03 19:53:26 no host name found for IP address 58.242.150.219
2008-03-03 19:53:26 Delay 30s for [58.242.150.219] with HELO=mailer. Mail from opel@rock.com to boobwire@hushmail.com.
2008-03-03 19:54:18 DNS list lookup defer (probably timeout) for 219.150.242.58.opm.blitzed.org: assumed not in list
2008-03-03 19:54:30 H=(mailer) [58.242.150.219] I=[77.243.5.34]:25 F=<opel@rock.com> rejected RCPT <boobwire@hushmail.com >: "you in blacklist - bl.csma.biz
2008-03-03 19:54:30 unexpected disconnection while reading SMTP command from (mailer) [58.242.150.219] I=[77.243.5.34]:25
2008-03-03 23:13:28 1JWH25-0003z6-Li SIGINT received while reading local message
2008-03-03 23:15:07 auth_plain authenticator failed for (localhost) [::1] I=[::1]:25: 535 Incorrect authentication data (set_id=admin@mydomain.ru)
2008-03-03 23:15:16 SMTP syntax error in "zopa" H=(localhost) [::1] I=[::1]:25 unrecognized command
2008-03-03 23:20:16 SMTP command timeout on connection from (localhost) [::1] I=[::1]:25
77.243.5.34 внешний IP сервера, адреса не мои.
Вот rejectlog Exim-a:
Код: Выделить всё
2008-03-02 20:09:56 SMTP protocol synchronization error (input sent without waiting for greeting): rejected connection from H=[127.0.0.1] I=[127.0.0.1]:25 input="EHLO fitsudzha.net\r\n"
2008-03-03 00:37:52 SMTP protocol synchronization error (input sent without waiting for greeting): rejected connection from H=[127.0.0.1] I=[127.0.0.1]:25 input="EHLO fitsudzha.net\r\n"
2008-03-03 06:00:37 SMTP protocol synchronization error (next input sent too soon: pipelining was not advertised): rejected "GET http://www.scanproxy.com:80/px_judge.php?p=25 HTTP/1.0" H=[118.168.138.44] I=[77.243.5.34]:25 next input="Content-Type: text/html\r\nProxy-Connection: keep-alive\r\nHost: www.scanproxy.com\r\nAccept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, applicati"
2008-03-03 06:54:40 H=(77.243.5.34) [118.168.138.44] I=[77.243.5.34]:25 F=<rurdhd@hotmail.com> rejected RCPT <toxxx@mail2000.com.tw>: "main IP in your HELO! Access denied!"
2008-03-03 07:24:21 H=(77.243.5.34) [118.168.138.44] I=[77.243.5.34]:25 F=<rurdhd@hotmail.com> rejected RCPT <toxxx@mail2000.com.tw>: "main IP in your HELO! Access denied!"
2008-03-03 07:54:03 H=(77.243.5.34) [118.168.138.44] I=[77.243.5.34]:25 F=<rurdhd@hotmail.com> rejected RCPT <toxxx@mail2000.com.tw>: "main IP in your HELO! Access denied!"
2008-03-03 08:25:12 H=(77.243.5.34) [118.168.138.44] I=[77.243.5.34]:25 F=<rurdhd@hotmail.com> rejected RCPT <toxxx@mail2000.com.tw>: "main IP in your HELO! Access denied!"
Кто-то яростно стучится. Спам.
Вот maillog:
Код: Выделить всё
Mar 4 00:00:00 fitsudzha newsyslog[23669]: logfile turned over
В мозгу ступор. Спасайте!