[exim] Problem with Mime attachment checking

Αρχική Σελίδα
Delete this message
Reply to this message
Συντάκτης: Sujit Acharyya-choudhury
Ημερομηνία:  
Προς: exim-users@exim.org
Αντικείμενο: [exim] Problem with Mime attachment checking
I am having problem with Mime attachment checking with Exim 4.80 on Solaris.
The following code is in place and I am not getting the Warning message:



in the main settings:



acl_smtp_rcpt = acl_check_rcpt

acl_smtp_data = acl_check_data

acl_smtp_mime = acl_check_mime



acl_check_mime:

# pdf is just for test

warn



        condition = ${if match{${lc:$mime_filename}} \


{\N(\.exe|\.scr|\.bat|\.com|\.lnk|\.pif|\.reg|\.vbs|\.vb|\.vbe|\.dll| \

|\.pdf|\.chm)$\N} \

        {1}{0}}


        message = WARNING: Bad MIME attachment filename ($mime_filename)


        log_message = WARNING: Bad MIME attachment filename ($mime_filename)


accept





# ACL that is used after the DATA command

acl_check_data:



   deny    malware    = *


           message    = This message contains a virus ($malware_name).






However, If I move the checking in the acl_check_data, then it gives the
warning message. Any idea?







Thanks in advance



Sujit Choudhury | IT Services

Birkbeck, University of London