Back on my won't-stip-suffix problem.
Here's the director from the config :-
cyrus:
driver = smartuser
suffix = "+*"
suffix_optional=true
domains = post.thorcom.com
local_parts = lsearch;/etc/exim/cyrus
transport = cyrus_pipe
user=cyrus
group=mail
It's the first director in the file. post.thorcom.com is correctly
identified as local.
The file /etc/exim/cyrus contains one line :-
pbtest
Now, if I call this config with the address 'pbtest' I get this :-
===================
# /usr/exim/bin/exim -bt -d9 -C configure.test
Exim version 2.04 debug level 9 uid=0 gid=0
probably Berkeley DB version 1.8x (native mode)
Address testing: uid=0 gid=0 euid=0 egid=0
> pbtest
Testing pbtest@???
address pbtest@???
local_part=pbtest domain=post.thorcom.com
domain is local
>>>>>>>>>>>>>>>>>>>>>>>>
directing pbtest@???
search_open: lsearch "/etc/exim/cyrus"
search_find: file="/etc/exim/cyrus"
type=lsearch key="pbtest" partial=-1
internal_search_find: file="/etc/exim/cyrus"
type=lsearch key="pbtest"
file lookup required for pbtest
in /etc/exim/cyrus
lookup yielded:
calling cyrus director
cyrus director called for pbtest@???
queued for cyrus_pipe transport: local_part=pbtest domain=post.thorcom.com
cyrus director succeeded for pbtest
transport: cyrus_pipe
pbtest@???
deliver to pbtest in domain post.thorcom.com
director = cyrus, transport = cyrus_pipe
=======================
All OK so far. But if I add a 'suffix' to the address and use 'pbtest+a' it
does this :-
=====================
> pbtest+a
Testing pbtest+a@???
address pbtest+a@???
local_part=pbtest+a domain=post.thorcom.com
domain is local
>>>>>>>>>>>>>>>>>>>>>>>>
directing pbtest+a@???
search_open: lsearch "/etc/exim/cyrus"
cached
search_find: file="/etc/exim/cyrus"
type=lsearch key="pbtest+a" partial=-1
internal_search_find: file="/etc/exim/cyrus"
type=lsearch key="pbtest+a"
file lookup required for pbtest+a
in /etc/exim/cyrus
lookup failed
cyrus director skipped: local part mismatch
[.... other directors, all failing ...]
calling localuser director
localuser director failed for pbtest+a: no such user
pbtest+a@??? is undeliverable:
unknown local-part "pbtest+a" in domain "post.thorcom.com"
========================
Note the absence of 'stripped suffix +a' which is what I'd expect to see -
and what Peter H sees in his case. So it's looking up the whole thing, not
just the prefix.
Any suggestions, anyone?
Thanks
Peter
--
*** Exim information can be found at
http://www.exim.org/ ***