Topic: Block outbound spam with SpamAssassin
==== Required information ====
- iRedMail version: 086
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): PGSQL
- Linux/BSD distribution name and version: CentOS
- Related log if you're reporting an issue:
====
Greets,
I'm trying to block our users from *sending* spam via the webmail interface which sends via localhost/postfix.
I have changed /etc/amavisd/amavisd.conf:
# don't perform spam/virus/header check.
bypass_spam_checks_maps => [0],
bypass_virus_checks_maps => [0],
bypass_header_checks_maps => [0],
and I restarted amavisd:
I now see spam is being *detected* in the maillog:
amavis[3260]: (03260-06) Passed SPAM {RelayedOutbound}, MYUSERS [1.1.1.1]...
However, the X-Spam-Flag (along with others) is not being set in the headers (I checked on the receiving end).
1. How can I ensure those headers are in fact set for outbound email?
2. How can I actually BLOCK those spam emails from being sent at all by a local user? eg, if the spam score is higher than 5, then return an SMTP error code, etc.
Thanks
----
Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.