Autoresponder und andere Sachen in
/var/zpanel/vmail/andreas-gregor.de/archiv/sieve/managesieve.sieve
Bzw. nach /home/user/sieve, wenn Mail dort abgelegt wird.
Anstoßen und Test des Filters mit:
sieve-filter -v -u archiv /home/archiv/sieve/Test.sieve 'INBOX'
dann
sieve-filter -e -W -u archiv /home/archiv/sieve/Test.sieve 'INBOX'
# Bestellungen in extra Ordner
if header :contains "subject" ["Bestellung", "Rechnung"] {
fileinto "Bestellungen";
}
require ["fileinto", "envelope", "vacation"];
# Einordnen
if address :is "from" ["xxx@gmx.de","yyyy@web.de"]
{
fileinto "Important";
}
vacation
# Reply at most once a day to a same sender
:days 1
:subject "Out of office reply"
# List of additional recipient addresses which are included in the auto replying.
# If a mail's recipient is not the envelope recipient and it's not on this list,
# no vacation reply is sent for it.
:addresses ["root@myurl.de", "archiv@testmail.de"]
"Dies ist ein Autoresponder";
sievec -u archiv managesieve.sieve
Testen:
sieve-filter -v -C -u "my@email.de" .sieve 'INBOX'
Ausführen:
-e - excute, -W write
Can't load plugin sieve_plugin : Plugin is intended to be used only by binaries: lda lmtp (we're managesieve)
Lösung war:
sieve in protocols /usr/share/dovecot/protocols.d/ aktivieren mit
!include_try /usr/share/dovecot/protocols.d/*.protocol
Auskommentieren von
#mail_plugins = $mail_plugins quota sieve
Keine Kommentare:
Kommentar veröffentlichen