1

Topic: Can you block inbound mail by sent username

Is there a way to block mail from any domain that contains the same username?

i.e. info-spammerbob-test@gmail.com, guest-spammerbob@myemail.com, spammerbob-host@hotmail.com

I'm looking to block any incoming mail that would contain "spammerbob" in the username.  I've searched and searched to no avail.

- iRedMail version (check /etc/iredmail-release): v0.9.5-1
- Deployed with iRedMail Easy or the downloadable installer? Download
- Linux/BSD distribution name and version: Ubuntu 14.04
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL
- Web server (Apache or Nginx): Nginx
- Manage mail accounts with iRedAdmin-Pro? No
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue. N/A

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2

Re: Can you block inbound mail by sent username

You can use Postfix header_checks. http://www.postfix.org/header_checks.5.html

3

Re: Can you block inbound mail by sent username

Thanks for pointing me in the right direction.  I got it working!