Is custom exim_check_attachment.sh for ESF possible?

Richard G

Verified User
Joined
Jul 6, 2008
Messages
14,356
Location
Maastricht
I would like to remove .dat files from the exim_check_attachment.sh file because that is blocked on outgoing mails and is (amongst others) used for Mailwasher reports.

Ofcourse I can change the content and immute the file because I guess it can be overwritten on a rebuild of Exim and exim.conf but if there is a better way like a custom file, then I rather use that.

However since this is an sh script most likely that is not possible. But just to be sure I would like to have that confirmed, because I don't like immuting files.

Secondary I'm interested to know if it's possible some easy way to prevent outgoing mails to be scanned. Just out of curiosity, not planning to do that. ;)

I would be planning to not scan outgoing archives if that is possible.
 
I would like to remove .dat files from the exim_check_attachment.sh file because that is blocked on outgoing mails and is (amongst others) used for Mailwasher reports.

Ofcourse I can change the content and immute the file because I guess it can be overwritten on a rebuild of Exim and exim.conf but if there is a better way like a custom file, then I rather use that.

However since this is an sh script most likely that is not possible. But just to be sure I would like to have that confirmed, because I don't like immuting files.

Secondary I'm interested to know if it's possible some easy way to prevent outgoing mails to be scanned. Just out of curiosity, not planning to do that. ;)

I would be planning to not scan outgoing archives if that is possible.
I would say it can be done in the standard way of DA customization:
Code:
mkdir -p /usr/local/directadmin/custombuild/custom/easy_spam_fighter
cp /usr/local/directadmin/custombuild/configure/easy_spam_fighter/exim_check_attachment.sh /usr/local/directadmin/custombuild/custom/easy_spam_fighter/
vim /usr/local/directadmin/custombuild/custom/easy_spam_fighter/exim_check_attachment.sh
da build exim_conf

And as the result my custom line:

echo "Let's work!"

is there:
Code:
[root@server ~]# cat /etc/exim.easy_spam_fighter/exim_check_attachment.sh
#!/bin/sh

if [ "${1}" != "zip" ]; then
        echo "$0: we can only scan zip files";
        exit 0
fi

echo "Let's work!"
...
Hope it will help )
 
Hope it will help )
Yes, thank you very much!! (y) I didn't expect that also to work with script files but it does. :)

I presume there is no option that packed files for outgong mail are not scanned at all?
Because I presume this attachment script also checks incoming mail right?
Also because only zip is tested and not rar anyway.
 
Back
Top