forgot one thing first,
usually when we check max message size we think only about
config getprop spamassassin MaxMessageSize
there is another limit for email filtering, the attachment size to scan:
$max_size = $qpsmtpd{MaxScannerSize} ||
$clamav{StreamMaxLength} ||
"25M";
you can get your actual scan limit by issuing :
config getprop qpsmtpd MaxScannerSize
default 25000000, ie 25M so it should not bother.
probably this one is 5M on your server...
and
config getprop clamav StreamMaxLength
default not set
Finally you might get two other limits :
config get clamd MemLimit
which could give an error because clamav has not enough memory when you use unofficial signatures..
and also
config getprop clamav MaxFileSize
which should not be related to streams... but in case...
========
now if those are not enough to find the issue :
The current installed memory 8G and only 2 G are used.
what does shows htop with memory sorted as decreasing when you send a refused email.
what also gives
tail -f /var/log/sqpsmtpd/current |tai64nlocal
and
tail -f /var/log/clamd/current |tai64nlocal
There is not clamav customization installed.
ok
2- disable virus scan (not what i would recommend)/if I disabled it does that mean neither of outgoing and incoming mails will not be scanned or the weekly scan will be disabled?
Thanks
Martin
as you are supposed to send email you could change the configuration for LAN
/etc/e-smith/templates/var/service/qpsmtpd/config/peers/local/80clamav
Of course create a template customs... and modify