Hello,
For the e-mail infrastructure we use roundcube 1.6.6 postfix 3.7.10, dovecot 2.3.19.1 installed on debian 12.05.  We use the larry theme as the interface. We use managesieve plugin for filtering. I have extracted some configurations below. Although the services are working properly, the filtering rules are not working. Although I have activated the Sieve logs, no negative logs are being sent. It is as if postfix/dovecot is not talking to managesieve. I wonder where I am doing wrong?  
Thank you for your help.

dovecot -n

# 2.3.19.1 (9b53102964): /etc/dovecot/dovecot.conf

# Pigeonhole version 0.5.19 (4eae2f79)

# OS: Linux 6.1.0-21-amd64 x86_64 Debian 12.5

# Hostname: gul2

auth_debug = yes

auth_verbose = yes

debug_log_path = /var/log/dovecot-debug.log

first_valid_uid = 0

info_log_path = /var/log/dovecot-info.log

log_path = /var/log/dovecot.log

log_timestamp = “%Y-%m-%d %H:%M:%S "

mail_debug = yes

mail_home = /home/%u/sieve

mail_location = mbox:~/mail:INBOX=/var/mail/%u

mail_plugins = quota

mail_privileged_group = mail

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 index ihave duplicate mime foreverypart extracttext

namespace inbox {

inbox = yes

location =

mailbox Drafts {

special_use = \Drafts

}

mailbox Junk {

special_use = \Junk

}

mailbox Sent {

special_use = \Sent

}

mailbox "Sent Messages" {

special_use = \Sent

}

mailbox Trash {

special_use = \Trash

}

prefix =

}

passdb {

driver = pam

}

plugin {

quota = dirsize:User quota

quota_grace = 10%%

quota_max_mail_size = 1000M

quota_over_flag_lazy_check = yes

quota_over_flag_value = TRUE

quota_over_script = quota-warning mismatch %u

quota_rule = Inbox:storage=+10%

quota_rule2 = *:storage=5G

quota_rule3 = Trash:storage=+100M

quota_rule4 = SPAM:ignore

quota_status_nouser = DUNNO

quota_status_overquota = 552 5.2.2 Mailbox is full

quota_status_success = DUNNO

quota_warning = storage=95%% quota-warning 95 %u

quota_warning2 = storage=80%% quota-warning 80 %u

quota_warning3 = -storage=100%% quota-warning below %u

sieve = ~/dovecot.sieve

sieve_dir = ~/sieve

sieve_global_dir = /etc/dovecot/sieve/global/

sieve_global_path = /etc/dovecot/sieve/default.sieve

}

protocols = " imap lmtp sieve pop3 sieve"

service auth {

unix_listener /var/spool/postfix/private/auth {

mode = 0666

}

}

service dict {

unix_listener dict {

group =

mode = 0600

user =

}

}

service managesieve-login {

inet_listener sieve {

port = 4190

}

}

service quota-warning {

executable = script /usr/local/bin/quota-warning.sh

unix_listener quota-warning {

mode = 0666

user = dovecot

}

user = dovecot

}

ssl_cert = /etc/dovecot/private/dovecot.pem

ssl_client_ca_dir = /etc/ssl/certs

ssl_dh = # hidden, use -P to show it

ssl_key = # hidden, use -P to show it

userdb {

driver = passwd

}

verbose_ssl = yes

protocol lmtp {

mail_plugins = sieve

}

protocol lda {

mail_plugins = sieve

}

protocol imap {

mail_plugins = quota imap_quota

}

protocol sieve {

managesieve_implementation_string = Dovecot Pigeonhole

managesieve_max_line_length = 64 k

}

protocol pop3 {

mail_plugins = quota

}


postconf -n

alias_database = hash:/etc/aliases

alias_maps = hash:/etc/aliases

append_dot_mydomain = no

biff = no

compatibility_level = 3.6

dovecot_destination_recipient_limit = 1

inet_interfaces = all

inet_protocols = all

mailbox_size_limit = 0

maillog_file = /var/log/postfix.log

message_size_limit = 52428800

mydestination = $myhostname, gul2.bim.gantep.edu.tr, mail2.gantep.edu.tr, localhost.bim.gantep.edu.tr, localhost

myhostname = mail2.gantep.edu.tr

mynetworks = 193.140.136.15/32 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128

myorigin = /etc/mailname

readme_directory = no

recipient_delimiter = +

relayhost =

smtp_tls_CApath = /etc/ssl/certs

smtp_tls_security_level = may

smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache

smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)

smtpd_forbid_bare_newline = yes

smtpd_forbid_bare_newline_exclusions = $mynetworks

smtpd_recipient_limit = 20

smtpd_relay_restrictions = permit_mynetworks permit_sasl_authenticated defer_unauth_destination

smtpd_tls_cert_file = /etc/ssl/certs/ssl-cert-snakeoil.pem

smtpd_tls_key_file = /etc/ssl/private/ssl-cert-snakeoil.key

smtpd_tls_security_level = may

spamassassin_destination_recipient_limit = 1

virtual_transport = lmtp:unix:private/dovecot


telnet localhost 4190

Trying ::1...

Connected to localhost.

Escape character is '^]'.

"IMPLEMENTATION" "Dovecot Pigeonhole"

"SIEVE" "fileinto reject envelope encoded-character vacation subaddress comparator-i;ascii-numeric relational regex imap4flags copy include variables body enotify environment mailbox date index ihave duplicate mime foreverypart extracttext"

"NOTIFY" "mailto"

"SASL" "PLAIN"

"STARTTLS"

"VERSION" "1.0"

OK "Dovecot (Debian) ready."




cat /var/www/html/plugins/managesieve/config.inc.php

$config['managesieve_host'] = 'localhost';

$config['managesieve_port'] = '4190';

$config['managesieve_auth_type'] = 'PLAIN';

$config['managesieve_auth_cid'] = null;

$config['managesieve_auth_pw'] = null;

$config['managesieve_conn_options'] = null;

$config['managesieve_default'] = '/etc/dovecot/dovecot.sieve';

$config['managesieve_script_name'] = 'dovecot.sieve';

$config['managesieve_mbox_encoding'] = 'UTF-8';

$config['managesieve_replace_delimiter'] = '';

$config['managesieve_disabled_extensions'] = [];

$config['managesieve_debug'] = true;

$config['managesieve_kolab_master'] = true;

$config['managesieve_filename_extension'] = '.sieve';

$config['managesieve_filename_exceptions'] = [];

$config['managesieve_domains'] = [];

$config['managesieve_default_headers'] = ['Subject', 'From', 'To'];

$config['managesieve_vacation'] = 1;

$config['managesieve_vacation_interval'] = 0;

$config['managesieve_vacation_addresses_init'] = false;

$config['managesieve_vacation_from_init'] = false;

$config['managesieve_notify_methods'] = ['mailto'];

$config['managesieve_raw_editor'] = true;

$config['managesieve_disabled_actions'] = [];

$config['managesieve_allowed_hosts'] = null;


ls /home/c_dikici/sieve/

dovecot.svbin managesieve.sieve managesieve.svbin tmp USER.sieve


cat /home/c_dikici/sieve/managesieve.sieve

require ["fileinto","variables"];

set "EDITOR" "Roundcube (Managesieve)";

set "EDITOR_VERSION" "9.4";

# rule:[test]

if header :contains "subject" "test"

{

fileinto "spam-mail";

}

_______________________________________________
Postfix-users mailing list -- postfix-users@postfix.org
To unsubscribe send an email to postfix-users-le...@postfix.org

Reply via email to