Ставить какой-то флажек в acl_m_warn
И по нему пускать или не пускать в acl_data

On Tue, Nov 15, 2011 at 06:39:29PM +0200, Denis Zinevich wrote:
DZ> вот что дебаг говорит:

DZ> 27131 using ACL "acl_check_mime"
DZ> 27131 processing "accept"
DZ> 27131 check condition = ${if match {${lc:$mime_filename}} 
{\N(\.jpg|\.jpx|\.png|\.pdf|\.doc|\.eps|\.tif|\.gif)$\N} {1}{0}}
DZ> 27131                 = 0
DZ> 27131 accept: condition test failed
DZ> 27131 processing "accept"
DZ> 27131 accept: condition test succeeded
DZ> 27131 Entering multipart recursion, boundary 
'------------080201000201040605010305'
DZ> 27131 Next part with boundary ------------080201000201040605010305
DZ> 27131 Found content-type: MIME header, value is 'text/plain'
DZ> 27131 Found charset= MIME parameter in content-type: header, value is 
'UTF-8'
DZ> 27131 Found content-transfer-encoding: MIME header, value is '7bit'
DZ> 27131 using ACL "acl_check_mime"
DZ> 27131 processing "accept"
DZ> 27131 check condition = ${if match {${lc:$mime_filename}} 
{\N(\.jpg|\.jpx|\.png|\.pdf|\.doc|\.eps|\.tif|\.gif)$\N} {1}{0}}
DZ> 27131                 = 0
DZ> 27131 accept: condition test failed
DZ> 27131 processing "accept"
DZ> 27131 accept: condition test succeeded
DZ> 27131 Next part with boundary ------------080201000201040605010305
DZ> 27131 Found content-type: MIME header, value is 'application/pdf'
DZ> 27131 Found name= MIME parameter in content-type: header, value is 
'test_results.pdf'
DZ> 27131 Found content-transfer-encoding: MIME header, value is 'base64'
DZ> 27131 Found content-disposition: MIME header, value is 'attachment'
DZ> 27131 Found filename= MIME parameter in content-disposition: header, value 
is 'test_results.pdf'
DZ> 27131 using ACL "acl_check_mime"
DZ> 27131 processing "accept"
DZ> 27131 check condition = ${if match {${lc:$mime_filename}} 
{\N(\.jpg|\.jpx|\.png|\.pdf|\.doc|\.eps|\.tif|\.gif)$\N} {1}{0}}
DZ> 27131                 = 1
DZ> 27131 check logwrite = $mime_filename
DZ> 27131                = test_results.pdf
DZ> 27131 LOG: MAIN
DZ> 27131   test_results.pdf
DZ> 27131 accept: condition test succeeded
DZ> 27131 End boundary found ------------080201000201040605010305
DZ> 27131 using ACL "acl_check_data"
DZ> 27131 processing "accept"
DZ> 27131 accept: condition test succeeded


DZ> выходит что сообщение multipart, и соотвественно проходит три проверки, так 
как там три части.
DZ> и так как две части первые не являются полезной нагрузкой (атачем) то тест 
не проходит.
DZ> Собсвтенно как быть в таком случае ?


DZ> 15.11.2011, 18:17, "Denis Zinevich" <[email protected]>:
DZ> >>  DZ>     accept
DZ> >>  DZ>       condition = ${if match {${lc:$mime_filename}} 
{\N(?i)(\.jpg|\.jpeg|\.jp2|\.jpx|\.png|\.pdf|\.doc|\.docx|\.eps|\.tif|\.gif)$\N}}
DZ> >>  DZ>       logwrite = $mime_filename
DZ> >>  DZ>       log_message = Test warn mime  ("$mime_filename")
DZ> >>          endpass
DZ> >>
DZ> >>  DZ>     deny
DZ> >
DZ> > не помогло. письмо похоже не попадает под condition - в логе пусто.
DZ> > если accept поменять на warn то в логе по честному появляется имя файла - 
test.pdf
DZ> >
DZ> > _______________________________________________
DZ> > Exim-users mailing list
DZ> > [email protected]
DZ> > http://mailground.net/mailman/listinfo/exim-users

DZ> _______________________________________________
DZ> Exim-users mailing list
DZ> [email protected]
DZ> http://mailground.net/mailman/listinfo/exim-users


-- 
Best regard, Aleksander Trotsai aka MAGE-RIPE aka MAGE-UANIC
My PGP key at ftp://blackhole.adamant.ua/pgp/trotsai.key[.asc]
Big trouble - Fatal error right in front of screen


_______________________________________________
Exim-users mailing list
[email protected]
http://mailground.net/mailman/listinfo/exim-users

Ответить