Re: [exim] Decide what router to use according to the from f…

Startseite
Nachricht löschen
Nachricht beantworten
Autor: rblue
Datum:  
To: exim-users
Betreff: Re: [exim] Decide what router to use according to the from field

On 7/17/2014 2:20 PM, Evgeniy Berdnikov wrote:
> On Thu, Jul 17, 2014 at 01:59:53PM -0600, rblue wrote:
>> How can I debug this further? I tried to use exim -bh and I copied and
>> pasted a sample email message to the console. It looks like that acl
>> condition is always failing regardless of the from address.
> Use -d+acl option to debug acl, use -d+expand to see string expansions.
> Read man exim to find the list of debug options.


Thanks for these debugging options, they were really helpful. So the
router isn't being used because the condition is failing as expected,
and these are the debugging messages:

checking "condition"
expanding: NULL
    result: NULL
considering bool_lax: NULL
expanding: $acl_m_use_ses
    result:
expanding: 1
    result: 1
condition: eq{$acl_m_use_ses}{1}
    result: false
expanding: yes
    result: yes
skipping: result is not used
expanding: no
    result: no
expanding: ${if eq{$acl_m_use_ses}{1} {yes}{no}}
    result: no
considering bool_lax: no
condition: and{{bool_lax{NULL}}{bool_lax{${if eq{$acl_m_use_ses}{1} 
{yes}{no}}}}}
    result: false
expanding: ${if and{{bool_lax{NULL}}{bool_lax{${if eq{$acl_m_use_ses}{1} 
{yes}{no}}}}}}
    result:
send_via_ses router skipped: condition failure


I can't tell if $acl_m_use_ses is or not equal to 1. I assume it is due
to these lines:

expanding: $acl_m_use_ses
    result:
expanding: 1
    result: 1


but I'm unsure why this is resulting as false:

condition: eq{$acl_m_use_ses}{1}
    result: false


Any ideas?