Hallo Leute,
ich habe Dovecot2 auf Virtualmin am laufen und Sieve laut Wiki konfiguriert. Nun wollte sich zusätzlich zu spam und hamtrap das ganze mit dem Anitspamplugin konfiurieren damit man Mails nur mehr per Drag and Drop in den Spamordner schieben muss. Das ganze steht unter Dovecot 2 (Abschnitt „Antispam“) beschrieben. Leider bekomme ich beim Ersten Teil, also das Skript mit "require" am Beginn einen Syntaxfehler beim Neustarten des dovecotservice.
doveconf: Fatal: Error in configuration file /etc/dovecot/conf.d/20-imap.conf line 78: Expecting '{'
Da eine Klammer zu setzten brachte einfach nichts. Egal wie ich es auch drehte das service startete nicht mehr. Also die Datei sieht nun so aus:
cat 20-imap.conf
protocol imap { # Space separated list of plugins to load (default is global mail_plugins). #mail_plugins = $mail_plugins # Maximum number of IMAP connections allowed for a user from each IP address. # NOTE: The username is compared case-sensitively. #mail_max_userip_connections = 10 } require ["fileinto","imapflags"]; # rule:[SPAM] if header :contains "subject" ["***SPAM***"] { setflag "\\seen"; fileinto "Spam"; stop; } else { # The rest goes into INBOX # default is "implicit keep", we do it explicitly here keep; }
Was passt hier nicht?
lg Dark Wolf