Re: [exim] interface option in remote_smtp doesn't work

Etusivu
Poista viesti
Vastaa
Lähettäjä: manwe
Päiväys:  
Vastaanottaja: exim-users
Aihe: Re: [exim] interface option in remote_smtp doesn't work
Hello, thanks for answer.

=====================>8========
Date: Wed, 20 Dec 2006 23:09:01 +0000
From: "Peter Bowyer" <peter@???>

> - did you HUP or restart exim after making the config change?

    
    Of course, restarted even few times. 

    
> - can you run a debug delivery to the same address you used in the
> example above, to make sure the routers and transports are being used
> as expected?


=======8<======================

    I hope this is what you expected. yyyyyyyy.pl is my mail domain.


# exim -bt 'xxxxxxxx@???'
xxxxxxxx@???
router = dnslookup, transport = remote_smtp
host srv6.cyfronet.pl [149.156.2.19] MX=5
host srv5.cyfronet.pl [149.156.2.18] MX=8

# exim -d -v 'xxxxxxxx@???'
Exim version 4.62 uid=0 gid=0 pid=22077 D=fbb95cfd
Berkeley DB: Sleepycat Software: Berkeley DB 4.2.52: (December 3, 2003)
Support for: crypteq iconv() Perl OpenSSL
Lookups: lsearch wildlsearch nwildlsearch iplsearch cdb dbm dbmnz dnsdb dsearch
mysql passwd Authenticators: cram_md5 plaintext spa
Routers: accept dnslookup ipliteral manualroute queryprogram redirect
Transports: appendfile/maildir/mailstore autoreply pipe smtp
Fixed never_users: 0
Size of off_t: 4
changed uid/gid: forcing real = effective
uid=0 gid=0 pid=22077
auxiliary group list: <none>
configuration file is /etc/exim/exim.conf
log selectors = 00000ffc 00089001
cwd=/root 4 args: exim -d -v xxxxxxxx@???
trusted user
admin user
changed uid/gid: privilege not needed
uid=8 gid=12 pid=22077
auxiliary group list: <none>
finduser used cached passwd data for mail
originator: uid=0 gid=0 login=root name=root
sender address = root@???
set_process_info: 22077 accepting a local non-SMTP message from
<root@???> Sender: root@???
Recipients:
xxxxxxxx@???
search_tidyup called
>>Headers received:


rewrite_one_header: type=F:
From: root <root@???>
search_tidyup called
>>Headers after rewriting and local additions:

I Message-Id: <E1GxAoS-0005k5-Gx@???>
F From: root <root@???>
Date: Thu, 21 Dec 2006 00:25:29 +0100

Data file written for message 1GxAoS-0005k5-Gx
>>Generated Received: header line

P Received: from root by mail.yyyyyyyy.pl with local (Exim 4.62)
        (envelope-from <root@???>)
        id 1GxAoS-0005k5-Gx
        for xxxxxxxx@???; Thu, 21 Dec 2006 00:25:29 +0100
calling local_scan(); timeout=300
local_scan() returned 0 NULL
Writing spool header file
Size of headers = 288
LOG: MAIN
  <= root@??? U=root P=local S=289
search_tidyup called
exec /usr/sbin/exim -d=0xfbb95cfd -Mc 1GxAoS-0005k5-Gx
Exim version 4.62 uid=8 gid=12 pid=13794 D=fbb95cfd
Berkeley DB: Sleepycat Software: Berkeley DB 4.2.52: (December  3, 2003)
Support for: crypteq iconv() Perl OpenSSL
Lookups: lsearch wildlsearch nwildlsearch iplsearch cdb dbm dbmnz dnsdb dsearch
mysql passwd Authenticators: cram_md5 plaintext spa
Routers: accept dnslookup ipliteral manualroute queryprogram redirect
Transports: appendfile/maildir/mailstore autoreply pipe smtp
Fixed never_users: 0
Size of off_t: 4
changed uid/gid: forcing real = effective
  uid=0 gid=12 pid=13794
  auxiliary group list: <none>
search_tidyup called

>>>>>>>>>>>>>>>> Exim pid=22077 terminating with rc=0 >>>>>>>>>>>>>>>>

configuration file is /etc/exim/exim.conf
log selectors = 00000ffc 00089001
cwd=/var/spool/exim 4 args: /usr/sbin/exim -d=0xfbb95cfd -Mc 1GxAoS-0005k5-Gx
trusted user
admin user
skipping ACL configuration - not needed
finduser used cached passwd data for mail
set_process_info: 13794 delivering specified messages
set_process_info: 13794 delivering 1GxAoS-0005k5-Gx
reading spool file 1GxAoS-0005k5-Gx-H
user=root uid=0 gid=0 sender=root@???
sender_local=1 ident=root
Non-recipients:
Empty Tree
---- End of tree ----
recipients_count=1
body_linecount=0 message_linecount=7
Delivery address list:
xxxxxxxx@???
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: xxxxxxxx@???
unique = xxxxxxxx@???
dbfn_read: key=R:cyfronet.pl
dbfn_read: key=R:xxxxxxxx@???
no domain retry record
no address retry record
xxxxxxxx@???: queued for routing
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

routing xxxxxxxx@???
--------> dnslookup router <--------
local_part=michal.zajac domain=cyfronet.pl
checking domains
cyfronet.pl in "@ : @[] : yyyyyyyy.pl"? no (end of list)
search_open: mysql "NULL"
search_find: file="NULL"
key="SELECT domain FROM domains WHERE domain="cyfronet.pl" AND alias=''"
partial=-1 affix=NULL starflags=0 LRU list:
internal_search_find: file="NULL"
type=mysql key="SELECT domain FROM domains WHERE domain="cyfronet.pl" AND
alias=''" database lookup required for SELECT domain FROM domains WHERE
domain="cyfronet.pl" AND alias='' MYSQL query: SELECT domain FROM domains WHERE
domain="cyfronet.pl" AND alias='' MYSQL new connection: host=localhost port=0
socket=NULL database=mail user=mail MYSQL: no data found
lookup failed
cyfronet.pl in ""? no (end of list)
search_open: mysql "NULL"
cached open
search_find: file="NULL"
key="SELECT domain FROM domains WHERE domain="cyfronet.pl" AND alias!=''"
partial=-1 affix=NULL starflags=0 LRU list:
internal_search_find: file="NULL"
type=mysql key="SELECT domain FROM domains WHERE domain="cyfronet.pl" AND
alias!=''" database lookup required for SELECT domain FROM domains WHERE
domain="cyfronet.pl" AND alias!='' MYSQL query: SELECT domain FROM domains
WHERE domain="cyfronet.pl" AND alias!='' MYSQL using cached connection for
localhost/mail/[password] MYSQL: no data found
lookup failed
cyfronet.pl in ""? no (end of list)
cyfronet.pl in "! +local_domains : ! +mysql_local_domains : !
+mysql_alias_domains"? yes (end of list) calling dnslookup router
dnslookup router called for xxxxxxxx@???
domain = cyfronet.pl
DNS lookup of cyfronet.pl (MX) succeeded
DNS lookup of srv6.cyfronet.pl (A) succeeded
149.156.2.19 in "0.0.0.0 : 127.0.0.0/8"? no (end of list)
DNS lookup of srv5.cyfronet.pl (A) succeeded
149.156.2.18 in "0.0.0.0 : 127.0.0.0/8"? no (end of list)
fully qualified name = cyfronet.pl
host_find_bydns yield = HOST_FOUND (2); returned hosts:
srv6.cyfronet.pl 149.156.2.19 MX=5
srv5.cyfronet.pl 149.156.2.18 MX=8
set transport remote_smtp
queued for remote_smtp transport: local_part = michal.zajac
domain = cyfronet.pl
errors_to=NULL
domain_data=NULL localpart_data=NULL
routed by dnslookup router
envelope to: xxxxxxxx@???
transport: remote_smtp
host srv6.cyfronet.pl [149.156.2.19] MX=5
host srv5.cyfronet.pl [149.156.2.18] MX=8
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

After routing:
  Local deliveries:
  Remote deliveries:
    xxxxxxxx@???
  Failed addresses:
  Deferred addresses:
search_tidyup called
close MYSQL connection: localhost/mail/[password]

>>>>>>>>>>>>>>>> Remote deliveries >>>>>>>>>>>>>>>>

--------> xxxxxxxx@??? <--------
search_tidyup called
changed uid/gid: remote delivery to xxxxxxxx@??? with
transport=remote_smtp uid=8 gid=12 pid=2664
auxiliary group list: <none>
set_process_info: 2664 delivering 1GxAoS-0005k5-Gx using remote_smtp
remote_smtp transport entered
xxxxxxxx@???
cyfronet.pl in queue_smtp_domains? no (option unset)
checking status of srv6.cyfronet.pl
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:srv6.cyfronet.pl:149.156.2.19
dbfn_read: key=T:srv6.cyfronet.pl:149.156.2.19:1GxAoS-0005k5-Gx
no host retry record
no message retry record
srv6.cyfronet.pl [149.156.2.19] status = usable
149.156.2.19 in serialize_hosts? no (option unset)
delivering 1GxAoS-0005k5-Gx to srv6.cyfronet.pl [149.156.2.19]
(xxxxxxxx@???) set_process_info: 2664 delivering 1GxAoS-0005k5-Gx to
srv6.cyfronet.pl [149.156.2.19] (xxxxxxxx@???) set_process_info: 13794
delivering 1GxAoS-0005k5-Gx: waiting for a remote delivery subprocess to finish
selecting on subprocess pipes Connecting to srv6.cyfronet.pl [149.156.2.19]:25
from 80.53.26.124 ... connected waiting for data on socket
read response data: size=96
SMTP<< 220 srv6.cyf-kr.edu.pl ESMTP Sendmail 8.12.11.20060308/8.12.8; Thu, 21
Dec 2006 00:23:32 +0100 149.156.2.19 in hosts_avoid_esmtp? no (option unset)
SMTP>> EHLO mail.yyyyyyyy.pl

waiting for data on socket
read response data: size=106
SMTP<< 250-srv6.cyf-kr.edu.pl Hello drath.yyyyyyyy.pl [80.53.26.122], pleased
to meet you 250 ENHANCEDSTATUSCODES
149.156.2.19 in hosts_require_tls? no (option unset)
not using PIPELINING
149.156.2.19 in hosts_require_auth? no (option unset)
SMTP>> MAIL FROM:<root@???>

waiting for data on socket
read response data: size=65
SMTP<< 550 5.7.1 Rejected: 80.53.26.122 listed at sbl-xbl.spamhaus.org
ok=0 send_quit=1 send_rset=1 continue_more=0 yield=0 first_address is not NULL
SMTP>> QUIT

set_process_info: 2664 delivering 1GxAoS-0005k5-Gx: just tried
srv6.cyfronet.pl [149.156.2.19] for xxxxxxxx@???: result OK Leaving
remote_smtp transport set_process_info: 2664 delivering 1GxAoS-0005k5-Gx (just
run remote_smtp for xxxxxxxx@??? in subprocess) search_tidyup called
reading pipe for subprocess 2664 (not ended)
read() yielded 192
Z0 item read
remote delivery process 2664 ended
set_process_info: 13794 delivering 1GxAoS-0005k5-Gx
post-process xxxxxxxx@??? (2)
LOG: MAIN
** xxxxxxxx@??? R=dnslookup T=remote_smtp: SMTP error from remote
mail server after MAIL FROM:<root@???>: host srv6.cyfronet.pl
[149.156.2.19]: 550 5.7.1 Rejected: 80.53.26.122 listed at sbl-xbl.spamhaus.org
>>>>>>>>>>>>>>>> deliveries are done >>>>>>>>>>>>>>>>

changed uid/gid: post-delivery tidying
uid=8 gid=12 pid=13794
auxiliary group list: <none>
set_process_info: 13794 tidying up after delivering 1GxAoS-0005k5-Gx
Processing retry items
Succeeded addresses:
Failed addresses:
xxxxxxxx@???: no retry items
Deferred addresses:
end of retry processing
processing failed address xxxxxxxx@???
exec /usr/sbin/exim -d=0xfbb95cfd -t -oem -oi -f <> -E1GxAoS-0005k5-Gx
sending error message to: root@???
writing data block fd=8 size=318 timeout=0
Exim version 4.62 uid=8 gid=12 pid=9219 D=fbb95cfd
Berkeley DB: Sleepycat Software: Berkeley DB 4.2.52: (December 3, 2003)
Support for: crypteq iconv() Perl OpenSSL
Lookups: lsearch wildlsearch nwildlsearch iplsearch cdb dbm dbmnz dnsdb dsearch
mysql passwd Authenticators: cram_md5 plaintext spa
Routers: accept dnslookup ipliteral manualroute queryprogram redirect
Transports: appendfile/maildir/mailstore autoreply pipe smtp
Fixed never_users: 0
Size of off_t: 4
changed uid/gid: forcing real = effective
uid=0 gid=12 pid=9219
auxiliary group list: <none>
configuration file is /etc/exim/exim.conf
log selectors = 00000ffc 00089001
cwd=/var/spool/exim 8 args: /usr/sbin/exim -d=0xfbb95cfd -t -oem -oi -f <>
-E1GxAoS-0005k5-Gx trusted user
admin user
changed uid/gid: privilege not needed
uid=8 gid=12 pid=9219
auxiliary group list: <none>
finduser used cached passwd data for mail
originator: uid=8 gid=12 login=mail name=
sender address =
set_process_info: 9219 accepting a local non-SMTP message from <>
Sender:
search_tidyup called
>>Headers received:

X-Failed-Recipients: xxxxxxxx@???
Auto-Submitted: auto-replied
From: Mail Delivery System <Mailer-Daemon@???>
To: root@???
Subject: Mail delivery failed: returning message to sender

.... more about delivering mail from mailer-deamon, about
8 pages of text.

-- 
Greets, Michal 'manwe' Z.                       /\/\
GCS d- s+: a-- C++ UL++ P+ L+++$  E--- W+++$  =(~.~=)
N- o K w++ O- !M-- !V PS PE Y+ PGP t+@ 5         |  \
X++ R !tv b++ Dl D+ G+ e>+++ h*>+ r++ z*>**      (__)_)


----------------------------------------------------------------------
Jestes kierowca? To poczytaj! >>> http://link.interia.pl/f199e