нет.. все равно ничего не понимаю..
pcretest не жалуется на ситаксис - типа все ок
но заданный шаблон не работает.. пробую самое примитивное:/^To: support@/ WARN some errors
при этом ок - ожидаемый результат достигнут:
Aug 11 09:11:33 test-shaggy postfix/pickup[5643]: D10C1481CE: uid=0 from=<root>
Aug 11 09:11:33 test-shaggy postfix/cleanup[5650]: D10C1481CE: message-id=<20090810211133.D10C1481CE@myhost.e2myplace.com>
Aug 11 09:11:33 test-shaggy postfix/nqmgr[5644]: D10C1481CE: from=<root@myhost.e2myplace.com>, size=313, nrcpt=1 (queue active)
Aug 11 09:11:33 test-shaggy postfix/local[5652]: D10C1481CE: to=<taphy@myhost.e2myplace.com>, orig_to=<postmaster@myhost.e2myplace.com>, relay=local, delay=0, status=sent (mailbox)
Aug 11 09:11:35 test-shaggy postfix/pickup[5643]: CEAFF481CE: uid=0 from=<root>
Aug 11 09:11:35 test-shaggy postfix/cleanup[5650]: CEAFF481CE: warning: header To: support@myhost.e2myplace.com from local; from=<root@myhost.e2myplace.com> to=<support@myhost.e2myplace.com>: some errors
Aug 11 09:11:35 test-shaggy postfix/cleanup[5650]: CEAFF481CE: message-id=<20090810211135.CEAFF481CE@myhost.e2myplace.com>
Aug 11 09:11:35 test-shaggy postfix/nqmgr[5644]: CEAFF481CE: from=<root@myhost.e2myplace.com>, size=310, nrcpt=1 (queue active)
Aug 11 09:11:35 test-shaggy postfix/local[5652]: CEAFF481CE: to=<support@myhost.e2myplace.com>, relay=local, delay=0, status=sent (mailbox)
после попытки инвертировать шаблон - чушь какая-то - вываливается warning на header Received, но проверка ЭТОГО хедера не задана!! (подскажите плиз как же это вообще работает в таком случае? где я вру?):
!/^To: support@/ WARN some errors
Aug 11 09:24:36 test-shaggy postfix/pickup[5677]: 1EDCD481CE: uid=0 from=<root>
Aug 11 09:24:36 test-shaggy postfix/cleanup[5697]: 1EDCD481CE: warning: header Received: by myhost.e2myplace.com (Postfix, from userid 0)??id 1EDCD481CE; Tue, 11 Aug 2009 09:24:35 +1200 (NZST) from local; from=<root@myhost.e2myplace.com to=<taphy@myhost.e2myplace.com>: some errors
Aug 11 09:24:36 test-shaggy postfix/cleanup[5697]: 1EDCD481CE: warning: header To: taphy@myhost.e2myplace.com from local; from=<root@myhost.e2myplace.com> to=<taphy@myhost.e2myplace.com>: some errors
Aug 11 09:24:36 test-shaggy postfix/cleanup[5697]: 1EDCD481CE: message-id=<20090810212435.1EDCD481CE@myhost.e2myplace.com>
Aug 11 09:24:36 test-shaggy postfix/nqmgr[5678]: 1EDCD481CE: from=<root@myhost.e2myplace.com>, size=308, nrcpt=1 (queue active)
Aug 11 09:24:36 test-shaggy postfix/local[5699]: 1EDCD481CE: to=<taphy@myhost.e2myplace.com>, relay=local, delay=1, status=sent (mailbox)
Aug 11 09:20:54 test-shaggy postfix/pickup[5677]: DF529481CE: uid=0 from=<root>
Aug 11 09:20:54 test-shaggy postfix/cleanup[5685]: DF529481CE: warning: header Received: by myhost.e2myplace.com (Postfix, from userid 0)??id DF529481CE; Tue, 11 Aug 2009 09:20:54 +1200 (NZST) from local; from=<root@myhost.e2myplace.com> to=<support@myhost.e2myplace.com>: some errors
Aug 11 09:20:54 test-shaggy postfix/cleanup[5685]: DF529481CE: message-id=<20090810212054.DF529481CE@myhost.e2myplace.com>
Aug 11 09:20:54 test-shaggy postfix/nqmgr[5678]: DF529481CE: from=<root@myhost.e2myplace.com>, size=310, nrcpt=1 (queue active)
Aug 11 09:20:55 test-shaggy postfix/local[5687]: DF529481CE: to=<support@myhost.e2myplace.com>, relay=local, delay=1, status=sent (mailbox)