Цитата: Попробуй провести дебаг сессии с параметрами
/path/to/exim -h 94.100.177.108 с параметрами
HELO smtp48.i.mail.ru
MAIL FROM: <test@mail.ru>
RCPT TO: сначала неактивный, потом активный юзер
И покажи как отрабатывается
почитав ман нашел
-h <number>
This option is accepted for compatibility with Sendmail, but
has no effect. (In Sendmail it overrides the "hop count"
obtained by counting Received: headers.)
но я так думаю меня интересует
-d<debug options>
Код: mail# exim -d 94.100.177.108
Exim version 4.72 (FreeBSD 7.2) uid=0 gid=0 pid=72292 D=fbb95cfd
Probably Berkeley DB version 1.8x (native mode)
Support for: crypteq iconv() use_setclassresources PAM Perl Expand_dlfunc OpenSSL Content_Scanning DKIM Old_Demime
Lookups: lsearch wildlsearch nwildlsearch iplsearch cdb dbm dbmnz dnsdb dsearch mysql 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
OpenSSL compile-time version: OpenSSL 0.9.8e 23 Feb 2007
OpenSSL runtime version: OpenSSL 0.9.8e 23 Feb 2007
changed uid/gid: forcing real = effective
uid=0 gid=0 pid=72292
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 = ffffffff 7fffffff
LOG: MAIN
cwd=/root 3 args: exim -d 94.100.177.108
trusted user
admin user
changed uid/gid: privilege not needed
uid=26 gid=6 pid=72292
auxiliary group list: 6 6
seeking password data for user "mailnull": cache not available
getpwnam() succeeded uid=26 gid=26
originator: uid=0 gid=0 login=root name=Charlie Root
sender address = root@domen.ru
set_process_info: 72292 accepting a local non-SMTP message from <root@domen.ru>
Sender: root@domen.ru
Recipients:
94.100.177.108
search_tidyup called
HELO smtp48.i.mail.ru
MAIL FROM: batonser@mail.ru
>>Headers received:
address match: subject=94.100.177.108@domen.ru pattern=*@domen.ru
domen.ru in "domen.ru"? yes (matched "domen.ru")
94.100.177.108@domen.ru in "*@domen.ru"? yes (matched "*@domen.ru")
LOG: address_rewrite MAIN
"94.100.177.108@domen.ru" from env-to rewritten as "94.100.177.108@domen.ru" by rule 1
address match: subject=root@domen.ru pattern=*@domen.ru
domen.ru in "domen.ru"? yes (matched "domen.ru")
root@domen.ru in "*@domen.ru"? yes (matched "*@domen.ru")
LOG: address_rewrite MAIN
"root@domen.ru" from env-from rewritten as "root@domen.ru" by rule 1
rewritten sender = root@domen.ru
rewrite_one_header: type=F:
From: Charlie Root <root@domen.ru>
address match: subject=root@domen.ru pattern=*@domen.ru
domen.ru in "domen.ru"? yes (matched "domen.ru")
root@domen.ru in "*@domen.ru"? yes (matched "*@domen.ru")
LOG: address_rewrite MAIN
"root@domen.ru" from from: rewritten as "root@domen.ru" by rule 1
newlen=33 newtype=F newtext:
From: Charlie Root <root@domen.ru>
remainder:
search_tidyup called
>>Headers after rewriting and local additions:
Date: Fri, 05 Sep 2014 16:09:45 +0600
I Message-Id: <E1XPqSO-000Ip2-Qx@domen.ru>
* X-rewrote-original-recipient: 94.100.177.108@domen.ru
* From: Charlie Root <root@domen.ru>
F From: Charlie Root <root@domen.ru>
* X-rewrote-sender: root@domen.ru
...
.
.
.
.
.
Probably Berkeley DB version 1.8x (native mode)
Support for: crypteq iconv() use_setclassresources PAM Perl Expand_dlfunc OpenSSL Content_Scanning DKIM Old_Demime
Lookups: lsearch wildlsearch nwildlsearch iplsearch cdb dbm dbmnz dnsdb dsearch mysql 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
OpenSSL compile-time version: OpenSSL 0.9.8e 23 Feb 2007
OpenSSL runtime version: OpenSSL 0.9.8e 23 Feb 2007
changed uid/gid: forcing real = effective
uid=0 gid=6 pid=72684
auxiliary group list: 6
seeking password data for user "mailnull": using cached result
getpwnam() succeeded uid=26 gid=26
configuration file is /usr/local/etc/exim/configure
log selectors = ffffffff 7fffffff
LOG: MAIN
cwd=/var/spool/exim 8 args: /usr/local/sbin/exim -d=0xfbb95cfd -t -oem -oi -f <> -E1XPqX9-000Isk-Ub
trusted user
admin user
changed uid/gid: privilege not needed
uid=26 gid=6 pid=72684
auxiliary group list: 6 6
seeking password data for user "mailnull": using cached result
getpwnam() succeeded uid=26 gid=26
originator: uid=26 gid=6 login=mailnull name=
sender address =
set_process_info: 72684 accepting a local non-SMTP message from <>
Sender:
search_tidyup called
>>Headers received:
X-Failed-Recipients: 94.100.177.108@domen.ru
Auto-Submitted: auto-replied
From: Mail Delivery System <Mailer-Daemon@domen.ru>
To: root@domen.ru
Subject: Mail delivery failed: returning message to sender
address match: subject=root@domen.ru pattern=*@domen.ru
domen.ru in "domen.ru"? yes (matched "domen.ru")
root@domen.ru in "*@domen.ru"? yes (matched "*@domen.ru")
LOG: address_rewrite MAIN
"root@domen.ru" from env-to rewritten as "root@domen.ru" by rule 1
rewrite_one_header: type=F:
From: Mail Delivery System <Mailer-Daemon@domen.ru>
address match: subject=Mailer-Daemon@domen.ru pattern=*@domen.ru
domen.ru in "domen.ru"? yes (matched "domen.ru")
Mailer-Daemon@domen.ru in "*@domen.ru"? yes (matched "*@domen.ru")
LOG: address_rewrite MAIN
"Mailer-Daemon@domen.ru" from from: rewritten as "Mailer-Daemon@domen.ru" by rule 1
newlen=50 newtype=F newtext:
From: Mail Delivery System <Mailer-Daemon@domen.ru>
remainder:
rewrite_one_header: type=T:
To: root@domen.ru
address match: subject=root@domen.ru pattern=*@domen.ru
domen.ru in "domen.ru"? yes (matched "domen.ru")
root@domen.ru in "*@domen.ru"? yes (matched "*@domen.ru")
LOG: address_rewrite MAIN
"root@domen.ru" from to: rewritten as "root@domen.ru" by rule 1
newlen=16 newtype=T newtext:
To: root@domen.ru
remainder:
search_tidyup called
>>Headers after rewriting and local additions:
Date: Fri, 05 Sep 2014 16:15:49 +0600
I Message-Id: <E1XPqYX-000IuK-2G@domen.ru>
X-Failed-Recipients: 94.100.177.108@domen.ru
Auto-Submitted: auto-replied
* From: Mail Delivery System <Mailer-Daemon@domen.ru>
F From: Mail Delivery System <Mailer-Daemon@domen.ru>
* To: root@domen.ru
T To: root@domen.ru
Subject: Mail delivery failed: returning message to sender
* X-rewrote-original-recipient: root@domen.ru
Data file written for message 1XPqYX-000IuK-2G
>>Generated Received: header line
P Received: from mailnull by domen.ru with local (Exim 4.72 (FreeBSD))
id 1XPqYX-000IuK-2G
for root@domen.ru; Fri, 05 Sep 2014 16:15:49 +0600
calling local_scan(); timeout=300
local_scan() returned 0 NULL
Writing spool header file
Size of headers = 412
LOG: MAIN
<= <> R=1XPqX9-000Isk-Ub U=mailnull P=local S=1193 T="Mail delivery failed: returning message to sender"
search_tidyup called
search_tidyup called
exec /usr/local/sbin/exim -d=0xfbb95cfd -Mc 1XPqYX-000IuK-2G
>>>>>>>>>>>>>>>> Exim pid=72684 terminating with rc=0 >>>>>>>>>>>>>>>>
Exim version 4.72 (FreeBSD 7.2) uid=26 gid=6 pid=72685 D=fbb95cfd
Writing spool header file
Probably Berkeley DB version 1.8x (native mode)
Support for: crypteq iconv() use_setclassresources PAM Perl Expand_dlfunc OpenSSL Content_Scanning DKIM Old_Demime
Lookups: lsearch wildlsearch nwildlsearch iplsearch cdb dbm dbmnz dnsdb dsearch mysql 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
OpenSSL compile-time version: OpenSSL 0.9.8e 23 Feb 2007
OpenSSL runtime version: OpenSSL 0.9.8e 23 Feb 2007
changed uid/gid: forcing real = effective
uid=0 gid=6 pid=72685
auxiliary group list: 6
seeking password data for user "mailnull": using cached result
getpwnam() succeeded uid=26 gid=26
configuration file is /usr/local/etc/exim/configure
log selectors = ffffffff 7fffffff
LOG: MAIN
cwd=/var/spool/exim 4 args: /usr/local/sbin/exim -d=0xfbb95cfd -Mc 1XPqYX-000IuK-2G
trusted user
admin user
skipping ACL configuration - not needed
seeking password data for user "mailnull": using cached result
getpwnam() succeeded uid=26 gid=26
set_process_info: 72685 delivering specified messages
set_process_info: 72685 delivering 1XPqYX-000IuK-2G
reading spool file 1XPqYX-000IuK-2G-H
user=mailnull uid=26 gid=6 sender=
sender_local=0 ident=mailnull
Non-recipients:
Empty Tree
---- End of tree ----
recipients_count=1
body_linecount=33 message_linecount=10
Delivery address list:
root@domen.ru
locking /var/spool/exim/db/retry.lockfile
locked /var/spool/exim/db/retry.lockfile
EXIM_DBOPEN(/var/spool/exim/db/retry)
returned from EXIM_DBOPEN
opened hints database /var/spool/exim/db/retry: flags=O_RDONLY
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
Considering: root@domen.ru
unique = root@domen.ru
dbfn_read: key=R:domen.ru
dbfn_read: key=R:root@domen.ru
dbfn_read: key=R:root@domen.ru:<>
no domain retry record
no address retry record
root@domen.ru: queued for routing
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
routing root@domen.ru
--------> kas30router router <--------
local_part=root domain=domen.ru
checking local_parts
search_open: passwd "NULL"
search_find: file="NULL"
key="root" partial=-1 affix=NULL starflags=0
LRU list:
internal_search_find: file="NULL"
type=passwd key="root"
database lookup required for root
seeking password data for user "root": cache not available
getpwnam() succeeded uid=0 gid=0
lookup yielded: *:0:0:Charlie &:/root:/bin/csh
root in "passwd;root : lsearch"? yes (matched "passwd;root")
checking "condition"
calling kas30router router
kas30router router called for root@domen.ru
domain = domen.ru
set transport kas30transport
queued for kas30transport transport: local_part = root
domain = domen.ru
errors_to=NULL
domain_data=NULL localpart_data=*:0:0:Charlie &:/root:/bin/csh
routed by kas30router router
envelope to: root@domen.ru
transport: kas30transport
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
After routing:
Local deliveries:
root@domen.ru
Remote deliveries:
Failed addresses:
Deferred addresses:
search_tidyup called
>>>>>>>>>>>>>>>> Local deliveries >>>>>>>>>>>>>>>>
--------> root@domen.ru <--------
locking /var/spool/exim/db/retry.lockfile
locked /var/spool/exim/db/retry.lockfile
EXIM_DBOPEN(/var/spool/exim/db/retry)
returned from EXIM_DBOPEN
opened hints database /var/spool/exim/db/retry: flags=O_RDONLY
dbfn_read: key=T:root@domen.ru
no retry record exists
search_tidyup called
changed uid/gid: local delivery to root <root@domen.ru> transport=kas30transport
uid=26 gid=6 pid=72686
auxiliary group list: 6
home=NULL current=/
set_process_info: 72686 delivering 1XPqYX-000IuK-2G to root using kas30transport
kas30transport transport entered
using command /usr/local/ap-mailfilter3/bin/kas-pipe
direct command:
argv[0] = /usr/local/ap-mailfilter3/bin/kas-pipe
direct command after expansion:
argv[0] = /usr/local/ap-mailfilter3/bin/kas-pipe
LMTP<< 220 kas30pipe.localhost LMTP Service ready
LMTP>> LHLO domen.ru
LMTP<< 250-kas30pipe.localhost Pleased to meet you
LMTP<< 250-ENHANCEDSTATUSCODES
LMTP<< 250-8BITMIME
LMTP<< 250 PIPELINING
LMTP>> MAIL FROM:<>
Size of headers = 285
LOG: MAIN
Completed QT=1m26s
end delivery of 1XPqX9-000Isk-Ub
search_tidyup called
search_tidyup called
>>>>>>>>>>>>>>>> Exim pid=72683 terminating with rc=0 >>>>>>>>>>>>>>>>
LMTP<< 250 2.1.0 Sender Ok
LMTP>> RCPT TO:<root@domen.ru>
LMTP<< 250 2.1.5 Recipient Ok
LMTP>> DATA
LMTP<< 354 3.3.0 Enter mail, end with <CRLF>.<CRLF>
LMTP>> writing message and terminating "."
writing data block fd=9 size=1240 timeout=300
LMTP<< 550 5.7.1 Message rejected (There was no valid recipients)
LMTP>> QUIT
LMTP<< 221 2.0.0 Good bye
kas30transport transport yields 1
search_tidyup called
kas30transport transport returned FAIL for root@domen.ru
post-process root@domen.ru (2)
LOG: MAIN
** root@domen.ru F=<> P=<> R=kas30router T=kas30transport: LMTP error after end of data: 550 5.7.1 Message rejected (There was no valid recipients)
>>>>>>>>>>>>>>>> deliveries are done >>>>>>>>>>>>>>>>
changed uid/gid: post-delivery tidying
uid=26 gid=6 pid=72685
auxiliary group list: 6
set_process_info: 72685 tidying up after delivering 1XPqYX-000IuK-2G
Processing retry items
Succeeded addresses:
Failed addresses:
Deferred addresses:
root@domen.ru: no retry items
end of retry processing
LOG: MAIN
Frozen (delivery error message)
delivery deferred: update_spool=1 header_rewritten=0
Writing spool header file
Size of headers = 412
end delivery of 1XPqYX-000IuK-2G
search_tidyup called
search_tidyup called
>>>>>>>>>>>>>>>> Exim pid=72685 terminating with rc=0 >>>>>>>>>>>>>>>>