Topic: Problem rejecting email
==== Required information ====
- iRedMail version (check /etc/iredmail-release): 0.9.5-1
- Linux/BSD distribution name and version: CentOS 7
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL
- Web server (Apache or Nginx): Apache
- Manage mail accounts with iRedAdmin-Pro? No
- Related log if you're reporting an issue:
====
I've been getting a lot of spam about jobs from a spammer that uses Amazon SES, so I can't block by IPs. I had added them to the blacklist but that still accepts the email, so I decided I'd add the email address to /etc/postfix/sender_access.pcre, but they are still getting through. I tried added one of my gmail accounts and it rejected those emails, but the ones from the spammer get through and still end up in the Junk folder. Since Amazon doesn't do anything about these spammers I want the emails rejected.
Here's what I have in sender_access.pcre:
/mail@jobungo\.com/ REJECT Sender only sends spam
/mail@recommendedjobs\.com/ REJECT Sender only sends spam
I'm not sure why these are getting through when the emails from the gmail account got blocked during testing.
----
Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.