What type of hardware are you using: VPS bought online What YunoHost version are you running: 12.1.27 How are you able to access your server: The webadmin
Describe your issue
What’s the best way to block spam without compromising YunoHost? I need to add and block an IP address or email address. Thanks.
Nice start! Your Sieve rule looks correct for filtering specific sender addresses at the user level.
However, if you want to block spam server-wide (for all users), you might want to look at these options instead:
Postfix access lists — edit /etc/postfix/sender_access or /etc/postfix/client_access to block specific IPs or domains, then run postmap and reload Postfix.
Rspamd (built into YunoHost) — open https://yourdomain.tld/rspamd and add blacklists or custom rules. It’s a powerful way to handle spam scoring, greylisting, and IP reputation automatically.
Fail2Ban — double-check that your mail-related jails (like postfix, dovecot, and rspamd) are enabled. It helps block brute-force IPs.
Your current .dovecot.sieve solution works fine if you only want to silently discard specific senders in your own mailbox.