Цитата:
полный вывод дебага от этого роутера
вот:
[more]
14:48:42 5015 --------> myfilter router <--------
14:48:42 5015 local_part=sss domain=sender.com
14:48:42 5015 checking senders
14:48:42 5015 address match: subject= pattern=^.*-request@.*
14:48:42 5015 address match: subject= pattern=^owner-.*@.*
14:48:42 5015 address match: subject= pattern=^postmaster@.*
14:48:42 5015 address match: subject= pattern=^listmaster@.*
14:48:42 5015 address match: subject= pattern=^mailer-daemon@.*! ^root@.*
14:48:42 5015 in " ! ^.*-request@.*:! ^owner-.*@.*:! ^postmaster@.*:! ^listmaster@.*:! ^mailer-daemon@.*! ^root@.*"? yes (end of list)
14:48:42 5015 checking "condition"
14:48:42 5015 expanding: $sender_host_address
14:48:42 5015 result: 555.23.183.1
14:48:42 5015 expanding: localhost : 192.168.1.74 : 192.168.1.5
14:48:42 5015 result: localhost : 192.168.1.74 : 192.168.1.5
14:48:42 5015 expanding: $header_X-guard:
14:48:42 5015 result:
14:48:42 5015 expanding:
14:48:42 5015 result:
14:48:42 5015 expanding: $local_part
14:48:42 5015 result: sss
14:48:42 5015 expanding: sss : it : boss : chief : info
14:48:42 5015 result: sss : it : boss : chief : info
14:48:42 5015 expanding: $domain
14:48:42 5015 result:
14:48:42 5015 skipping: result is not used
14:48:42 5015 expanding: k.ru : k.com.ru
14:48:42 5015 result: k.ru : k.com.ru
14:48:42 5015 skipping: result is not used
14:48:42 5015 condition: and{{!or{{match{$sender_host_address}{localhost : 192.168.1.74 : 192.168.1.5}}{!eq {$header_X-guard:}{}}}}{!and{{match{$local_part}{sss : it : boss : chief : info}}{match{$domain}{k.ru : k.com.ru}}}}}
14:48:42 5015 result: true
14:48:42 5015 expanding: 1
14:48:42 5015 result: 1
14:48:42 5015 expanding: 0
14:48:42 5015 result: 0
14:48:42 5015 skipping: result is not used
14:48:42 5015 expanding: ${if and{{!or{{match{$sender_host_address}{localhost : 192.168.1.74 : 192.168.1.5}}{!eq {$header_X-guard:}{}}}}{!and{{match{$local_part}{sss : it : boss : chief : info}}{match{$domain}{k.ru : k.com.ru}}}}}{1}{0}}
14:48:42 5015 result: 1
14:48:42 5015 calling myfilter router
[/more]
У тебя "N" как обозначается? Если "n" заменить на "пусто", то можно с ним и сравнивать...