Mailu: Whitelist, greylist or blacklist sender address, IP or domain

Created on 10 Apr 2018  ยท  17Comments  ยท  Source: Mailu/Mailu

It would be as a good addition to suite if it would be possible to whitelist, greylist or blacklist on global, per domain or per user level an item, e.g. a domain, an address, an IP.

typfeature

Most helpful comment

FYI: https://github.com/Mailu/Mailu/pull/1586/files#diff-ea4d6279fd57bb5921b88d4904f4352bR71 adds documentation towards blacklisting. With this in mind, Iโ€™d also like to copypaste our current appeal for feedback.

Hi There,

The Mailu-Project is currently in a bit of a bind! We are short on man-power, and we need to judge if it is possible for us to put in some work on this issue.

To help with that, we are currently trying to find out which issues are actively keeping users from using Mailu, which issues have someone who want to work on them โ€” and which issues may be less important. These a less important ones could be discarded for the time being, until the project is in a more stable and regular state once again.

In order for us to better assess this, it would be helpful if you could put a reaction on this post (use the :smiley: icon to the top-right).

  • ๐Ÿ‘๏ธ if you need this to be able to use Mailu. Ideally, youโ€™d also be able to test this on your installation, and provide feedback โ€ฆ
  • ๐ŸŽ‰ if you find it a nice bonus, but no deal-breaker
  • ๐Ÿš€ if you want to work on it yourself!
    We want to keep this voting open for 2 weeks from now, so please help out!

All 17 comments

Plus, as mentioned in the chat, a way to prioritize the action. I was thinking gray, then black, then white. And an additional attribute to "enforce" an action despite overloading, with a priority order as follows: enforced global, enforced domain, user, domain, global.

From a ui point of view, it would require views to display rules from higher levels.

Another addition: one should be able to specify external lists, like DNSBL.

This overrides #336 and #349

My hesitation at the moment, please pitch in if you have an opinion on the matter.

In the coming weeks, implementing dynamic filters in Postfix will be feasible. But this excludes more complex behaviors like dnsbl.

Should we start implementing things in Postfix and later switch to rspamd for more complex behaviors or should we wait for rspamd to be able to query the admin container?

Any news on this? Currently calendar invites from gmail.com is on is blocked by bl.rspamd.com blacklist. For good reasons I assume, but it would be nice to have a way to whitelist trusted senders (email addresses) to be able to accept invites. Is it possible to add something to the rspamd module like suggested in https://github.com/rspamd/rspamd/issues/881?

'''
WHITELIST_SENDER_DOMAIN {
type = "from";
filter = "email:domain";
map = "/etc/rspamd/whitelist.sender.domain.map";
score = -6.0
}
'''

Is there a work around for now? Something using the /etc/rspamd/override.d folder?

Is there currently a way to do not filter to specific domains? For example everything which is sent to domain.tld should not be filtered and should just go straight to the INBOX

There is not, but I agree there should definitely be one. Will keep working on this.

I am not sure if this is directly involved with the contents of this issue, but it seems related:
Setting up a relay server seems to voilate SPF configuration for the sender domain, such as google, and the antispam service immediately flags this with 3.5 negative-loaded points to the email.
Would there already be any form for whitelisting in this regard (domain/IP wise) or is this a part of the work that has to be done?
Thank you

You mean an incoming relay server? In that case unfortunately the only way to properly handle spf would be to do it on the first hop, or to parse server headers if you trust your network enough so emails are only deliverered to Mailu from the relay.

If one would whitelist a domain (or even a single email adddress), wouldn't this make any other spam checks obsolete? Since domain or addresses can easily be forged, spam can be send using this domain or address from every source.

Is there any updates with this ticket?

Because now I'm facing the case when I need to whitelist IP ranges for MailChimp - and I still don't know how to do it... ๐Ÿ™„

Just for the info - here is a small helper gist by @ThomasLeister to get your rspamd whitelist IPs.

I would also like to request adding at least basic white/blacklists for mails/IPs/domains. It would be great to have such a feature both globally and per-user.

Thank you for your efforts.

FYI: https://github.com/Mailu/Mailu/pull/1586/files#diff-ea4d6279fd57bb5921b88d4904f4352bR71 adds documentation towards blacklisting. With this in mind, Iโ€™d also like to copypaste our current appeal for feedback.

Hi There,

The Mailu-Project is currently in a bit of a bind! We are short on man-power, and we need to judge if it is possible for us to put in some work on this issue.

To help with that, we are currently trying to find out which issues are actively keeping users from using Mailu, which issues have someone who want to work on them โ€” and which issues may be less important. These a less important ones could be discarded for the time being, until the project is in a more stable and regular state once again.

In order for us to better assess this, it would be helpful if you could put a reaction on this post (use the :smiley: icon to the top-right).

  • ๐Ÿ‘๏ธ if you need this to be able to use Mailu. Ideally, youโ€™d also be able to test this on your installation, and provide feedback โ€ฆ
  • ๐ŸŽ‰ if you find it a nice bonus, but no deal-breaker
  • ๐Ÿš€ if you want to work on it yourself!
    We want to keep this voting open for 2 weeks from now, so please help out!

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

Unstale

It is unclear for me what questions remain unanswered?
It is already possible to configure blacklisting, whitelisting or greylisting in Rspamd.
Rspamd is the antispam solution used in Mailu.

See this link (click me) for more information.
Does anyone still have more questions after checking the example from the link?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Diman0 picture Diman0  ยท  3Comments

micw picture micw  ยท  4Comments

githtz picture githtz  ยท  4Comments

gizocz picture gizocz  ยท  4Comments

styxlab picture styxlab  ยท  4Comments