[sieve] Restrict redirects to own domain only

Ralph Seichter m16+dovecot at monksofcool.net
Tue Oct 16 14:37:27 EEST 2018


On 16.10.18 12:48, Yassine Chaouche wrote:

> I'd like to let my colleagues redirect mail automatically (via a sieve
> filter) to other mailboxes within the same domain, but deny redirects
> to outside domains [...] Ideas ?

Set up a simple internal web application or some other mechanism that
allows your colleagues to enter the local address part for forwarding
only. Use backend logic to generate a sieve script containing

  redirect :copy "localpart at yourdomain.tld";

or whatever suits your needs.

-Ralph


More information about the dovecot mailing list