Hi all! I have a big problem. Sieve mailfilter not working, not sending CC-s and the vacation function not working neither. I don't see anything in the mail logs related to the CC addresses, so I think it is not even trying to send anything. I can show the config file of dovecot: listen = *,[::] protocols = imap pop3 auth_mechanisms = plain login disable_plaintext_auth = no log_timestamp = "%Y-%m-%d %H:%M:%S " mail_privileged_group = vmail ##DEFAULT ssl_cert = </work/ssl/domain.hu.crt ssl_key = </work/ssl/domain.hu.key ssl_dh = </etc/dovecot/dh.pem # Ez a sas-os SNI local_name node1.domain.hu { ssl_cert = </work/ssl/domain.hu.crt ssl_key = </work/ssl/domain.hu.key ssl_dh = </etc/dovecot/dh.pem } ssl_protocols = !SSLv3 mail_max_userip_connections = 1000 passdb { args = /etc/dovecot/dovecot-sql.conf driver = sql } userdb { driver = prefetch } userdb { args = /etc/dovecot/dovecot-sql.conf driver = sql } plugin { quota = dict:user::file:/var/vmail/%d/%n/.quotausage sieve=/var/vmail/%d/%n/.sieve sieve_max_redirects = 25 } service auth { unix_listener /var/spool/postfix/private/auth { group = postfix mode = 0660 user = postfix } unix_listener auth-userdb { group = vmail mode = 0600 user = vmail } user = root } service lmtp { unix_listener /var/spool/postfix/private/dovecot-lmtp { group = postfix mode = 0600 user = postfix # For higher volume sites, it may be desirable to increase the number of active listener processes. # A range of 5 to 20 is probably good for most sites # process_min_avail = 20 } } service imap-login { client_limit = 1000 process_limit = 512 service_count = 0 process_min_avail = 4 vsz_limit = 1G } protocol imap { mail_plugins = quota imap_quota } protocol pop3 { pop3_uidl_format = %08Xu%08Xv mail_plugins = quota } protocol lda { postmaster_address = postmaster@ mail_plugins = sieve quota } protocol lmtp { postmaster_address = postmaster@ mail_plugins = quota sieve } ---------------- dovecot/conf.d/15-lda.conf protocol lda { # Space separated list of plugins to load (default is global mail_plugins). mail_plugins = $mail_plugins sieve } -------------- dovecot/conf.d/90-sieve.conf plugin { sieve = file:~/sieve;active=~/.dovecot.sieve } What can I do for debugging the problem any sugestions?
It looks like for me that sieve is not even "running" can I check somehow if receives the config files? A .sieve file looks like this in vmail folder: require ["fileinto", "regex", "date", "relational", "vacation"]; # Send a copy of email to redirect "[email protected]"; keep;
What kind of setup does your server use or which tutorial did you follow to set it up? As you are posting in the forum for non-ISPConfig systems, I assume that you are not using ISPConfig on that server.
I used this tutorial years ago: https://www.howtoforge.com/tutorial/perfect-server-debian-9-nginx-bind-dovecot-ispconfig-3.1/ My ispconfig version: This Version: 3.1.12
I checked ( I have 6 copy of this server) all works fine, except this one. Al the others have the same dovecot/conf.d/90-sieve.conf file like this, and the others works fine with this config: plugin { sieve = file:~/sieve;active=~/.dovecot.sieve }
Are all services running on that problem server? Do you mean you have 7 servers set up in the same way? You could run the common issues script to rule out the usual suspects: https://forum.howtoforge.com/threads/please-read-before-posting.58408/
This is the output for the test: ##### SERVER ##### IP-address (as per hostname): ***.***.***.*** [WARN] could not determine server's ip address by ifconfig [INFO] OS version is Debian GNU/Linux 10 (buster) [INFO] uptime: 14:29:20 up 36 min, 1 user, load average: 0.06, 0.06, 0.08 [INFO] memory: total used free shared buff/cache available Mem: 30Gi 3.5Gi 23Gi 339Mi 3.7Gi 26Gi Swap: 0B 0B 0B [INFO] ISPConfig is installed. ##### ISPCONFIG ##### ISPConfig version is 3.1.12 ##### VERSION CHECK ##### [INFO] php (cli) version is 5.6.40-63+0~20220929.69+debian10~1.gbp639d4c [INFO] php-cgi (used for cgi php in default vhost!) is version 7.4.32 ##### PORT CHECK ##### [WARN] Port 22 (SSH server) seems NOT to be listening ##### MAIL SERVER CHECK ##### ##### RUNNING SERVER PROCESSES ##### [INFO] I found the following web server(s): Unknown process (nginx (PID 1369) [INFO] I found the following mail server(s): Postfix (PID 1634) [INFO] I found the following pop3 server(s): Dovecot (PID 1104) [INFO] I found the following imap server(s): Dovecot (PID 1104) [INFO] I found the following ftp server(s): PureFTP (PID 1830) ##### LISTENING PORTS ##### (only () Local (Address) [localhost]:9700 (1116/php-fpm [localhost]:9668 (1116/php-fpm [localhost]:9604 (1116/php-fpm [localhost]:10023 (1416/postgrey) [localhost]:9639 (1116/php-fpm [localhost]:9607 (1116/php-fpm [localhost]:10024 (1756/amavisd-new) [localhost]:9704 (1116/php-fpm [localhost]:9608 (1116/php-fpm [localhost]:10025 (1634/master) [anywhere]:873 (1351/rsync) [localhost]:9545 (1116/php-fpm [localhost]:10026 (1756/amavisd-new) [localhost]:10027 (1634/master) [anywhere]:587 (1634/master) [localhost]:11211 (1357/memcached) [localhost]:9580 (1116/php-fpm [localhost]:9677 (1116/php-fpm [localhost]:9581 (1116/php-fpm [anywhere]:110 (1104/dovecot) [localhost]:9678 (1116/php-fpm [localhost]:9582 (1116/php-fpm [anywhere]:143 (1104/dovecot) [anywhere]:111 (1/init) [anywhere]:80 (1369/nginx [localhost]:9616 (1116/php-fpm [anywhere]:465 (1634/master) [localhost]:9617 (1067/php-fpm [localhost]:82 (1638/apache2) [localhost]:9683 (1116/php-fpm [localhost]:9556 (1116/php-fpm [anywhere]:21 (1830/pure-ftpd) [localhost]:9560 (1116/php-fpm [anywhere]:25 (1634/master) [localhost]:9625 (1116/php-fpm [localhost]:9690 (1067/php-fpm [localhost]:9595 (1116/php-fpm [localhost]:9596 (1116/php-fpm [localhost]:9693 (1116/php-fpm [localhost]:9565 (1116/php-fpm [localhost]:9696 (1116/php-fpm [localhost]:9600 (1067/php-fpm [anywhere]:993 (1104/dovecot) [localhost]:9569 (1116/php-fpm ***.***.***.***:5666 (1359/nrpe) [anywhere]:49922 (1167/sshd) [anywhere]:995 (1104/dovecot) *:*:*:*::*:10024 (1756/amavisd-new) *:*:*:*::*:873 (1351/rsync) *:*:*:*::*:3306 (1514/mysqld) *:*:*:*::*:10026 (1756/amavisd-new) *:*:*:*::*:587 (1634/master) [localhost]10 (1104/dovecot) [localhost]43 (1104/dovecot) [localhost]11 (1/init) *:*:*:*::*:8080 (1638/apache2) *:*:*:*::*:80 (1369/nginx *:*:*:*::*:465 (1634/master) *:*:*:*::*:8081 (1638/apache2) *:*:*:*::*:21 (1830/pure-ftpd) *:*:*:*::*:25 (1634/master) *:*:*:*::*:443 (1638/apache2) *:*:*:*::*:993 (1104/dovecot) *:*:*:*::*:49922 (1167/sshd) *:*:*:*::*:995 (1104/dovecot) ##### IPTABLES ##### Chain INPUT (policy DROP) target prot opt source destination f2b-postfix-sasl tcp -- [anywhere]/0 [anywhere]/0 multiport dports 25 f2b-pure-ftpd tcp -- [anywhere]/0 [anywhere]/0 multiport dports 21 f2b-sshd tcp -- [anywhere]/0 [anywhere]/0 multiport dports 22 ACCEPT all -- [anywhere]/0 [anywhere]/0 ACCEPT all -- [anywhere]/0 [anywhere]/0 state RELATED,ESTABLISHED ACCEPT all -- ***.***.***.***/8 [anywhere]/0 ACCEPT icmp -- [anywhere]/0 [anywhere]/0 ACCEPT all -- ***.***.***.***/25 [anywhere]/0 ACCEPT tcp -- [anywhere]/0 [anywhere]/0 tcp dpt:49922 ACCEPT tcp -- [anywhere]/0 [anywhere]/0 tcp dpt:80 ACCEPT tcp -- [anywhere]/0 [anywhere]/0 tcp dpt:8080 ACCEPT tcp -- [anywhere]/0 [anywhere]/0 tcp dpt:8081 ACCEPT tcp -- [anywhere]/0 [anywhere]/0 tcp dpt:443 ACCEPT tcp -- [anywhere]/0 [anywhere]/0 multiport dports 21,20000:21999,40110:40210 ACCEPT tcp -- [anywhere]/0 [anywhere]/0 tcp dpt:7000 ACCEPT udp -- [anywhere]/0 [anywhere]/0 udp dpt:7000 ACCEPT tcp -- [anywhere]/0 [anywhere]/0 multiport dports 25,993,995,465,587,143,110 Chain FORWARD (policy DROP) target prot opt source destination Chain OUTPUT (policy ACCEPT) target prot opt source destination Chain f2b-pure-ftpd (1 references) target prot opt source destination RETURN all -- [anywhere]/0 [anywhere]/0 Chain f2b-sshd (1 references) target prot opt source destination RETURN all -- [anywhere]/0 [anywhere]/0 Chain f2b-postfix-sasl (1 references) target prot opt source destination REJECT all -- ***.***.***.*** [anywhere]/0 reject-with icmp-port-unreachable REJECT all -- ***.***.***.*** [anywhere]/0 reject-with icmp-port-unreachable REJECT all -- ***.***.***.*** [anywhere]/0 reject-with icmp-port-unreachable RETURN all -- [anywhere]/0 [anywhere]/0 ##### LET'S ENCRYPT ##### Certbot is installed in /usr/bin/certbot
Ok, in the case of an ISPConfig system, the files in dovecot/conf.d/ are not used at all (except for an optional file conf.d/99-ispconfig-custom-config.conf), so it does not matter what's in there. Only the dovecot.conf file is relevant. The Sieve file name is .sieve and it is located in the Maildir.
UPDATE: In the /etc/dovecot/dovecot.conf there is a block: service imap-login { client_limit = 1000 process_limit = 512 # service_count = 0 # process_min_avail = 4 # vsz_limit = 1G } I commented out the 3 rows you see, all works fine now. Tomorrow I will investigate what the 3 commented rows mean Peter