Skip to main content

Message not scanned by SpamAssassin

Comments

4 comments

  • cPanelLauren
    Hello, Were other emails right before and right after this one also scanned? What's the output of the following? ps faux |grep spamd
    0
  • kdean
    One thing to check since the following setting used to have a lower default and may need adjusting if the message size is just large enough. WHM " Service Configuration " Exim Configuration Manager Setting: Apache SpamAssassin": message size threshold to scan Check what this is set to as compared to the message size of the email in question in case it's larger than your threshold.
    0
  • neilc33
    # ps faux |grep spamd root 24415 0.0 0.0 112712 960 pts/0 S+ 08:31 0:00 \_ grep --color=auto spamd root 10107 0.0 0.7 240636 118180 ? Ss Mar02 0:03 /usr/local/cpanel/3rdparty/perl/530/bin/perl -T -w /usr/local/cpanel/3rdparty/bin/spamd --allowed-ips=127.0.0.1,::1 --max-children=5 --pidfile=/var/run/spamd.pid --listen=5 --listen=6 root 10435 0.0 0.8 270656 140660 ? S Mar02 0:16 \_ spamd child root 10436 0.0 0.8 264436 136072 ? S Mar02 0:01 \_ spamd child
    The previous emails around 05:12 and 05:14 were scanned by SpamAssassin. The following incoming email at 05:17 does not appear to have been scanned. SpamAssassin appears in the logs again at 05:51, which is the next incoming email.
    One thing to check since the following setting used to have a lower default and may need adjusting if the message size is just large enough. WHM " Service Configuration " Exim Configuration Manager Setting: Apache SpamAssassin": message size threshold to scan Check what this is set to as compared to the message size of the email in question in case it's larger than your threshold.

    The email saved as a .eml file is 1.5 MB, and is 4 KB without the attachment. The threshold is currently set to 200 KB. This is lower than the default (1000 KB) so that's something that we can increase - does this threshold check the size of the message including the attachment?
    0
  • neilc33
    The email saved as a .eml file is 1.5 MB, and is 4 KB without the attachment. The threshold is currently set to 200 KB. This is lower than the default (1000 KB) so that's something that we can increase - does this threshold check the size of the message including the attachment?

    I think I've answered my own question. The /usr/local/cpanel/3rdparty/bin/spamc
    command has a -s
    arg for max size in bytes and this is probably used with the Apache SpamAssassin": message size threshold to scan option. Indeed, testing this on an email source shows no scanning on the 1.5 MB email until this threshold is increased. This does mean though that big emails above this threshold don't get spam checked against SPF/DKIM etc. which I'd like always to be done. I guess it's a cpanel feature request but it would seem to make sense to pass emails to SpamAssassin via head -c 500K
    or similar.
    0

Please sign in to leave a comment.