Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Manual mailadress add to Blacklist #103

Open
EDV4BIZ opened this issue Mar 2, 2018 · 8 comments
Open

Manual mailadress add to Blacklist #103

EDV4BIZ opened this issue Mar 2, 2018 · 8 comments
Labels

Comments

@EDV4BIZ
Copy link

EDV4BIZ commented Mar 2, 2018

Hello, how can i add manual a Mailadress or Domain to Blacklist?

The mail is not in the Quarantine.

BR

@tonioo
Copy link
Member

tonioo commented Mar 7, 2018

@WASDIT For now, this is not something modoboa supports.

@EDV4BIZ
Copy link
Author

EDV4BIZ commented Mar 7, 2018

@tonioo any possible solution to block it? anywhere in the Database or somewhere else?

@tonioo
Copy link
Member

tonioo commented Mar 9, 2018

There are different methods to do that, and at different levels (postfix, amavis or on a per-user basis using sieve). What do you want to do exactly?

@EDV4BIZ
Copy link
Author

EDV4BIZ commented Mar 9, 2018

i use in a company of a customer modoboa, and one User in the company, got mails/spams from a Domain which he dont want, for example spam@spam.com he want to block this mail/domain that he not received mails anymore from them.

@tonioo
Copy link
Member

tonioo commented Mar 9, 2018

Ok, so the best way to do this is to tell this user to create a filter to reject message coming from this address and/or domain.

@EDV4BIZ
Copy link
Author

EDV4BIZ commented Mar 9, 2018

Can i do this from the admin area? or from where?

@tonioo
Copy link
Member

tonioo commented Mar 9, 2018

The user can create its filter alone, the top right menu contains a filters entry.

@dbryar
Copy link

dbryar commented Nov 11, 2019

New to Modoboa, but looking for these things myself.

For completeness, I am using the method from my old setup with a helo access check against hash:/etc/postfix/helo-access

In /etc/postfix/main.cf, add the following;

# Junk senders are refused service
smtpd_helo_restrictions =
        permit_sasl_authenticated
        permit_mynetworks
        check_helo_access hash:/etc/postfix/helo-access
        check_client_access hash:/etc/postfix/helo-access
        reject_non_fqdn_helo_hostname
        reject_non_fqdn_hostname
        reject_invalid_helo_hostname
        reject_invalid_hostname
        reject_unknown_helo_hostname
        reject_unknown_hostname
        permit

then create a file

sudo nano /etc/postfix/helo-access

and add your blacklist as follows;

.in.net REJECT
filthy.spam.tld REJECT

If you are getting false-positives on badly configured servers, you can change REJECT to OK to allow it through before it is denied service from a misconfigured helo/hostname/DNS.

Then finally

sudo postmap /etc/postfix/helo-access
sudo postfix reload

Update for 2020:

It appears this is not working. The helo restrictions are not being enforced by postfix and all the spam mer friendly domains (e.g. *.in.net) are filling up user inboxes.

Now... feature request...
Add a white/black/blocklist to the database so the helo-access is a db query, not a file.
Table = ID, Domain_name, OK/REJECT

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants