postal icon indicating copy to clipboard operation
postal copied to clipboard

Spam checks, is it working?

Open navinp opened this issue 8 years ago • 13 comments

I'm seeing this message:

This message doesn't have any spam checks. This likely means we haven't scanned this message to determine its likelyhood of being spam. It may take a few seconds to appear after a new message is received.

Does it mean, that the spam checks are not working?

navinp avatar Mar 21 '18 14:03 navinp

Check /var/log/mail.log. There you can see, if spamd is checkig the mails.

saire-lancelot avatar Mar 21 '18 14:03 saire-lancelot

I checked the /var/log/mail.log txt, but it had nothing in it. Just a blank file.

navinp avatar Mar 21 '18 15:03 navinp

Is spamassassin installed and runnig and the postal configuration correct?:

systemctl status spamassassin.service

check /opt/postal/config/postal.yml:

spamd:
enabled: true
host: 127.0.0.1
port: 783

saire-lancelot avatar Mar 21 '18 15:03 saire-lancelot

Hello @saire-lancelot

Spamassassin was not installed, thanks for the feedback, will let you know how it goes.

navinp avatar Mar 21 '18 17:03 navinp

Spamassassin installed.

After that looked into the file /postal.yml

But it didn't have anything about spamd, so I added it.

After that restarted the postal using postal restart

I send a test mail and got this error:

March 22, 2018 00:00
ERROR
An internal error occurred while sending this message. This message will be retried automatically. This this persists, contact support for assistance.

NoMethodError: undefined method `enabled?' for nil:NilClass

Support Ref: J-WI9NLW2XDE

navinp avatar Mar 22 '18 03:03 navinp

Hello,

I removed the spamd-part from the /postal.yml file, restarted using postal restart and now I see the spam checks are indeed working.

I don't know what is a good practice, but I have put the Outbound spam threshold to 5.0

navinp avatar Mar 22 '18 03:03 navinp

Best Case is to test it with a real spam mail. I use 3.0

saire-lancelot avatar Mar 22 '18 10:03 saire-lancelot

I think this happened after the server was rebooted :/

root@domain:~# systemctl status spamassassin.service ● spamassassin.service - Perl-based spam filter using text analysis Loaded: loaded (/lib/systemd/system/spamassassin.service; disabled; vendor pr Active: inactive (dead)

navinp avatar May 12 '18 23:05 navinp

Can you manually start the service? If you want to auto-start the service after each reboot, this will do the job: systemctl enable spamassassin.service

saire-lancelot avatar May 15 '18 14:05 saire-lancelot

I have this Postal installed on a fresh new box, Spam checks are not working... I have Spamassassin enabled though and active (running).

It's just not scanning the emails :/

Is it something I missed on this fresh new box?

navinp avatar Jun 15 '18 17:06 navinp

When you say its not scanning the emails, what exactly are you seeing?

willpower232 avatar Jun 16 '18 20:06 willpower232

It shows this message:

This message doesn't have any spam checks. This likely means we haven't scanned this message to determine its likelyhood of being spam. It may take a few seconds to appear after a new message is received.

navinp avatar Jun 16 '18 22:06 navinp

Are you referring to a message that you have sent from Postal or one that has been received by Postal?

By default, messages sent from Postal are not checked for spam because its intended they are sourced from yourself and not likely to be spam at all.

willpower232 avatar Jun 18 '18 08:06 willpower232