News for hackers. Stuff that matters.
Re:Host your own contacts and calendars and share them acros... by acidburnNSA on Monday July 24, 2017 @09:43AM (#14838358)
This is really easy to set up using Dovecot Sieve [1]. I set it up the other day to bounce reject messages that had too many swear words as a proof-of-concept for an idea a Facebook friend had about making sure people stay nice in email. The syntax of the server-side filters is a bit strange but there's even a Thunderbird plugin that allows you to edit them from the client.

[1] https://wiki2.dovecot.org/Pigeonhole/Sieve

Re:Host your own contacts and calendars and share them acros... by JulienSchmidt on Monday July 24, 2017 @01:01PM (#14840231)
Bouncing is a bad idea as it can be abused for spam:

1. Fake the origin to actual destination of choice

2. Your server bounces the original message wrapped by the SMTP error report.

3. Actual destination receives error report containing spam content from YOUR server

A proper solution would be to REJECT the message before it is accepted. However, Dovecot Pigenhole doesn't support that (yet).