что я делаю не так? exim

EXIM, sendmail, postfix, Dovecot и прочие. Решение проблем связанных с работой электронной почты

Модератор: xM

Правила форума
Убедительная просьба юзать теги [code] при оформлении листингов.
Сообщения не оформленные должным образом имеют все шансы быть незамеченными.
Аватара пользователя
f0s
ст. лейтенант
Сообщения: 1082
Зарегистрирован: 2007-03-13 18:43:31
Откуда: Санкт-Петербург
Контактная информация:

что я делаю не так? exim

Непрочитанное сообщение f0s » 2007-08-10 12:53:02

поставил экзим, Courier-authlib, Courier-imap.

1) косяк при попытке проверить почту. например вот в seamonkey
прописал ей адрес, он ничего не пишет, а в логах экзима наблюдаю:

Код: Выделить всё

Aug 10 13:38:47 mail authdaemond: ldap_simple_bind_s failed: Can't contact LDAP server
Aug 10 13:38:47 mail authdaemond: ldap_simple_bind_s failed: Can't contact LDAP server
Aug 10 13:38:47 mail imapd-ssl: LOGIN FAILED, method=PLAIN, ip=[192.168.10.100]
Aug 10 13:38:47 mail imapd-ssl: authentication error: Input/output error

при этом:

Код: Выделить всё

[f0s@mail] /var/log/> ps -ax | grep slap
  432  ??  Ss     0:07,47 /usr/local/libexec/slapd -h ldapi://%2fvar%2frun%2fop
 1664  p0  R+     0:00,00 grep slap
[f0s@mail] /var/log/> sockstat | grep 993
root     couriertcp 685   3  tcp4   *:993                 *:*
[f0s@mail] /var/log/> sockstat | grep slap
ldap     slapd      432   3  dgram  -> /var/run/logpriv
ldap     slapd      432   6  stream /var/run/openldap/ldapi
ldap     slapd      432   7  tcp4   192.168.10.8:389      *:*
ldap     slapd      432   8  tcp4   127.0.0.1:389         *:*
ldap     slapd      432   9  tcp4   192.168.10.8:636      *:*
ldap     slapd      432   10 tcp4   127.0.0.1:636         *:*
ldap     slapd      432   12 tcp4   127.0.0.1:389         127.0.0.1:49355
ldap     slapd      432   17 tcp4   192.168.10.8:389      192.168.10.8:50681
ldap     slapd      432   18 tcp4   127.0.0.1:389         127.0.0.1:59649
ldap     slapd      432   19 tcp4   127.0.0.1:389         127.0.0.1:58979
ldap     slapd      432   20 tcp4   127.0.0.1:389         127.0.0.1:63268
ldap     slapd      432   21 tcp4   127.0.0.1:389         127.0.0.1:60330
ldap     slapd      432   23 tcp4   127.0.0.1:389         127.0.0.1:58390
ldap     slapd      432   24 tcp4   127.0.0.1:389         127.0.0.1:49479
ldap     slapd      432   25 tcp4   127.0.0.1:389         127.0.0.1:49563
ldap     slapd      432   26 tcp4   192.168.10.8:389      192.168.10.8:58298
ldap     slapd      432   27 tcp4   127.0.0.1:389         127.0.0.1:60986
2) далее отправляем телнетом на 25 порт почту на свой адрес:

Код: Выделить всё

[f0s@mail] /var/log/> telnet localhost 25
Trying ::1...
Trying 127.0.0.1...
Connected to localhost.artpaint.
Escape character is '^]'.
220 artpaint.spb.ru, ESMTP Microsoft Windows 2003 R2
helo localhost
250 artpaint.spb.ru Hello localhost [127.0.0.1]
mail from: test@artpaint.spb.ru
250 OK
rcpt to: test@mail.artpaint
550 "User unknown."
quit
221 artpaint.spb.ru closing connection
Connection closed by foreign host.

итого: он решил что не знает такое адреса у себя, судя по конифгу экзима:

Код: Выделить всё

  accept  domains       = +local_domains
          endpass
          message       = "User unknown."
          verify        = recipient
вот что пишут логи:

Код: Выделить всё

Aug 10 13:02:55 mail exim[1448]: DNS list lookup defer (probably timeout) for 1.0.0.127.opm.blitzed.org: assumed not in list
Aug 10 13:02:56 mail exim[1448]: Delay 0s for localhost.artpaint [127.0.0.1] with HELO=localhost. Mail from test@artpaint.spb.ru to test@mail.artpaint. delay = 0s
Aug 10 13:02:56 mail exim[1448]: H=localhost.artpaint (localhost) [127.0.0.1] I=[127.0.0.1]:25 F=<test@artpaint.spb.ru> rejected RCPT test@mail.artpaint: Unrouteable address
Aug 10 13:02:56 mail exim[1448]: H=localhost.artpaint (localhost) [127.0.0.1] I=[127.0.0.1]:25 F=<test@artpaint.spb.ru> rejected RCPT test@mail.artpaint: Unrouteable address
3) отправляем телнетом на внешний адрес:

Код: Выделить всё

[f0s@mail] /var/log/> telnet localhost 25
Trying ::1...
Trying 127.0.0.1...
Connected to localhost.artpaint.
Escape character is '^]'.
220 artpaint.spb.ru, ESMTP Microsoft Windows 2003 R2
helo localhost
250 artpaint.spb.ru Hello localhost [127.0.0.1]
mail from: test@artpaint.spb.ru
250 OK
rcpt to: f0s@rambler.ru
250 Accepted
data
354 Enter message, ending with "." on a line by itself
test
.
250 OK id=1IJQPT-0000NS-Ao
quit
221 artpaint.spb.ru closing connection
Connection closed by foreign host.
[f0s@mail] /var/log/>

итого, на внешний адрес разрешил.

вот логи:

Код: Выделить всё

Aug 10 13:03:51 mail exim[1454]: DNS list lookup defer (probably timeout) for 1.0.0.127.opm.blitzed.org: assumed not in list
Aug 10 13:03:52 mail exim[1454]: Delay 0s for localhost.artpaint [127.0.0.1] with HELO=localhost. Mail from test@artpaint.spb.ru to f0s@rambler.ru. delay = 0s
Aug 10 13:04:02 mail exim[1454]: 1IJQPT-0000NS-Ao <= test@artpaint.spb.ru H=localhost.artpaint (localhost) [127.0.0.1] I=[127.0.0.1]:25 P=smtp S=235 from <test@artpaint.spb.ru> for f0s@rambler.ru
Aug 10 13:04:11 mail exim[1461]: 1IJQPT-0000NS-Ao ** f0s@rambler.ru R=dnslookup T=remote_smtp: SMTP error from remote mail server after RCPT TO:<f0s@rambler.ru>: host imx1.rambler.ru [81.19.88.5]: 554 Service unavailable; Client host [84.52.64.20] blocked using list.dsbl.org; http://dsbl.org/listing?84.52.64.20
Aug 10 13:04:11 mail exim[1465]: 1IJQPj-0000Nd-71 <= <> R=1IJQPT-0000NS-Ao U=mailnull P=local S=1247 from <> for test@artpaint.spb.ru
Aug 10 13:04:11 mail exim[1461]: 1IJQPT-0000NS-Ao Completed
Aug 10 13:04:11 mail exim[1466]: 1IJQPj-0000Nd-71 ** test@artpaint.spb.ru: Unrouteable address
Aug 10 13:04:11 mail exim[1466]: 1IJQPj-0000Nd-71 Frozen (delivery error message)
[f0s@mail] /var/log/>
судя по логам, рамблер не прринял соединение от моего айпи, так как я в блэк листе... попытался составить письмо на дарес отправителя, и опять таки - unroutebale address

кусок конфига экзима:

Код: Выделить всё

domainlist local_domains = mail.artpaint : artpaint.spb.ru

domainlist relay_to_domains = mail.artpaint : artpaint.spb.ru
named, named, what is my TTL value?..

[FidoNet 2:550/2 && 2:5030/4441]

Хостинговая компания Host-Food.ru
Хостинг HostFood.ru
 

Услуги хостинговой компании Host-Food.ru

Хостинг HostFood.ru

Тарифы на хостинг в России, от 12 рублей: https://www.host-food.ru/tariffs/hosting/
Тарифы на виртуальные сервера (VPS/VDS/KVM) в РФ, от 189 руб.: https://www.host-food.ru/tariffs/virtualny-server-vps/
Выделенные сервера, Россия, Москва, от 2520 рублей (8 CPU, 8Gb RAM, 2x500Gb HDD, RAID 3ware 9750):
https://www.host-food.ru/tariffs/vydelennyi-server-ds/
Недорогие домены в популярных зонах: https://www.host-food.ru/domains/

Аватара пользователя
dikens3
подполковник
Сообщения: 4856
Зарегистрирован: 2006-09-06 16:24:08
Откуда: Нижний Новгород
Контактная информация:

Re: что я делаю не так? exim

Непрочитанное сообщение dikens3 » 2007-08-10 15:14:40

Есть методы отладки, в твоём случае:
exim -bhc IP-Адрес

А если совсем лень, тогда есть такой скрипт от Abigor'a

Код: Выделить всё

#!/bin/sh

# Тестирование от mail.ru
(echo "EHLO mxs.mail.ru"; echo "MAIL FROM:user@mail.ru"; echo "RCPT TO: postmaster@mydomain.ru"; echo "DATA"; echo "Subject: test"; echo "."; echo "QUIT";) \
| exim -d -bhc 194.67.23.20 > testlog 2>&1

# Проверяем блокировку домена @kengu.ru или окончание EHLO .fr
(echo "EHLO smtp5-g19.free.fr"; echo "MAIL FROM:xmsmrq@kengu.ru"; echo "RCPT TO: postmaster@mydomain.ru"; echo "DATA"; echo "Subject: test"; echo "."; echo "QUIT";) \
| exim -d -bhc 212.27.42.35 > testlog 2>&1

# Тестирование от нашей сети
(echo "EHLO 127.0.0.1"; echo "MAIL FROM: postmaster@mydomain.ru"; echo "RCPT TO: user@yandex.ru"; echo "QUIT";) | exim -d -bhc 192.168.x.x > testlog 2>&1
И смотри чё там в testlog записалось.
Лучше установить FreeBSD, чем потратить 30 лет на Linux'ы и выяснить какой из них хуже.

Аватара пользователя
f0s
ст. лейтенант
Сообщения: 1082
Зарегистрирован: 2007-03-13 18:43:31
Откуда: Санкт-Петербург
Контактная информация:

Re: что я делаю не так? exim

Непрочитанное сообщение f0s » 2007-08-13 8:36:30

мдя...

Код: Выделить всё


[f0s@mail] /home/f0s/> exim -d -bhc 192.168.10.100
Exim version 4.67 (FreeBSD 6.2) uid=0 gid=0 pid=910 D=fbb95cfd
Berkeley DB: Sleepycat Software: Berkeley DB 4.0.14: (November 18, 2001)
Support for: crypteq iconv() use_setclassresources PAM Perl Expand_dlfunc OpenSSL Content_Scanning Old_Demime
Lookups: lsearch wildlsearch nwildlsearch iplsearch cdb dbm dbmnz dnsdb dsearch ldap ldapdn ldapm nis nis0 passwd
Authenticators: cram_md5 dovecot plaintext spa
Routers: accept dnslookup ipliteral manualroute queryprogram redirect
Transports: appendfile/maildir/mailstore/mbx autoreply lmtp pipe smtp
Fixed never_users: 0
Size of off_t: 8
changed uid/gid: forcing real = effective
  uid=0 gid=0 pid=910
  auxiliary group list: 0
seeking password data for user "mailnull": using cached result
getpwnam() succeeded uid=26 gid=26
seeking password data for user "root": cache not available
getpwnam() succeeded uid=0 gid=0
configuration file is /usr/local/etc/exim/configure
log selectors = 0000cefe 00233821
trusted user
admin user
changed uid/gid: privilege not needed
  uid=26 gid=6 pid=910
  auxiliary group list: 6 6
originator: uid=0 gid=0 login=root name=Charlie Root
sender address = root@mail.artpaint
sender_fullhost = [192.168.10.100]
sender_rcvhost = [192.168.10.100]

**** SMTP testing session as if from host 192.168.10.100
**** but without any ident (RFC 1413) callback.
**** This is not for real!

host in hosts_connection_nolog? no (option unset)
LOG: smtp_connection MAIN
  SMTP connection from [192.168.10.100]
host in host_lookup? no (option unset)
set_process_info:   910 handling incoming connection from [192.168.10.100]
host in host_reject_connection? no (option unset)
host in sender_unqualified_hosts? no (option unset)
host in recipient_unqualified_hosts? no (option unset)
host in helo_verify_hosts? no (option unset)
host in helo_try_verify_hosts? no (option unset)
host in helo_accept_junk_hosts? yes (matched "192.168.10.0/24")
SMTP>> 220 artpaint.spb.ru, ESMTP Microsoft Windows 2003 R2
220 artpaint.spb.ru, ESMTP Microsoft Windows 2003 R2
smtp_setup_msg entered

helo localhost
SMTP<< helo localhost
localhost in helo_lookup_domains? no (end of list)
sender_fullhost = (localhost) [192.168.10.100]
sender_rcvhost = [192.168.10.100] (helo=localhost)
set_process_info:   921 handling incoming connection from (localhost) [192.168.10.100]
250 artpaint.spb.ru Hello localhost [192.168.10.100]
SMTP>> 250 artpaint.spb.ru Hello localhost [192.168.10.100]
mail from: test@artpaint.spb.ru
SMTP<< mail from: test@artpaint.spb.ru
SMTP>> 250 OK
250 OK
rcpt to: test@mail.artpaint
SMTP<< rcpt to: test@mail.artpaint
using ACL "acl_check_rcpt"

processing "accept"
check hosts = :
host in ":"? no (end of list)
accept: condition test failed
processing "deny"
check domains = +local_domains
mail.artpaint in "mail.artpaint : artpaint.spb.ru"? yes (matched "mail.artpaint")
mail.artpaint in "+local_domains"? yes (matched "+local_domains")
check local_parts = ^[.] : ^.*[@%!/|]
test in "^[.] : ^.*[@%!/|]"? no (end of list)
deny: condition test failed
processing "deny"
check domains = !+local_domains
cached yes match for +local_domains
cached lookup data = NULL
mail.artpaint in "!+local_domains"? no (matched "!+local_domains" - cached)
deny: condition test failed
processing "deny"
check condition = ${if eq{$sender_helo_name}{}{yes}{no}}
                = no
deny: condition test failed
processing "deny"
check hosts = *:!+relay_from_hosts
host in "*:!+relay_from_hosts"? yes (matched "*")
check condition = ${if eq{$sender_helo_name}{$sender_host_address}{true}{false}}
                = false
deny: condition test failed
processing "deny"
check condition = ${if eq{$sender_helo_name}{$interface_address}{yes}{no}}
                = no
deny: condition test failed
processing "deny"
check condition = ${if match{$sender_helo_name}{\N^\d+$\N}{yes}{no}}
                = no
deny: condition test failed
processing "deny"
looking up host name for 192.168.10.100
DNS lookup of 100.10.168.192.in-addr.arpa (PTR) gave HOST_NOT_FOUND
returning DNS_NOMATCH
IP address lookup using gethostbyaddr()
IP address lookup failed: h_errno=1
LOG: host_lookup_failed MAIN
  no host name found for IP address 192.168.10.100
check condition = ${if match{$sender_host_name}{adsl|dialup|pool|peer|dhcp}{yes}{no}}
                = no
deny: condition test failed
processing "accept"
check authenticated = *
accept: condition test failed
processing "deny"
check dnslists = opm.blitzed.org : proxies.blackholes.easynet.nl : cbl.abuseat.org : bl.spamcop.net : bl.csma.biz : dynablock.njabl.org :
DNS list check: opm.blitzed.org
new DNS lookup for 100.10.168.192.opm.blitzed.org
DNS lookup of 100.10.168.192.opm.blitzed.org (A) gave TRY_AGAIN
100.10.168.192.opm.blitzed.org in dns_again_means_nonexist? no (option unset)
returning DNS_AGAIN
LOG: dnslist_defer MAIN
  DNS list lookup defer (probably timeout) for 100.10.168.192.opm.blitzed.org: assumed not in list
DNS list check: proxies.blackholes.easynet.nl
new DNS lookup for 100.10.168.192.proxies.blackholes.easynet.nl
DNS lookup of 100.10.168.192.proxies.blackholes.easynet.nl (A) gave HOST_NOT_FOUND
returning DNS_NOMATCH
DNS lookup for 100.10.168.192.proxies.blackholes.easynet.nl failed
=> that means 192.168.10.100 is not listed at proxies.blackholes.easynet.nl
DNS list check: cbl.abuseat.org
new DNS lookup for 100.10.168.192.cbl.abuseat.org
DNS lookup of 100.10.168.192.cbl.abuseat.org (A) gave HOST_NOT_FOUND
returning DNS_NOMATCH
DNS lookup for 100.10.168.192.cbl.abuseat.org failed
=> that means 192.168.10.100 is not listed at cbl.abuseat.org
DNS list check: bl.spamcop.net
new DNS lookup for 100.10.168.192.bl.spamcop.net
DNS lookup of 100.10.168.192.bl.spamcop.net (A) gave HOST_NOT_FOUND
returning DNS_NOMATCH
DNS lookup for 100.10.168.192.bl.spamcop.net failed
=> that means 192.168.10.100 is not listed at bl.spamcop.net
DNS list check: bl.csma.biz
new DNS lookup for 100.10.168.192.bl.csma.biz
DNS lookup of 100.10.168.192.bl.csma.biz (A) gave HOST_NOT_FOUND
returning DNS_NOMATCH
DNS lookup for 100.10.168.192.bl.csma.biz failed
=> that means 192.168.10.100 is not listed at bl.csma.biz
DNS list check: dynablock.njabl.org
new DNS lookup for 100.10.168.192.dynablock.njabl.org
DNS lookup of 100.10.168.192.dynablock.njabl.org (A) gave HOST_NOT_FOUND
returning DNS_NOMATCH
DNS lookup for 100.10.168.192.dynablock.njabl.org failed
=> that means 192.168.10.100 is not listed at dynablock.njabl.org
deny: condition test failed
processing "warn"
check set acl_m0 = 25s
warn: condition test succeeded
processing "warn"
check hosts = +relay_from_hosts
gethostbyname looked up these IP addresses:
  name=localhost.artpaint address=127.0.0.1
host in "localhost:127.0.0.0/8"? no (end of list)
host in "+relay_from_hosts"? no (end of list)
warn: condition test failed
processing "warn"
check 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
               = Delay 25s for  [192.168.10.100] with HELO=localhost. Mail from test@artpaint.spb.ru to test@mail.artpaint. delay = 25s
LOG: MAIN
  Delay 25s for  [192.168.10.100] with HELO=localhost. Mail from test@artpaint.spb.ru to test@mail.artpaint. delay = 25s
warn: condition test succeeded
processing "accept"
check domains = +local_domains
cached yes match for +local_domains
cached lookup data = NULL
mail.artpaint in "+local_domains"? yes (matched "+local_domains" - cached)
check verify = recipient
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
Verifying test@mail.artpaint
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
Considering test@mail.artpaint
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
routing test@mail.artpaint
--------> dnslookup router <--------
local_part=test domain=mail.artpaint
checking domains
cached yes match for +local_domains
cached lookup data = NULL
mail.artpaint in "! +local_domains"? no (matched "! +local_domains" - cached)
dnslookup router skipped: domains mismatch
--------> system_aliases router <--------
local_part=test domain=mail.artpaint
calling system_aliases router
rda_interpret (string): ${lookup ldapm{user="cn=exim,ou=system,dc=artpaint,dc=spb,dc=ru" pass="porol" ldap:///ou=mail,dc=artpaint,dc=spb,dc=ru?mail?sub?(&(accountStatus=active)(mailAlternateAddress=${quote_ldap:$local_part}${quote_ldap:@}${quote_ldap:$domain}))}}
search_open: ldapm "NULL"
search_find: file="NULL"
  key="user="cn=exim,ou=system,dc=artpaint,dc=spb,dc=ru" pass="porol" ldap:///ou=mail,dc=artpaint,dc=spb,dc=ru?mail?sub?(&(accountStatus=active)(mailAlternateAddress=test%40mail.artpaint))" partial=-1 affix=NULL starflags=0
LRU list:
internal_search_find: file="NULL"
  type=ldapm key="user="cn=exim,ou=system,dc=artpaint,dc=spb,dc=ru" pass="porol" ldap:///ou=mail,dc=artpaint,dc=spb,dc=ru?mail?sub?(&(accountStatus=active)(mailAlternateAddress=test%40mail.artpaint))"
database lookup required for user="cn=exim,ou=system,dc=artpaint,dc=spb,dc=ru" pass="porol" ldap:///ou=mail,dc=artpaint,dc=spb,dc=ru?mail?sub?(&(accountStatus=active)(mailAlternateAddress=test%40mail.artpaint))
LDAP parameters: user=cn=exim,ou=system,dc=artpaint,dc=spb,dc=ru pass=porol size=0 time=0 connect=0 dereference=0 referrals=on
perform_ldap_search: ldapm URL = "ldap:///ou=mail,dc=artpaint,dc=spb,dc=ru?mail?sub?(&(accountStatus=active)(mailAlternateAddress=test%40mail.artpaint))" server=192.168.10.8 port=389 sizelimit=0 timelimit=0 tcplimit=0
after ldap_url_parse: host=192.168.10.8 port=389
ldap_initialize with URL ldap://192.168.10.8:389/
initialized for LDAP (v3) server 192.168.10.8:389
LDAP_OPT_X_TLS_TRY set
binding with user=cn=exim,ou=system,dc=artpaint,dc=spb,dc=ru password=porol
Start search
search ended by ldap_result yielding 101
ldap_parse_result: 0
ldap_parse_result yielded 0: Success
LDAP search: no results
lookup failed
expanded:
file is not a filter file
parse_forward_list:
system_aliases router declined for test@mail.artpaint
--------> ldapuser router <--------
local_part=test domain=mail.artpaint
checking "condition"
search_open: ldapdn "NULL"
search_find: file="NULL"
  key="user="cn=exim,ou=system,dc=artpaint,dc=spb,dc=ru" pass="porol" ldap:///ou=mail,dc=artpaint,dc=spb,dc=ru??sub?(&(accountStatus=active)(mail=test%40mail.artpaint))" partial=-1 affix=NULL starflags=0
LRU list:
internal_search_find: file="NULL"
  type=ldapdn key="user="cn=exim,ou=system,dc=artpaint,dc=spb,dc=ru" pass="porol" ldap:///ou=mail,dc=artpaint,dc=spb,dc=ru??sub?(&(accountStatus=active)(mail=test%40mail.artpaint))"
database lookup required for user="cn=exim,ou=system,dc=artpaint,dc=spb,dc=ru" pass="porol" ldap:///ou=mail,dc=artpaint,dc=spb,dc=ru??sub?(&(accountStatus=active)(mail=test%40mail.artpaint))
LDAP parameters: user=cn=exim,ou=system,dc=artpaint,dc=spb,dc=ru pass=porol size=0 time=0 connect=0 dereference=0 referrals=on
perform_ldap_search: ldapdn URL = "ldap:///ou=mail,dc=artpaint,dc=spb,dc=ru??sub?(&(accountStatus=active)(mail=test%40mail.artpaint))" server=192.168.10.8 port=389 sizelimit=0 timelimit=0 tcplimit=0
after ldap_url_parse: host=192.168.10.8 port=389
re-using cached connection to LDAP server 192.168.10.8:389
Start search
search ended by ldap_result yielding 101
ldap_parse_result: 0
ldap_parse_result yielded 0: Success
LDAP search: no results
lookup failed
ldapuser router skipped: condition failure
no more routers
----------- end verify ------------
accept: condition test failed
accept: endpass encountered - denying access
SMTP>> 550 "User unknown."
550 "User unknown."
LOG: MAIN REJECT
  H=(localhost) [192.168.10.100] F=<test@artpaint.spb.ru> rejected RCPT test@mail.artpaint: Unrouteable address
data
SMTP<< data
SMTP>> 503-All RCPT commands were rejected with this error:
503-All RCPT commands were rejected with this error:
SMTP>> 503-"User unknown."
503-"User unknown."
LOG: smtp_protocol_error MAIN
  SMTP protocol error in "data" H=(localhost) [192.168.10.100] valid RCPT command must precede DATA
SMTP>> 503 valid RCPT command must precede DATA
503 valid RCPT command must precede DATA
named, named, what is my TTL value?..

[FidoNet 2:550/2 && 2:5030/4441]

Аватара пользователя
dikens3
подполковник
Сообщения: 4856
Зарегистрирован: 2006-09-06 16:24:08
Откуда: Нижний Новгород
Контактная информация:

Re: что я делаю не так? exim

Непрочитанное сообщение dikens3 » 2007-08-13 14:38:08

ldap_parse_result: 0
Копай дальше. Юзера в LDAP нет.
Я с LDAP не работал, и от меня толку будет нуль.
Лучше установить FreeBSD, чем потратить 30 лет на Linux'ы и выяснить какой из них хуже.

Аватара пользователя
f0s
ст. лейтенант
Сообщения: 1082
Зарегистрирован: 2007-03-13 18:43:31
Откуда: Санкт-Петербург
Контактная информация:

Re: что я делаю не так? exim

Непрочитанное сообщение f0s » 2007-08-13 14:59:00

кажись с эим разобрался чуть-=чуьт. глючит он если пытаться экзимом в ладп не через рут сомтреть. переделал под рута:

Код: Выделить всё

[f0s@mail] /home/f0s/> exim -d -bhc 127.0.0.1
Exim version 4.67 (FreeBSD 6.2) uid=0 gid=0 pid=1061 D=fbb95cfd
Berkeley DB: Sleepycat Software: Berkeley DB 4.0.14: (November 18, 2001)
Support for: crypteq iconv() use_setclassresources PAM Perl Expand_dlfunc 
OpenSSL Content_Scanning Old_Demime
Lookups: lsearch wildlsearch nwildlsearch iplsearch cdb dbm dbmnz dnsdb dsearch
ldap ldapdn ldapm nis nis0 passwd
Authenticators: cram_md5 dovecot plaintext spa
Routers: accept dnslookup ipliteral manualroute queryprogram redirect
Transports: appendfile/maildir/mailstore/mbx autoreply lmtp pipe smtp
Fixed never_users: 0
Size of off_t: 8
changed uid/gid: forcing real = effective
  uid=0 gid=0 pid=1061
  auxiliary group list: 0
seeking password data for user "mailnull": using cached result
getpwnam() succeeded uid=26 gid=26
seeking password data for user "root": cache not available
getpwnam() succeeded uid=0 gid=0
configuration file is /usr/local/etc/exim/configure
log selectors = 0000cefe 00233821
trusted user
admin user
changed uid/gid: privilege not needed
  uid=26 gid=6 pid=1061
  auxiliary group list: 6 6
originator: uid=0 gid=0 login=root name=Charlie Root
sender address = root@mail.artpaint
sender_fullhost = [127.0.0.1]
sender_rcvhost = [127.0.0.1]

**** SMTP testing session as if from host 127.0.0.1
**** but without any ident (RFC 1413) callback.
**** This is not for real!

host in hosts_connection_nolog? no (option unset)
LOG: smtp_connection MAIN
  SMTP connection from [127.0.0.1]
host in host_lookup? no (option unset)
set_process_info:  1061 handling incoming connection from [127.0.0.1]
host in host_reject_connection? no (option unset)
host in sender_unqualified_hosts? no (option unset)
host in recipient_unqualified_hosts? no (option unset)
host in helo_verify_hosts? no (option unset)
host in helo_try_verify_hosts? no (option unset)
host in helo_accept_junk_hosts? no (end of list)
SMTP>> 220 artpaint.spb.ru, ESMTP Microsoft Windows 2003 R2
220 artpaint.spb.ru, ESMTP Microsoft Windows 2003 R2
smtp_setup_msg entered
helo localhost
SMTP<< helo localhost
localhost in helo_lookup_domains? no (end of list)
sender_fullhost = (localhost) [127.0.0.1]
sender_rcvhost = [127.0.0.1] (helo=localhost)
set_process_info:  1061 handling incoming connection from (localhost) 
[127.0.0.1]
250 artpaint.spb.ru Hello localhost [127.0.0.1]
SMTP>> 250 artpaint.spb.ru Hello localhost [127.0.0.1]
mail from: test@artpaint.spb.ru
SMTP<< mail from: test@artpaint.spb.ru
SMTP>> 250 OK
250 OK
rcpt to: test@mail.artpaint
SMTP<< rcpt to: test@mail.artpaint
using ACL "acl_check_rcpt"
processing "accept"
check hosts = :
host in ":"? no (end of list)
accept: condition test failed
processing "deny"
check domains = +local_domains
mail.artpaint in "mail.artpaint : artpaint.spb.ru"? yes (matched 
"mail.artpaint")
mail.artpaint in "+local_domains"? yes (matched "+local_domains")
check local_parts = ^[.] : ^.*[@%!/|]
test in "^[.] : ^.*[@%!/|]"? no (end of list)
deny: condition test failed
processing "deny"
check domains = !+local_domains
cached yes match for +local_domains
cached lookup data = NULL
mail.artpaint in "!+local_domains"? no (matched "!+local_domains" - cached)
deny: condition test failed
processing "deny"
check condition = ${if eq{$sender_helo_name}{}{yes}{no}}
                = no
deny: condition test failed
processing "deny"
check hosts = *:!+relay_from_hosts
host in "*:!+relay_from_hosts"? yes (matched "*")
check condition = ${if 
eq{$sender_helo_name}{$sender_host_address}{true}{false}}
                = false
deny: condition test failed
processing "deny"
check condition = ${if eq{$sender_helo_name}{$interface_address}{yes}{no}}
                = no
deny: condition test failed
processing "deny"
check condition = ${if match{$sender_helo_name}{\N^\d+$\N}{yes}{no}}
                = no
deny: condition test failed
processing "deny"
looking up host name for 127.0.0.1
DNS lookup of 1.0.0.127.in-addr.arpa (PTR) succeeded
IP address lookup yielded localhost.artpaint
gethostbyname looked up these IP addresses:
  name=localhost.artpaint address=127.0.0.1
checking addresses for localhost.artpaint
  127.0.0.1 OK
sender_fullhost = localhost.artpaint (localhost) [127.0.0.1]
sender_rcvhost = localhost.artpaint ([127.0.0.1] helo=localhost)
check condition = ${if 
match{$sender_host_name}{adsl|dialup|pool|peer|dhcp}{yes}{no}}
                = no
deny: condition test failed
processing "accept"
check authenticated = *
accept: condition test failed
processing "deny"
check dnslists = opm.blitzed.org : proxies.blackholes.easynet.nl : 
cbl.abuseat.org : bl.spamcop.net : bl.csma.biz : dynablock.njabl.org :
DNS list check: opm.blitzed.org
new DNS lookup for 1.0.0.127.opm.blitzed.org
DNS lookup of 1.0.0.127.opm.blitzed.org (A) gave TRY_AGAIN
1.0.0.127.opm.blitzed.org in dns_again_means_nonexist? no (option unset)
returning DNS_AGAIN
LOG: dnslist_defer MAIN
  DNS list lookup defer (probably timeout) for 1.0.0.127.opm.blitzed.org: 
assumed not in list
DNS list check: proxies.blackholes.easynet.nl
new DNS lookup for 1.0.0.127.proxies.blackholes.easynet.nl
DNS lookup of 1.0.0.127.proxies.blackholes.easynet.nl (A) gave HOST_NOT_FOUND
returning DNS_NOMATCH
DNS lookup for 1.0.0.127.proxies.blackholes.easynet.nl failed
=> that means 127.0.0.1 is not listed at proxies.blackholes.easynet.nl
DNS list check: cbl.abuseat.org
new DNS lookup for 1.0.0.127.cbl.abuseat.org
DNS lookup of 1.0.0.127.cbl.abuseat.org (A) gave HOST_NOT_FOUND
returning DNS_NOMATCH
DNS lookup for 1.0.0.127.cbl.abuseat.org failed
=> that means 127.0.0.1 is not listed at cbl.abuseat.org
DNS list check: bl.spamcop.net
new DNS lookup for 1.0.0.127.bl.spamcop.net
DNS lookup of 1.0.0.127.bl.spamcop.net (A) gave HOST_NOT_FOUND
returning DNS_NOMATCH
DNS lookup for 1.0.0.127.bl.spamcop.net failed
=> that means 127.0.0.1 is not listed at bl.spamcop.net
DNS list check: bl.csma.biz
new DNS lookup for 1.0.0.127.bl.csma.biz
DNS lookup of 1.0.0.127.bl.csma.biz (A) gave HOST_NOT_FOUND
returning DNS_NOMATCH
DNS lookup for 1.0.0.127.bl.csma.biz failed
=> that means 127.0.0.1 is not listed at bl.csma.biz
DNS list check: dynablock.njabl.org
new DNS lookup for 1.0.0.127.dynablock.njabl.org
DNS lookup of 1.0.0.127.dynablock.njabl.org (A) gave HOST_NOT_FOUND
returning DNS_NOMATCH
DNS lookup for 1.0.0.127.dynablock.njabl.org failed
=> that means 127.0.0.1 is not listed at dynablock.njabl.org
deny: condition test failed
processing "warn"
check set acl_m0 = 25s
warn: condition test succeeded
processing "warn"
check hosts = +relay_from_hosts
gethostbyname looked up these IP addresses:
  name=localhost.artpaint address=127.0.0.1
host in "localhost.artpaint : localhost : 127.0.0.0/8"? yes (matched 
"localhost.artpaint")
host in "+relay_from_hosts"? yes (matched "+relay_from_hosts")
check set acl_m0 = 0s
warn: condition test succeeded
processing "warn"
check 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
               = Delay 0s for localhost.artpaint [127.0.0.1] with 
HELO=localhost. Mail from test@artpaint.spb.ru to test@mail.artpaint. delay = 
0s
LOG: MAIN
  Delay 0s for localhost.artpaint [127.0.0.1] with HELO=localhost. Mail from 
test@artpaint.spb.ru to test@mail.artpaint. delay = 0s
warn: condition test succeeded
processing "accept"
check domains = +local_domains
cached yes match for +local_domains
cached lookup data = NULL
mail.artpaint in "+local_domains"? yes (matched "+local_domains" - cached)
check verify = recipient
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
Verifying test@mail.artpaint
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
Considering test@mail.artpaint
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
routing test@mail.artpaint
--------> dnslookup router <--------
local_part=test domain=mail.artpaint
checking domains
cached yes match for +local_domains
cached lookup data = NULL
mail.artpaint in "! +local_domains"? no (matched "! +local_domains" - cached)
dnslookup router skipped: domains mismatch
--------> system_aliases router <--------
local_part=test domain=mail.artpaint
calling system_aliases router
rda_interpret (string): ${lookup ldapm{user="cn=root,dc=artpaint,dc=spb,dc=ru" 
pass="my_password" ldap:///ou=mail,dc=artpaint,dc=spb,dc=ru?mail?sub?(&(account
Status=active)(mail AlternateAddress=${quote_ldap:$local_part}${quote_ldap:@}${
quote_ldap:$domain}) )}}
search_open: ldapm "NULL"
search_find: file="NULL"
  key="user="cn=root,dc=artpaint,dc=spb,dc=ru" pass="my_password" 
ldap:///ou=mail,dc=artpaint,dc=spb,dc=ru?mail?sub?(&(accountStatus=active)(mail
AlternateAddress=test%40mail.artpaint))" partial=-1 affix=NULL starflags=0
LRU list:
internal_search_find: file="NULL"
  type=ldapm key="user="cn=root,dc=artpaint,dc=spb,dc=ru" pass="my_password" 
ldap:///ou=mail,dc=artpaint,dc=spb,dc=ru?mail?sub?(&(accountStatus=active)(mail
AlternateAddress=test%40mail.artpaint))"
database lookup required for user="cn=root,dc=artpaint,dc=spb,dc=ru" 
pass="my_password" ldap:///ou=mail,dc=artpaint,dc=spb,dc=ru?mail?sub?(&(account
Status=active)(mail AlternateAddress=test%40mail.artpaint))
LDAP parameters: user=cn=root,dc=artpaint,dc=spb,dc=ru pass=my_password size=0 
time=0 connect=0 dereference=0 referrals=on
perform_ldap_search: ldapm URL = "ldap:///ou=mail,dc=artpaint,dc=spb,dc=ru?mail
?sub?(&(accountStatus=active)(mai lAlternateAddress=test%40mail.artpaint))" 
server=192.168.10.8 port=389 sizelimit=0 timelimit=0 tcplimit=0
after ldap_url_parse: host=192.168.10.8 port=389
ldap_initialize with URL ldap://192.168.10.8:389/
initialized for LDAP (v3) server 192.168.10.8:389
LDAP_OPT_X_TLS_TRY set
binding with user=cn=root,dc=artpaint,dc=spb,dc=ru password=my_password
Start search
search ended by ldap_result yielding 101
ldap_parse_result: 0
ldap_parse_result yielded 0: Success
LDAP search: no results
lookup failed
expanded:
file is not a filter file
parse_forward_list:
system_aliases router declined for test@mail.artpaint
--------> ldapuser router <--------
local_part=test domain=mail.artpaint
checking "condition"
search_open: ldapdn "NULL"
search_find: file="NULL"
  key="user="cn=root,dc=artpaint,dc=spb,dc=ru" pass="my_password" 
ldap:///ou=mail,dc=artpaint,dc=spb,dc=ru??sub?(&(accountStatus=active)(mail=tes
t%40mail.artpaint))" partial=-1 affix=NULL starflags=0
LRU list:
internal_search_find: file="NULL"
  type=ldapdn key="user="cn=root,dc=artpaint,dc=spb,dc=ru" pass="my_password" 
ldap:///ou=mail,dc=artpaint,dc=spb,dc=ru??sub?(&(accountStatus=active)(mail=tes
t%40mail.artpaint))"
database lookup required for user="cn=root,dc=artpaint,dc=spb,dc=ru" 
pass="my_password" ldap:///ou=mail,dc=artpaint,dc=spb,dc=ru??sub?(&(accountStat
us=active)(mail=tes t%40mail.artpaint))
LDAP parameters: user=cn=root,dc=artpaint,dc=spb,dc=ru pass=my_password size=0 
time=0 connect=0 dereference=0 referrals=on
perform_ldap_search: ldapdn URL = "ldap:///ou=mail,dc=artpaint,dc=spb,dc=ru??su
b?(&(accountStatus=active)(mail=te st%40mail.artpaint))" server=192.168.10.8 
port=389 sizelimit=0 timelimit=0 tcplimit=0
after ldap_url_parse: host=192.168.10.8 port=389
re-using cached connection to LDAP server 192.168.10.8:389
Start search
ldap_result loop
LDAP entry loop
search ended by ldap_result yielding 101
ldap_parse_result: 0
ldap_parse_result yielded 0: Success
LDAP search: returning: mail=test@mail.artpaint,ou=mail.artpaint,ou=mail,dc=art
paint,dc=spb,dc=ru
lookup yielded: mail=test@mail.artpaint,ou=mail.artpaint,ou=mail,dc=artpaint,dc
=spb,dc=ru
calling ldapuser router
ldapuser router called for test@mail.artpaint
  domain = mail.artpaint
set transport ldap_delivery
queued for ldap_delivery transport: local_part = test
domain = mail.artpaint
  errors_to=NULL
  domain_data=NULL localpart_data=NULL
routed by ldapuser router
  envelope to: test@mail.artpaint
  transport: ldap_delivery
----------- end verify ------------
accept: condition test succeeded
SMTP>> 250 Accepted
250 Accepted
data
SMTP<< data
SMTP>> 354 Enter message, ending with "." on a line by itself
354 Enter message, ending with "." on a line by itself
search_tidyup called
unbind LDAP connection to 192.168.10.8:389
test
.
host in ignore_fromline_hosts? no (option unset)
>>Headers received:

search_tidyup called
>>Headers after rewriting and local additions:

Data file written for message 1IKXO3-0000H7-Ns
>>Generated Received: header line
P Received: from localhost.artpaint ([127.0.0.1] helo=localhost)
        by artpaint.spb.ru with smtp (Exim 4.67 (FreeBSD))
        (envelope-from <test@artpaint.spb.ru>)
        id 1IKXO3-0000H7-Ns
        for test@mail.artpaint; Mon, 13 Aug 2007 14:43:08 +0400
using ACL "acl_check_data"
processing "deny"
check malware = *
waiting for data on socket
deny: condition test failed
processing "accept"
accept: condition test succeeded
unspool_mbox(): unlinking 
'/var/spool/exim/scan/1IKXO3-0000H7-Ns/1IKXO3-0000H7-Ns.eml'
calling local_scan(); timeout=300
local_scan() returned 0 NULL
LOG: MAIN
  <= test@artpaint.spb.ru H=localhost.artpaint (localhost) [127.0.0.1] P=smtp 
S=239
SMTP>> 250 OK id=1IKXO3-0000H7-Ns
250 OK id=1IKXO3-0000H7-Ns

**** SMTP testing: that is not a real message id!

smtp_setup_msg entered
quit
SMTP<< quit
SMTP>> 221 artpaint.spb.ru closing connection
221 artpaint.spb.ru closing connection
LOG: smtp_connection MAIN
  SMTP connection from localhost.artpaint (localhost) [127.0.0.1] closed by 
QUIT
search_tidyup called
>>>>>>>>>>>>>>>> Exim pid=1061 terminating with rc=0 >>>>>>>>>>>>>>>>


в логах при обычном тест на 25 порт такое:

Код: Выделить всё

Aug 13 14:28:57 mail exim[950]: 1IKX5o-0000Et-4t == test@mail.artpaint 
R=ldapuser T=ldap_delivery defer (-1): Expansion of "${lookup 
ldap{user="cn=root,dc=artpaint,dc=spb,dc=ru" pass="my_password" 
ldap:///ou=mail,dc=artpaint,dc=spb,dc=ru?homeDirectory?sub?(&(accountStatus=act
ive)mail=${quote_ldap:$local_part}${quote_ldap:@}${quote_ldap:$domain}))}{/mail
/$value/Maildir/}}" (file or directory name for ldap_delivery transport) 
failed: lookup of "user="cn=root,dc=artpaint,dc=spb,dc=ru" pass="my_password" 
ldap:///ou=mail,dc=artpaint,dc=spb,dc=ru?homeDirectory?sub?(&(accountStatus=act
ive)mail=test%40mail.artpaint))" gave DEFER: ldap_search failed: -7, Bad search
filter
named, named, what is my TTL value?..

[FidoNet 2:550/2 && 2:5030/4441]

Аватара пользователя
dikens3
подполковник
Сообщения: 4856
Зарегистрирован: 2006-09-06 16:24:08
Откуда: Нижний Новгород
Контактная информация:

Re: что я делаю не так? exim

Непрочитанное сообщение dikens3 » 2007-08-13 15:09:39

Ну радуйся что-ли, раз заработало.
Лучше установить FreeBSD, чем потратить 30 лет на Linux'ы и выяснить какой из них хуже.

Аватара пользователя
f0s
ст. лейтенант
Сообщения: 1082
Зарегистрирован: 2007-03-13 18:43:31
Откуда: Санкт-Петербург
Контактная информация:

Re: что я делаю не так? exim

Непрочитанное сообщение f0s » 2007-08-13 15:13:58

так говорю же, что нет:

Код: Выделить всё

Aug 13 14:28:57 mail exim[950]: 1IKX5o-0000Et-4t == test@mail.artpaint
R=ldapuser T=ldap_delivery defer (-1): Expansion of "${lookup
ldap{user="cn=root,dc=artpaint,dc=spb,dc=ru" pass="my_password"
ldap:///ou=mail,dc=artpaint,dc=spb,dc=ru?homeDirectory?sub?(&(accountStatus=act
ive)mail=${quote_ldap:$local_part}${quote_ldap:@}${quote_ldap:$domain}))}{/mail
/$value/Maildir/}}" (file or directory name for ldap_delivery transport)
failed: lookup of "user="cn=root,dc=artpaint,dc=spb,dc=ru" pass="my_password"
ldap:///ou=mail,dc=artpaint,dc=spb,dc=ru?homeDirectory?sub?(&(accountStatus=act
ive)mail=test%40mail.artpaint))" gave DEFER: ldap_search failed: -7, Bad search
filter
named, named, what is my TTL value?..

[FidoNet 2:550/2 && 2:5030/4441]

Аватара пользователя
Alex Keda
стреляли...
Сообщения: 35025
Зарегистрирован: 2004-10-18 14:25:19
Откуда: Made in USSR
Контактная информация:

Re: что я делаю не так? exim

Непрочитанное сообщение Alex Keda » 2007-08-13 15:42:22

Bad search filter
фильтр неверный.
может со скобкапми ошибся...
Убей их всех! Бог потом рассортирует...

Аватара пользователя
f0s
ст. лейтенант
Сообщения: 1082
Зарегистрирован: 2007-03-13 18:43:31
Откуда: Санкт-Петербург
Контактная информация:

Re: что я делаю не так? exim

Непрочитанное сообщение f0s » 2007-08-13 15:46:34

настроил почтовую программу.

пытаюсь получить почту. итого:

"текущая команда не выполнена. Почтовый сервер ответил: Unable to open this mailbox.(тут типа квадратик - наверно что-то не в той кодировке)."

вот логи maillog:

Код: Выделить всё

Aug 13 16:34:53 mail exim[704]: 1IJ5Oa-0000PH-Ki == f0s@rambler.ru routing defer (-51): retry time not reached
Aug 13 16:37:13 mail authdaemond: Authenticated: sysusername=<null>, sysuserid=26, sysgroupid=26, homedir=/mail/mail.artpaint/test, address=test@mail.artpaint, fullname=test user, maildir=<null>, quota=2500, options=<null>
Aug 13 16:37:13 mail authdaemond: Authenticated: clearpasswd=test, passwd=<null>
Aug 13 16:37:13 mail imapd-ssl: LOGIN, user=test@mail.artpaint, ip=[192.168.10.100], protocol=IMAP
Aug 13 16:38:15 mail imapd-ssl: DISCONNECTED, user=test@mail.artpaint, ip=[192.168.10.100], headers=0, body=0, rcvd=18, sent=51, time=62, starttls=1

вот каталоги из папки почты.. я их кстати сам создавал... автоматом почему-то не создавлись

Код: Выделить всё

[f0s@mail] /mail/> ll
total 6
drwxrwxr-x  2 root      operator  512 12 авг 02:50 .snap
drwxrwx---  3 mailnull  mail      512  9 авг 18:44 artpaint.spb.ru
drwxrwx---  4 mailnull  mail      512  9 авг 18:45 mail.artpaint
[f0s@mail] /mail/> cd mail.artpaint/
[f0s@mail] /mail/mail.artpaint/> ll
total 4
drwxrwx---  2 mailnull  mail  512  9 авг 15:19 f0s
drwxrwx---  3 mailnull  mail  512 13 авг 16:17 test
[f0s@mail] /mail/mail.artpaint/> cd test
[f0s@mail] /mail/mail.artpaint/test/> ll
total 2
drwxrwx---  4 mailnull  mail  512 13 авг 16:19 Maildir
[f0s@mail] /mail/mail.artpaint/test/> cd Maildir/
[f0s@mail] /mail/mail.artpaint/test/Maildir/> ll
total 4
drwx------  6 mailnull  mail  512 13 авг 16:18 .Trash
drwxrwx---  2 mailnull  mail  512 13 авг 16:19 Inbox
[f0s@mail] /mail/mail.artpaint/test/Maildir/> 
named, named, what is my TTL value?..

[FidoNet 2:550/2 && 2:5030/4441]

Аватара пользователя
f0s
ст. лейтенант
Сообщения: 1082
Зарегистрирован: 2007-03-13 18:43:31
Откуда: Санкт-Петербург
Контактная информация:

Re: что я делаю не так? exim

Непрочитанное сообщение f0s » 2007-08-13 16:25:16

разобрался, всем спасибо!! делал по статье, в статье ошибочка была
named, named, what is my TTL value?..

[FidoNet 2:550/2 && 2:5030/4441]

stalker
проходил мимо

Re: что я делаю не так? exim

Непрочитанное сообщение stalker » 2010-04-29 18:01:54

f0s писал(а):разобрался, всем спасибо!! делал по статье, в статье ошибочка была
Блин, так в чем ошибка была? :)
Никак я не соображу? из-за чего ошибка возникает?