I’m not sure if the spam filter is working or not, when I checked the spam filter rule in the mailbox it is set to move message to Inbox.spam. However there’s no spam folder created, only Junk folder.
And in dovecot configuration
mailbox Spam {
auto = subscribe
special_use = \Junk
}
mailbox Junk {
auto = no
special_use = \Junk
}
I checked several emails header in my inbox and didn’t find the below records although they are exist in EXIM configuration:
root@hcp:~#
root@hcp:~# dpkg -l | grep exim4
ii exim4 4.93-13ubuntu1.12 all metapackage to ease Exim MTA (v4) installation
ii exim4-base 4.93-13ubuntu1.12 arm64 support files for all Exim MTA (v4) packages
ii exim4-config 4.93-13ubuntu1.12 all configuration for the Exim MTA (v4)
ii exim4-daemon-heavy 4.93-13ubuntu1.12 arm64 Exim MTA (v4) daemon with extended features, including exiscan-acl
root@hcp:~#
root@hcp:~#
Are you testing it sending a mail from an external domain like gmail to one of your mail domains?
Did you enable anti-spam for your mail domain? (Replace YourUser and YourDomain with the actual data.)
If you want an email to be marked as spam when testing your system, send an email to one of your mail users with exactly this body (it’s a spam test called GTUBE):
I tried this way between internal users on hestia and the mail was received in inbox. I then sent an email from hotmail to hestia account and the email was rejected as below
Remote server returned '550 5.7.520 Message blocked because it contains content identified as spam. AS(4810)'
I would like that any email “internal or external” to land in Junk folder.
I don’t know how to do what you want. I thought I did, but I’ve modified my Exim configuration and haven’t managed to achieve it, so I can’t help you with this.