Re: [Exim] Shadow Transport glitch

Góra strony
Delete this message
Reply to this message
Autor: Odhiambo G. Washington
Data:  
Dla: exim-users
Temat: Re: [Exim] Shadow Transport glitch
--
* Philip Hazel <ph10@???> [20021120 13:27]: wrote:
> On Tue, 19 Nov 2002, Odhiambo G. Washington wrote:
>
> > I have the following added to local_delivery transport
> >
> > shadow_transport = backup_delivery
> > shadow_condition = ${lookup{$local_part}lsearch{/usr/local/etc/exim/mail_backup_users}{1}{0}}
> >
> >
> > Problem 1: when the condition is set, the shadow transport fails to run.
>
> Debug output?



Attached.



> > Problem 2: the "file = " is not what I want. I'd like a substr value that
> >            expands to "2002-11"

>
> > file = /home2/Mail-backup/${substr_0_10:$tod_log}/${local_part}
>
> change 10 to 7


Thank you. I really need an easier way to understand this stuff ;-)




-Wash

--
Odhiambo Washington   <wash@???>  "The box said 'Requires
Wananchi Online Ltd.  www.wananchi.com      Windows 95, NT, or better,'
Tel: +254 2 313985-9  +254 2 313922         so I installed FreeBSD."
GSM: +254 72 743223   +254 733 744121       This sig is McQ!  :-)



Be a better psychiatrist and the world will beat a psychopath to your
door.
--
[root@ns2]#exim -d -bt wash@???
Exim version 4.10.11 uid=0 gid=0 pid=62183 L=834cd8 D=f7f7577f
Probably Berkeley DB version 1.8x (native mode)
Support for: Perl OpenSSL
Authenticators: cram_md5 plaintext spa
Routers: accept dnslookup ipliteral iplookup manualroute queryprogram redirect
Transports: appendfile/maildir/mailstore/mbx autoreply pipe smtp
changed uid/gid: forcing real = effective
uid=0 gid=0
auxiliary group list: 0
trusted user
admin user
user name "Charlie Root" extracted from gecos field "Charlie Root"
originator: uid=0 gid=0 login=root name=Charlie Root
sender address = root@???
Address testing: uid=0 gid=6 euid=0 egid=6
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

Testing wash@???
address match: subject=wash@??? pattern=^(beiersdorf)@wananchi\.com$
wash@??? in "^(beiersdorf)@wananchi\.com$"? no (end of list)
address match: subject=wash@??? pattern=^(lantech)@wananchi\.com$
wash@??? in "^(lantech)@wananchi\.com$"? no (end of list)
address match: subject=wash@??? pattern=^(virtualcity)@wananchi\.com$
wash@??? in "^(virtualcity)@wananchi\.com$"? no (end of list)
address match: subject=wash@??? pattern=^(hotgossip)@wananchi\.com$
wash@??? in "^(hotgossip)@wananchi\.com$"? no (end of list)
address match: subject=wash@??? pattern=^(mareba)@wananchi\.com$
wash@??? in "^(mareba)@wananchi\.com$"? no (end of list)
address match: subject=wash@??? pattern=^(fkfin)@wananchi\.com$
wash@??? in "^(fkfin)@wananchi\.com$"? no (end of list)
address match: subject=wash@??? pattern=^(postmaster)@kenpoly\.com$
wash@??? in "^(postmaster)@kenpoly\.com$"? no (end of list)
address match: subject=wash@??? pattern=^(.*)@wtrl\.or\.ke$
wash@??? in "^(.*)@wtrl\.or\.ke$"? no (end of list)
address match: subject=wash@??? pattern=^(gespkenya)@wananchi\.com$
wash@??? in "^(gespkenya)@wananchi\.com$"? no (end of list)
address match: subject=wash@??? pattern=^(orchidpharm)@wananchi\.com$
wash@??? in "^(orchidpharm)@wananchi\.com$"? no (end of list)
address match: subject=wash@??? pattern=^(akiragu)@wananchi\.com$
wash@??? in "^(akiragu)@wananchi\.com$"? no (end of list)
address match: subject=wash@??? pattern=^(loita)@wananchi\.com$
wash@??? in "^(loita)@wananchi\.com$"? no (end of list)
address match: subject=wash@??? pattern=^([^\*]+)\*(.*)@(.*)$
wash@??? in "^([^\*]+)\*(.*)@(.*)$"? no (end of list)
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

Considering wash@???
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

routing wash@???
--------> lookuphost router <--------
local_part=wash domain=wananchi.com
checking domains
search_open: mysql "NULL"
search_find: file="NULL"
key="select domain_name from domain where domain_name = 'wananchi.com' limit 1" partial=-1
LRU list:
internal_search_find: file="NULL"
type=mysql key="select domain_name from domain where domain_name = 'wananchi.com' limit 1"
database lookup required for select domain_name from domain where domain_name = 'wananchi.com' limit 1
MYSQL query: select domain_name from domain where domain_name = 'wananchi.com' limit 1
MYSQL new connection: host=localhost port=0 socket=NULL database=virtualemail user=wolvmail
MYSQL: no data found
lookup failed
search_open: mysql "NULL"
cached open
search_find: file="NULL"
key="select alias from domain_alias where alias = 'wananchi.com' limit 1" partial=-1
LRU list:
internal_search_find: file="NULL"
type=mysql key="select alias from domain_alias where alias = 'wananchi.com' limit 1"
database lookup required for select alias from domain_alias where alias = 'wananchi.com' limit 1
MYSQL query: select alias from domain_alias where alias = 'wananchi.com' limit 1
MYSQL using cached connection for localhost/virtualemail/wolvmail
MYSQL: no data found
lookup failed
wananchi.com in "@ : @[] : ns2.wananchi.com : mail.wananchi.com : pop.wananchi.com: smtp.wananchi.com : wananchi.com : wananchi.info : wananchi.biz : wananchi.co.ke : wanainchi.com : localhost : lsearch;/usr/local/etc/exim/relay : : "? yes (matched "wananchi.com")
wananchi.com in "! +local_domains"? no (matched "! +local_domains")
lookuphost router skipped: domains mismatch
--------> literal router <--------
local_part=wash domain=wananchi.com
checking domains
search_open: mysql "NULL"
cached open
search_find: file="NULL"
key="select domain_name from domain where domain_name = 'wananchi.com' limit 1" partial=-1
LRU list:
internal_search_find: file="NULL"
type=mysql key="select domain_name from domain where domain_name = 'wananchi.com' limit 1"
database lookup required for select domain_name from domain where domain_name = 'wananchi.com' limit 1
MYSQL query: select domain_name from domain where domain_name = 'wananchi.com' limit 1
MYSQL using cached connection for localhost/virtualemail/wolvmail
MYSQL: no data found
lookup failed
search_open: mysql "NULL"
cached open
search_find: file="NULL"
key="select alias from domain_alias where alias = 'wananchi.com' limit 1" partial=-1
LRU list:
internal_search_find: file="NULL"
type=mysql key="select alias from domain_alias where alias = 'wananchi.com' limit 1"
database lookup required for select alias from domain_alias where alias = 'wananchi.com' limit 1
MYSQL query: select alias from domain_alias where alias = 'wananchi.com' limit 1
MYSQL using cached connection for localhost/virtualemail/wolvmail
MYSQL: no data found
lookup failed
wananchi.com in "@ : @[] : ns2.wananchi.com : mail.wananchi.com : pop.wananchi.com: smtp.wananchi.com : wananchi.com : wananchi.info : wananchi.biz : wananchi.co.ke : wanainchi.com : localhost : lsearch;/usr/local/etc/exim/relay : : "? yes (matched "wananchi.com")
wananchi.com in "! +local_domains"? no (matched "! +local_domains")
literal router skipped: domains mismatch
--------> mm21_main_director router <--------
local_part=wash domain=wananchi.com
checking require_files
file check: /usr/local/mailman/lists/${lc:$local_part}/config.pck
expanded file: /usr/local/mailman/lists/wash/config.pck
stat() yielded -1
errno = 2
mm21_main_director router skipped: file check
--------> mm21_director router <--------
local_part=wash domain=wananchi.com
mm21_director router skipped: suffix mismatch
--------> artificial_route router <--------
local_part=wash domain=wananchi.com
checking domains
search_open: mysql "NULL"
cached open
search_find: file="NULL"
key="select domain_name from domain where domain_name = 'wananchi.com' limit 1" partial=-1
LRU list:
internal_search_find: file="NULL"
type=mysql key="select domain_name from domain where domain_name = 'wananchi.com' limit 1"
database lookup required for select domain_name from domain where domain_name = 'wananchi.com' limit 1
MYSQL query: select domain_name from domain where domain_name = 'wananchi.com' limit 1
MYSQL using cached connection for localhost/virtualemail/wolvmail
MYSQL: no data found
lookup failed
search_open: mysql "NULL"
cached open
search_find: file="NULL"
key="select alias from domain_alias where alias = 'wananchi.com' limit 1" partial=-1
LRU list:
internal_search_find: file="NULL"
type=mysql key="select alias from domain_alias where alias = 'wananchi.com' limit 1"
database lookup required for select alias from domain_alias where alias = 'wananchi.com' limit 1
MYSQL query: select alias from domain_alias where alias = 'wananchi.com' limit 1
MYSQL using cached connection for localhost/virtualemail/wolvmail
MYSQL: no data found
lookup failed
wananchi.com in "@ : @[] : ns2.wananchi.com : mail.wananchi.com : pop.wananchi.com: smtp.wananchi.com : wananchi.com : wananchi.info : wananchi.biz : wananchi.co.ke : wanainchi.com : localhost : lsearch;/usr/local/etc/exim/relay : : "? yes (matched "wananchi.com")
wananchi.com in "! +local_domains"? no (matched "! +local_domains")
artificial_route router skipped: domains mismatch
--------> virtual_domains router <--------
local_part=wash domain=wananchi.com
calling virtual_domains router
rda_interpret (string): ${lookup{$local_part@$domain}lsearch*@{/usr/local/etc/exim/virtual}}
search_open: lsearch "/usr/local/etc/exim/virtual"
search_find: file="/usr/local/etc/exim/virtual"
key="wash@???" partial=3071
LRU list:
8/usr/local/etc/exim/virtual
End
internal_search_find: file="/usr/local/etc/exim/virtual"
type=lsearch key="wash@???"
file lookup required for wash@???
in /usr/local/etc/exim/virtual
lookup failed
trying default match *@wananchi.com
internal_search_find: file="/usr/local/etc/exim/virtual"
type=lsearch key="*@wananchi.com"
file lookup required for *@wananchi.com
in /usr/local/etc/exim/virtual
lookup failed
trying to match *
internal_search_find: file="/usr/local/etc/exim/virtual"
type=lsearch key="*"
file lookup required for *
in /usr/local/etc/exim/virtual
lookup failed
expanded:
file is not a filter file
parse_forward_list:
virtual_domains router declined for wash@???
--------> virtual_aliases router <--------
local_part=wash domain=wananchi.com
calling virtual_aliases router
rda_interpret (string): ${lookup mysql{select remote_name from forwarder left join domain_alias on domain_alias.domain_name = forwarder.domain_name where local_part = '$local_part' and (forwarder.domain_name = '$domain' or alias = '$domain')}}
search_open: mysql "NULL"
cached open
search_find: file="NULL"
key="select remote_name from forwarder left join domain_alias on domain_alias.domain_name = forwarder.domain_name where local_part = 'wash' and (forwarder.domain_name = 'wananchi.com' or alias = 'wananchi.com')" partial=-1
LRU list:
8/usr/local/etc/exim/virtual
End
internal_search_find: file="NULL"
type=mysql key="select remote_name from forwarder left join domain_alias on domain_alias.domain_name = forwarder.domain_name where local_part = 'wash' and (forwarder.domain_name = 'wananchi.com' or alias = 'wananchi.com')"
database lookup required for select remote_name from forwarder left join domain_alias on domain_alias.domain_name = forwarder.domain_name where local_part = 'wash' and (forwarder.domain_name = 'wananchi.com' or alias = 'wananchi.com')
MYSQL query: select remote_name from forwarder left join domain_alias on domain_alias.domain_name = forwarder.domain_name where local_part = 'wash' and (forwarder.domain_name = 'wananchi.com' or alias = 'wananchi.com')
MYSQL using cached connection for localhost/virtualemail/wolvmail
MYSQL: no data found
lookup failed
expanded:
file is not a filter file
parse_forward_list:
virtual_aliases router declined for wash@???
--------> domainplus_user router <--------
local_part=wash domain=wananchi.com
checking domains
search_open: mysql "NULL"
cached open
search_find: file="NULL"
key="select domain_name from domain where domain_name = 'wananchi.com'" partial=-1
LRU list:
8/usr/local/etc/exim/virtual
End
internal_search_find: file="NULL"
type=mysql key="select domain_name from domain where domain_name = 'wananchi.com'"
database lookup required for select domain_name from domain where domain_name = 'wananchi.com'
MYSQL query: select domain_name from domain where domain_name = 'wananchi.com'
MYSQL using cached connection for localhost/virtualemail/wolvmail
MYSQL: no data found
lookup failed
wananchi.com in ""? no (end of list)
domainplus_user router skipped: domains mismatch
--------> virtual_defaultuser router <--------
local_part=wash domain=wananchi.com
calling virtual_defaultuser router
rda_interpret (string): ${lookup mysql{select remote_name from forwarder left join domain_alias on domain_alias.domain_name = forwarder.domain_name where local_part = '_default_' and (forwarder.domain_name = '$domain' or domain_alias.alias = '$domain')}}
search_open: mysql "NULL"
cached open
search_find: file="NULL"
key="select remote_name from forwarder left join domain_alias on domain_alias.domain_name = forwarder.domain_name where local_part = '_default_' and (forwarder.domain_name = 'wananchi.com' or domain_alias.alias = 'wananchi.com')" partial=-1
LRU list:
8/usr/local/etc/exim/virtual
End
internal_search_find: file="NULL"
type=mysql key="select remote_name from forwarder left join domain_alias on domain_alias.domain_name = forwarder.domain_name where local_part = '_default_' and (forwarder.domain_name = 'wananchi.com' or domain_alias.alias = 'wananchi.com')"
database lookup required for select remote_name from forwarder left join domain_alias on domain_alias.domain_name = forwarder.domain_name where local_part = '_default_' and (forwarder.domain_name = 'wananchi.com' or domain_alias.alias = 'wananchi.com')
MYSQL query: select remote_name from forwarder left join domain_alias on domain_alias.domain_name = forwarder.domain_name where local_part = '_default_' and (forwarder.domain_name = 'wananchi.com' or domain_alias.alias = 'wananchi.com')
MYSQL using cached connection for localhost/virtualemail/wolvmail
MYSQL: no data found
lookup failed
expanded:
file is not a filter file
parse_forward_list:
virtual_defaultuser router declined for wash@???
--------> system_aliases router <--------
local_part=wash domain=wananchi.com
calling system_aliases router
rda_interpret (string): ${expand:${lookup{$local_part}lsearch{/etc/mail/aliases}}}
search_open: lsearch "/etc/mail/aliases"
search_find: file="/etc/mail/aliases"
key="wash" partial=-1
LRU list:
8/etc/mail/aliases
8/usr/local/etc/exim/virtual
End
internal_search_find: file="/etc/mail/aliases"
type=lsearch key="wash"
file lookup required for wash
in /etc/mail/aliases
lookup failed
expanded:
file is not a filter file
parse_forward_list:
system_aliases router declined for wash@???
--------> userforward router <--------
local_part=wash domain=wananchi.com
checking for local user
checking "condition"
userforward router skipped: condition failure
--------> maildiruser router <--------
local_part=wash domain=wananchi.com
checking local_parts
search_open: lsearch "/usr/local/etc/exim/maildir-users"
search_find: file="/usr/local/etc/exim/maildir-users"
key="wash" partial=-1
LRU list:
8/usr/local/etc/exim/maildir-users
8/etc/mail/aliases
8/usr/local/etc/exim/virtual
End
internal_search_find: file="/usr/local/etc/exim/maildir-users"
type=lsearch key="wash"
file lookup required for wash
in /usr/local/etc/exim/maildir-users
lookup failed
wash in "lsearch;/usr/local/etc/exim/maildir-users"? no (end of list)
maildiruser router skipped: local_parts mismatch
--------> procmail router <--------
local_part=wash domain=wananchi.com
checking for local user
checking "condition"
search_open: lsearch "/usr/local/etc/exim/spamcheck_users"
search_find: file="/usr/local/etc/exim/spamcheck_users"
key="wash" partial=-1
LRU list:
8/usr/local/etc/exim/spamcheck_users
8/usr/local/etc/exim/maildir-users
8/etc/mail/aliases
8/usr/local/etc/exim/virtual
End
internal_search_find: file="/usr/local/etc/exim/spamcheck_users"
type=lsearch key="wash"
file lookup required for wash
in /usr/local/etc/exim/spamcheck_users
lookup failed
procmail router skipped: condition failure
--------> localuser router <--------
local_part=wash domain=wananchi.com
checking for local user
calling localuser router
localuser router called for wash@???
domain = wananchi.com
set transport local_delivery
queued for local_delivery transport: local_part = wash
domain = wananchi.com
errors_to=NULL
domain_data=NULL localpart_data=NULL
routed by localuser router
envelope to: wash@???
transport: local_delivery
wash@???
router = localuser, transport = local_delivery
search_tidyup called
close MYSQL connection: localhost/virtualemail/wolvmail
>>>>>>>>>>>>>>>> Exim pid=62183 terminating with rc=0 >>>>>>>>>>>>>>>>

[root@ns2]#exit
exit

Script done on Wed Nov 20 18:46:02 2002
--