AW: Debian 10.9 - Dovecot - Sieve Filtrierung scheitert...

mauric at gmx.ch mauric at gmx.ch
Di Apr 13 13:57:51 CEST 2021


>Hallo Mauri,
Klaus danke für deine schnelle Antwort! Im Englischen Forum ging es überhaupt nicht vorwärts😊

>versuche mal bitte:
>fileinto "INBOX/Junk";
Hinzugefügt, kompiliert "Sievec" und Dovecot - Service restart.

hab mir anschliessend ein Spam Mail zugestellt "XJS*" usw.....

root at nmail:/etc/dovecot/sieve# tail -f /var/log/dovecot.log
Apr 13 11:34:42 Dovecot/master: Warning: Killed with signal 15 (by pid=24760 uid=0 code=kill)
Apr 13 11:34:42 Dovecot/log(24726): Warning: Killed with signal 15 (by pid=1 uid=0 code=kill)
Apr 13 13:39:45 Dovecot/master: Warning: Killed with signal 15 (by pid=26120 uid=0 code=kill)
Apr 13 13:39:47 Dovecot/config: Warning: Killed with signal 15 (by pid=1 uid=0 code=kill)
Apr 13 13:39:47 Dovecot/stats: Warning: Killed with signal 15 (by pid=1 uid=0 code=kill)
Apr 13 13:39:47 Dovecot/imap-login: Warning: Killed with signal 15 (by pid=1 uid=0 code=kill)
Apr 13 13:39:47 Dovecot/log(24766): Warning: Killed with signal 15 (by pid=1 uid=0 code=kill)
Apr 13 13:39:47 Dovecot/log(24766): Warning: Shutting down logging for 'imap: ' with 2 clients
Apr 13 13:44:44 Dovecot/master: Warning: Killed with signal 15 (by pid=26176 uid=0 code=kill)

--

X-Spam-Flag: YES
X-Spam-Status: Yes, score=1000.7 required=5.0 tests=AWL,GTUBE,
	HTML_IMAGE_ONLY_20,HTML_MESSAGE,MISSING_MID,UNPARSEABLE_RELAY
	autolearn=no autolearn_force=no version=3.4.5

Dieses Email wird klar als SPAM erkannt, aber es erscheint weiterhin nur in der INBOX/Eingang.

>Grüße
Besten Danke und bleib gsund!

>Klaus.
Mauri

---------------------------------------
E-Mail: maurizio at caloro.ch
HP: https://www.Caloro.ch
---------------------------------------
-- 

*Von: *mauric at .ch
*An: *dovecot at listen.jpberlin.de
*Empfangen: *13.04.2021 12:14:32
*Betreff: *Debian 10.9 - Dovecot - Sieve Filtrierung scheitert...

>  
> Hallo Zusammen
> Betreibe einige Zeit den nachfolgenden Setup:
* > Postfix > Spamassassin > Greylistening > Dovecot IMAP
> Nun würde ich gerne erreichen dass die E-Mail mit dem «Spam» flag nun
> automatisch mit der Sieve Filterung in den richtigen MS Outlook Ordner «junk» gelangen.           
>  
> Ich würde Euch  gerne bitte diesen Setup anzuschauen, und dankbar für eine Antwort.
>  
> # dovecot –version 2.3.4.1 (f79e8e7e4)
>  
> dovecot-core    2.3.4.1-5+deb10u6
> dovecot-imapd 2.3.4.1-5+deb10u6
> dovecot-lmtpd 2.3.4.1-5+deb10u6
> dovecot-managesieved                2.3.4.1-5+deb10u6
> dovecot-mysql 2.3.4.1-5+deb10u6
> dovecot-pop3d 2.3.4.1-5+deb10u6
> dovecot-sieve   2.3.4.1-5+deb10u6
>  
> Nun bin ich ca. 2 Tage unterwegs mit dem Sieve Filterierung, doch dieser Setup scheint bei mir noch nicht zu funktionieren.
> Habe doch einige Male den Setup von Dovecot «versucht😊» durchzuarbeiten bin aber bis jetzt mit diesem Resultat gescheitert.
>  
> Die Ordner die ich im Dovecot angelegt habe sind in meinem MS Outlook Client auch erschienen und vorhanden, dennoch
> erscheint in minen Log¨Files die nachfolgende Meldung.
>  
>>msgid=cm.1900144920322.mhkhtkl.fttajry.i at cmail20.com: failed to store into mailbox '.Junk': Invalid mailbox name: Begins with hierarchy separator
>>Apr 13 11:03:57 Dovecot/lmtp(vorname at domain.ch)<24490><70cnKX1edWdsdfswmDN1Rg[vorname at domain.ch)%3c24490%3e%3c70cnKX1edWdsdfswmDN1Rg]>: Error: sieve: Execution of script /etc/dovecot/sieve/before.sieve failed, but implicit keep was successful
>>Apr 13 11:32:02 Dovecot/master: Warn
>  
> --
> Cat before.sieve
> require "fileinto";
> if header :contains "X-Spam-Flag" "YES" {
>     fileinto "Junk";
> }
>  
> Oder
> Cat before.sieve
> require "fileinto";
> if header :contains "X-Spam-Flag" "YES" {
>     fileinto "INBOX.Junk";
> }
>  
>  
> Oder
> Cat before.sieve
> require "fileinto";
> if header :contains "X-Spam-Flag" "YES" {
>     fileinto ".Junk";
> }
>  
> Hat keine änderungen gebracht…..
>  
>  
> #/etc/dovecot/sieve# sievec -D before.sieve
> sievec(vorname): Debug: sieve: Pigeonhole version 0.5.4 () initializing
> sievec(vorname): Debug: sieve: file storage: Using Sieve script path: /etc/dovecot/sieve/before.sieve
> sievec(vorname): Debug: sieve: file script: Opened script `before' from `/etc/dovecot/sieve/before.sieve'
> sievec(vorname): Debug: sieve: Script `before' from /etc/dovecot/sieve/before.sieve successfully compiled
>  
> ok kompiliert wurde dies auch und scheint erfolgreich zu sein….
>  
> --
>  
> Devcot
>  
> root at nmail:/etc/dovecot/sieve# dovecot -n
> # 2.3.4.1 (f79e8e7e4): /etc/dovecot/dovecot.conf
> # Pigeonhole version 0.5.4 ()
> # OS: Linux 4.19.0-16-amd64 x86_64 Debian 10.9
> # Hostname: nmail.caloro.ch
> auth_debug = yes
> auth_mechanisms = plain login
> auth_verbose = yes
> debug_log_path = /var/log/dovecot-debug.log
> info_log_path = /var/log/dovecot-info.log
> log_path = /var/log/dovecot.log
> log_timestamp = %b %d %H:%M:%S Dovecot/
> mail_access_groups = vmail
> mail_location = maildir:~/Maildir
> managesieve_notify_capability = mailto
> managesieve_sieve_capability = fileinto reject envelope encoded-character vacation subaddress comparator-i;ascii-numeric relational regex imap4flags copy include variables body enotify environment mailbox date ihave
> namespace inbox {
>   inbox = yes
>   location =
>   mailbox Drafts {
>     special_use = \Drafts
>   }
>   mailbox Junk {
>     auto = subscribe
>     special_use = \Junk
>   }
>   mailbox Sent {
>     special_use = \Sent
>   }
>   mailbox "Sent Messages" {
>     special_use = \Sent
>   }
>   mailbox Trash {
>     special_use = \Trash
>   }
>   prefix =
> }
> passdb {
>   args = /etc/dovecot/dovecot-sql.conf.ext
>   driver = sql
> }
> plugin {
>   sieve = file:%h/sieve;active=%h/.dovecot.sieve
>   sieve_global_dir = /etc/dovecot/sieve/
> }
>  
> postmaster_address = mlala at domain.ch
> protocols = imap lmtp sieve
> service auth {
>   unix_listener /var/spool/postfix/private/auth {
>     group = postfix
>     mode = 0660
>     user = postfix
>   }
>   unix_listener auth-client {
>     mode = 0660
>     user = mail
>   }
> }
> service imap-login {
>   inet_listener imap {
>     port = 0
>   }
>   inet_listener imaps {
>     port = 993
>     ssl = yes
>   }
> }
> service lmtp {
>   unix_listener /var/spool/postfix/private/dovecot-lmtp {
>     group = postfix
>     mode = 0600
>     user = postfix
>   }
> }
> service stats {
>   unix_listener stats-reader {
>     group = vmail
>     mode = 0666
>     user = vmail
>   }
>   unix_listener stats-writer {
>     group = vmail
>     mode = 0666
>     user = vmail
>   }
> }
> ssl = required
> ssl_cert = </etc/letsencrypt/live/nmail.caloro.ch/fullchain.pem
> ssl_cipher_list = ECDHE-RSA-CHACHA20-POLY1305:ALL:!LOW:!SSLv2:!EXP:!aNULL
> ssl_min_protocol = TLSv1.2
> userdb {
>   args = /etc/dovecot/dovecot-sql.conf.ext
>   driver = sql
> }
> protocol lda {
>   mail_plugins = " quota sieve"
> }
> protocol imap {
>   mail_plugins = " quota imap_quota"
>   ssl_cert = </etc/letsencrypt/live/nmail.caloro.ch/fullchain.pem
>   ssl_key = # hidden, use -P to show it
> }
> protocol lmtp {
>   mail_plugins = " sieve"
> }
>  
>  
> Um etwas rat wäre ich sehr dankbar.
> Danke und Gruss
> Mauri
>  
>  
>  

-- 

---------------------------------------
e-Mail  : klaus at tachtler.net
Homepage: https://www.tachtler.net
DokuWiki: https://dokuwiki.tachtler.net
---------------------------------------




Mehr Informationen über die Mailingliste Dovecot