[exim-dev] [Bug 618] New: String expansions don`t work in l…

Top Page
Delete this message
Reply to this message
Author: Andrew Shirrayev
Date:  
To: exim-dev
New-Topics: [exim-dev] [Bug 618] String expansions don`t work in local_part_suffix/prefix
Subject: [exim-dev] [Bug 618] New: String expansions don`t work in local_part_suffix/prefix
------- You are receiving this mail because: -------
You are on the CC list for the bug.

http://bugs.exim.org/show_bug.cgi?id=618
           Summary: String expansions don`t work in local_part_suffix/prefix
           Product: Exim
           Version: 4.63
          Platform: Other
        OS/Version: Windows
            Status: NEW
          Severity: bug
          Priority: medium
         Component: Routing
        AssignedTo: ph10@???
        ReportedBy: andrews@???
                CC: exim-dev@???



simple exim config with two equivalent routers
#----------------------------------
qualify_domain = mydomain.com
localpartlist aliases = joe:sam:tom

begin routers

router1:
driver = accept
local_parts = +aliases
local_part_suffix = ${sg{-real}{}{}}
transport = local_delivery1

router2:
driver = accept
local_parts = +aliases
local_part_suffix = -real
transport = local_delivery2

begin transports

local_delivery1:
driver = appendfile
file = /tmp/${local_part}1

local_delivery2:
driver = appendfile
file = /tmp/${local_part}2
#----------------------------------------------





local_part_suffix in router1 and router2 -- coincide
#========
$ exim4 -be '${sg{-real}{}{}}'
-real
#========







result of "exim -bt joe-real"
#==========================================
[SKIPED]
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

Testing joe-real@???
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

Considering joe-real@???
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

routing joe-real@???
--------> router1 router <--------
local_part=joe-real domain=mydomain.com
router1 router skipped: suffix mismatch
--------> router2 router <--------
local_part=joe-real domain=mydomain.com
stripped suffix -real
checking local_parts
joe in "joe:sam:tom"? yes (matched "joe")
joe in "+aliases"? yes (matched "+aliases")
calling router2 router
router2 router called for joe-real@???
domain = mydomain.com
[SKIPED]
#==========================================

router1 skipped joe-real, router2 accept joe-real...


--
Configure bugmail: http://bugs.exim.org/userprefs.cgi?tab=email