Topic: Return-Path filter for spam?
==== Required information ====
- iRedMail version: 0.8.4
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL
- Linux/BSD distribution name and version: Ubuntu 12.04 LTS
- Related log if you're reporting an issue:
====
I am getting very specific spam that always has mydomain.com in the Return-Path in the message header.
Return-Path: <onlinedoctorate-webmaster=mydomain.com@dvdcopymac.org>
I am trying to filter this with spamassassin using the following in /etc/mail/spamassissin/local.cf using
# checking for local domain in return path
header MYLOCAL_RETURN Return-Path =~ /\mydomain\.com/
score MYLOCAL_RETURN 50
describe MYLOCAL_RETURN mark with score 50 all mails with Return-Path "bogus@mydomain"
However, I still recevied the email and it is not marked as spam.
Is the syntax correct? Does something (cluebringer) override this? Is there another way to use Return-Path to filter spam? thank you
----
Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.