1

Topic: Best way to block individual sender or sender's domain

==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release): 0.98
- Deployed with iRedMail Easy or the downloadable installer? Downloadadble Installer
- Linux/BSD distribution name and version: Ubuntu 16.0.4
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL
- Web server (Apache or Nginx): Nginx
- Manage mail accounts with iRedAdmin-Pro? Not yet
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====

Hello, iRedMail people.

I am wondering if you could share with us your recommendations on what may be the easiest way to get rid of annoying emails from senders who don't respect requests to stop sending unwanted messages or who don't provide unsubscribe links?

I want to be able to block/reject their messages outright rather than receive the messages marked as spam or placed in spam folder.  How can I do it on a specific individual email addresses or whole domain basis?  I can't block the whole gmail.com but I want to zap all messages from a 'badboy@gmail.com'.  And I want to block every email from *@badboysdomain.com

Thanks in advance

----

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

2

Re: Best way to block individual sender or sender's domain

https://docs.iredmail.org/manage.iredapd.html

iredAPD  ..Mr. Zhang did a great job on this.

3 (edited by Ascar 2020-09-08 18:04:47)

Re: Best way to block individual sender or sender's domain

ms2504 wrote:

https://docs.iredmail.org/manage.iredapd.html

iredAPD  ..Mr. Zhang did a great job on this.

Thanks, this is a good read.
Do you know if I blacklist someone will sender receive any notification stating that the message was rejected?

4

Re: Best way to block individual sender or sender's domain

Ascar wrote:

Do you know if I blacklist someone will sender receive any notification stating that the message was rejected?

Yes. Sender server (and sender) will receive message like "BLACKLISTED".

5

Re: Best way to block individual sender or sender's domain

Hello iRedMail people,

I am trying to add a domain to black list by running the following command

python3 wblist_admin.py --add --blacklist @bad-domain.com

iRedAPD returns the following error:

File "wblist_admin.py", line 76
    print USAGE
              ^
SyntaxError: Missing parentheses in call to 'print'

I checked line 76 and can't figure where the parentheses should be exactly added.

Can you take a look?  I am on 0.98 with Nginx and Postgress

Thanks in advance

6

Re: Best way to block individual sender or sender's domain

If you're running iRedMail-0.9.8, please run the script with "python2", not "python3".

7

Re: Best way to block individual sender or sender's domain

Thank you Zhang.  Works!
Time to upgrade to the latest version