1

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.

2

Re: Return-Path filter for spam?

If you want to custom SpamAssassin rules, please read official tutorial below:
https://wiki.apache.org/spamassassin/WritingRules

The return-path doesn't look like spam, because it's '@dvdcopymac.org', not '@mydomain.com'.

3 (edited by djfake 2015-01-05 19:43:36)

Re: Return-Path filter for spam?

the test is for mydomain.com within the return path string...

4

Re: Return-Path filter for spam?

Then please check spamassassin official document please.
https://wiki.apache.org/spamassassin/WritingRules

5

Re: Return-Path filter for spam?

How can I remove mydomain.com from the autowhitelist?

6

Re: Return-Path filter for spam?

Excuse me, what "autowhitelist"?