Hi !
Here is my problem : I want to be able to force failure for some users
... I have some aliases files, formatted like this :
name: alias
When I want to force a failure, I put
name: :fail:
But in my configuration, exim writes the mail into a ' :fail: ' file
(file's named :fail:) ...
Here is my configuration for director :
virtual_localusers:
domains = "lsearch;/usr/local/exim/etc/local_domains"
driver = aliasfile
transport = virtual_localdelivery
file = /usr/local/exim/etc/$domain.users
search_type = lsearch*
And then a debug session for sensi@??? (inside the file
'lebac.net.users', I wrote
sensi: :fail:)
Any idea so that exim fails the delivery and don't create anymore a
:fail: file ?
Thank's in advance !
Georges
Exim version 3.22 debug level 9 uid=0 gid=0
Berkeley DB: Sleepycat Software: DB 2.4.14: (6/2/98)
Caller is an admin user
Caller is a trusted user
originator: uid=0 gid=0 login=root name=Root
sender address = root@???
Address testing: uid=0 gid=0 euid=1500 egid=1500
>>>>>>>>>>>>>>>>>>>>>>>>
Testing sensi@???
sensi@??? in root@???? no (end of list)
sensi@??? in arnould@???? no (end of list)
lebac.net in percent_hack_domains? no (end of list)
address sensi@???
local_part=sensi domain=lebac.net
domain is local
>>>>>>>>>>>>>>>>>>>>>>>>
directing sensi@???
calling system_aliases director
search_open: lsearch "/usr/local/exim/etc/local_domains"
search_find: file="/usr/local/exim/etc/local_domains"
key="lebac.net" partial=-1
LRU list:
7/usr/local/exim/etc/local_domains
End
internal_search_find: file="/usr/local/exim/etc/local_domains"
type=lsearch key="lebac.net"
file lookup required for lebac.net
in /usr/local/exim/etc/local_domains
lookup yielded:
system_aliases director skipped: condition failure
calling userforward director
search_open: lsearch "/usr/local/exim/etc/local_domains"
cached open
search_find: file="/usr/local/exim/etc/local_domains"
key="lebac.net" partial=-1
LRU list:
7/usr/local/exim/etc/local_domains
End
internal_search_find: file="/usr/local/exim/etc/local_domains"
type=lsearch key="lebac.net"
cached data used for lookup of lebac.net
in /usr/local/exim/etc/local_domains
lookup yielded:
userforward director skipped: condition failure
calling localuser director
localuser director declined for sensi: no such user
search_open: lsearch "/usr/local/exim/etc/local_domains"
cached open
search_find: file="/usr/local/exim/etc/local_domains"
key="lebac.net" partial=-1
LRU list:
7/usr/local/exim/etc/local_domains
End
internal_search_find: file="/usr/local/exim/etc/local_domains"
type=lsearch key="lebac.net"
cached data used for lookup of lebac.net
in /usr/local/exim/etc/local_domains
lookup yielded:
lebac.net in "lsearch;/usr/local/exim/etc/local_domains"? yes (matched
lsearch;/usr/local/exim/etc/local_domains)
calling virtual_aliases director
df_lookup entered: search type = lsearch
virtual_aliases director: lsearch key=sensi
file="/usr/local/exim/etc/lebac.net.aliases"
search_open: lsearch "/usr/local/exim/etc/lebac.net.aliases"
search_find: file="/usr/local/exim/etc/lebac.net.aliases"
key="sensi" partial=-1
LRU list:
7/usr/local/exim/etc/lebac.net.aliases
7/usr/local/exim/etc/local_domains
End
internal_search_find: file="/usr/local/exim/etc/lebac.net.aliases"
type=lsearch key="sensi"
file lookup required for sensi
in /usr/local/exim/etc/lebac.net.aliases
lookup failed
virtual_aliases director declined for sensi:
search_open: lsearch "/usr/local/exim/etc/local_domains"
cached open
search_find: file="/usr/local/exim/etc/local_domains"
key="lebac.net" partial=-1
LRU list:
7/usr/local/exim/etc/local_domains
7/usr/local/exim/etc/lebac.net.aliases
End
internal_search_find: file="/usr/local/exim/etc/local_domains"
type=lsearch key="lebac.net"
cached data used for lookup of lebac.net
in /usr/local/exim/etc/local_domains
lookup yielded:
lebac.net in "lsearch;/usr/local/exim/etc/local_domains"? yes (matched
lsearch;/usr/local/exim/etc/local_domains)
calling virtual_localusers director
df_lookup entered: search type = lsearch
virtual_localusers director: lsearch* key=sensi
file="/usr/local/exim/etc/lebac.net.users"
search_open: lsearch "/usr/local/exim/etc/lebac.net.users"
search_find: file="/usr/local/exim/etc/lebac.net.users"
key="sensi" partial=1023
LRU list:
7/usr/local/exim/etc/lebac.net.users
7/usr/local/exim/etc/local_domains
7/usr/local/exim/etc/lebac.net.aliases
End
internal_search_find: file="/usr/local/exim/etc/lebac.net.users"
type=lsearch key="sensi"
file lookup required for sensi
in /usr/local/exim/etc/lebac.net.users
lookup yielded: :fail:
queued for virtual_localdelivery transport: local_part=sensi
domain=lebac.net
errors_to=NULL
domain_data= local_part_data=NULL
virtual_localusers director succeeded for sensi
search_tidyup called
sensi@???
deliver to sensi in domain lebac.net
director = virtual_localusers, transport = virtual_localdelivery