Sieve return code 89

Discussion in 'ISPConfig 3 Priority Support' started by medo, Apr 6, 2022.

  1. medo

    medo Member

    Hi,
    I have an error when updating any mail account :
    6.04.2022-10:29 - DEBUG [system.inc:2399] - safe_exec cmd: sievec '/var/vmail/XXX/.ispconfig.sieve' - return code: 89

    any idea about this ?
    it seems to be blocing any update on mail users.

    Thank you.
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    Do you use any custom sieve rules in that mailbox?
     
  3. medo

    medo Member

    no, ispconfig rule to move junk to junk folder
     
  4. till

    till Super Moderator Staff Member ISPConfig Developer

  5. till

    till Super Moderator Staff Member ISPConfig Developer

    And this debug notice does not block updates on the mail system, so if updates are blocked, then you probably have a different issue and you should post the whole debug output from server.sh script.
     
  6. medo

    medo Member

    Here is what i get whenever updateing a mail account :

    sievec(root): Error: user root: Initialization failed: Initializing mail storage from environment MAIL failed: Ambiguous mail location setting, don't know what to do with it: /var/spool/mail/root (try prefixing it with mbox: or maildir:)
    sievec(root): Fatal: Invalid user settings. Refer to server log for more information.

    I am unable to make changes to mail accounts.

    Thank you.
     
  7. medo

    medo Member

    here is the result of test script :
    Code:
    ##### SERVER #####
    IP-address (as per hostname): ***.***.***.***
    IP-address(es) (as per ifconfig): ***.***.***.***
    [INFO] OS version is CentOS release 6.10 (Final)
    
    [INFO] uptime:  12:54:10 up 860 days, 14:26,  2 users,  load average: 0.00, 0.03, 0.05
    
    [INFO] memory:
                 total       used       free     shared    buffers     cached
    Mem:          5.8G       5.2G       605M       608K       640M       2.4G
    -/+ buffers/cache:       2.2G       3.6G
    Swap:         5.8G       1.9G       3.9G
    
    [INFO] ISPConfig is installed.
    
    ##### ISPCONFIG #####
    ISPConfig version is 3.2.8p1
    
    
    ##### VERSION CHECK #####
    
    [INFO] php (cli) version is 7.3.25
    [INFO] php-cgi (used for cgi php in default vhost!) is version 7.3.25
    
    ##### PORT CHECK #####
    
    [WARN] Port 8081 (ISPConfig Apps) seems NOT to be listening
    [WARN] Port 21 (FTP server) seems NOT to be listening
    [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 (httpd) (PID 3506)
    [INFO] I found the following mail server(s):
            Postfix (PID 1491)
    [INFO] I found the following pop3 server(s):
            Dovecot (PID 19011)
    [INFO] I found the following imap server(s):
            Unknown process (dovecot/imap-l) (PID 1104)
    [WARN] I could not determine which ftp server is running.
    
    ##### LISTENING PORTS #####
    (only           ()
    Local           (Address)
    ***.***.***.***:53              (11112/named)
    [localhost]:53          (11112/named)
    [anywhere]:25           (1491/master)
    [localhost]:953         (11112/named)
    [anywhere]:993          (1104/dovecot/imap-l)
    [anywhere]:10050                (27925/zabbix_agentd)
    [anywhere]:995          (19011/dovecot)
    [localhost]:10024               (5715/amavisd)
    [localhost]:9000                (25683/php-fpm)
    [localhost]:10025               (1491/master)
    [localhost]:10026               (5715/amavisd)
    [localhost]:10027               (1491/master)
    [anywhere]:587          (1491/master)
    [anywhere]:110          (19011/dovecot)
    [localhost]:3310                (5423/clamd)
    [anywhere]:2222         (1752/sshd)
    [localhost]:783         (31207/spamd.pid)
    [anywhere]:143          (1104/dovecot/imap-l)
    [anywhere]:465          (1491/master)
    *:*:*:*::*:53           (11112/named)
    *:*:*:*::*:953          (11112/named)
    *:*:*:*::*:443          (3506/httpd)
    *:*:*:*::*:993          (1104/dovecot/imap-l)
    [localhost]0050         (27925/zabbix_agentd)
    *:*:*:*::*:995          (19011/dovecot)
    *:*:*:*::*:10024                (5715/amavisd)
    *:*:*:*::*:10026                (5715/amavisd)
    *:*:*:*::*:3306         (21939/mysqld)
    [localhost]10           (19011/dovecot)
    *:*:*:*::*:2222         (1752/sshd)
    [localhost]43           (1104/dovecot/imap-l)
    *:*:*:*::*:8080         (3506/httpd)
    *:*:*:*::*:80           (3506/httpd)
    
    
    
    
    ##### IPTABLES #####
    Chain INPUT (policy ACCEPT)
    target     prot opt source               destination
    fail2ban-SSH  tcp  --  [anywhere]/0            [anywhere]/0           tcp dpt:22
    ACCEPT     all  --  [anywhere]/0            [anywhere]/0           state RELATED,ESTABLISHED
    ACCEPT     icmp --  [anywhere]/0            [anywhere]/0
    ACCEPT     all  --  [anywhere]/0            [anywhere]/0
    ACCEPT     tcp  --  [anywhere]/0            [anywhere]/0           state NEW tcp dpt:2222
    ACCEPT     tcp  --  [anywhere]/0            [anywhere]/0           state NEW tcp dpt:80
    ACCEPT     tcp  --  [anywhere]/0            [anywhere]/0           state NEW tcp dpt:443
    ACCEPT     tcp  --  ***.***.***.***        [anywhere]/0           state NEW tcp dpt:8080
    ACCEPT     tcp  --  ***.***.***.***         [anywhere]/0           state NEW tcp dpt:8080
    ACCEPT     tcp  --  ***.***.***.***        [anywhere]/0           state NEW tcp dpt:8080
    ACCEPT     tcp  --  [anywhere]/0            [anywhere]/0           state NEW tcp dpt:25
    ACCEPT     tcp  --  [anywhere]/0            [anywhere]/0           state NEW tcp dpt:465
    ACCEPT     tcp  --  [anywhere]/0            [anywhere]/0           state NEW tcp dpt:467
    ACCEPT     tcp  --  [anywhere]/0            [anywhere]/0           state NEW tcp dpt:467
    ACCEPT     tcp  --  [anywhere]/0            [anywhere]/0           state NEW tcp dpt:587
    ACCEPT     tcp  --  [anywhere]/0            [anywhere]/0           state NEW tcp dpt:110
    ACCEPT     tcp  --  [anywhere]/0            [anywhere]/0           state NEW tcp dpt:143
    ACCEPT     tcp  --  [anywhere]/0            [anywhere]/0           state NEW tcp dpt:993
    ACCEPT     tcp  --  [anywhere]/0            [anywhere]/0           state NEW tcp dpt:995
    ACCEPT     tcp  --  ***.***.***.***       [anywhere]/0           state NEW tcp dpt:10050
    ACCEPT     tcp  --  ***.***.***.***         [anywhere]/0           state NEW tcp dpt:10050
    ACCEPT     tcp  --  ***.***.***.***         [anywhere]/0           state NEW tcp dpt:3306
    ACCEPT     tcp  --  ***.***.***.***         [anywhere]/0           state NEW tcp dpt:3306
    ACCEPT     tcp  --  ***.***.***.***        [anywhere]/0           state NEW tcp dpt:3306
    REJECT     all  --  [anywhere]/0            [anywhere]/0           reject-with icmp-host-prohibited
    
    Chain FORWARD (policy ACCEPT)
    target     prot opt source               destination
    REJECT     all  --  [anywhere]/0            [anywhere]/0           reject-with icmp-host-prohibited
    
    Chain OUTPUT (policy ACCEPT)
    target     prot opt source               destination
    ACCEPT     tcp  --  [anywhere]/0            [localhost]           tcp dpt:25
    ACCEPT     tcp  --  [anywhere]/0            [anywhere]/0           tcp dpt:25 owner GID match 89
    ACCEPT     tcp  --  [anywhere]/0            [anywhere]/0           tcp dpt:25 owner UID match 0
    REJECT     tcp  --  [anywhere]/0            [anywhere]/0           tcp dpt:25 reject-with icmp-port-unreachable
    
    Chain fail2ban-SSH (1 references)
    target     prot opt source               destination
    RETURN     all  --  [anywhere]/0            [anywhere]/0
    
    
    
    
    ##### LET'S ENCRYPT #####
    Certbot is installed in /root/.local/share/letsencrypt/bin/letsencrypt
    
    
    
     
  8. medo

    medo Member

    OS: CentOS 6
    PHP : PHP 7.3.25 (cli)
     
  9. till

    till Super Moderator Staff Member ISPConfig Developer

    First, you use a very old OS. CentOS 6 support has been dropped in ISPConfig quite some time ago. But this does not necessarily mean that this is the cause of the issue. Which maildir path have you set under system > server config > mail in ISPConfig? And please post the .ispconfig.sieve of that account.
     
  10. medo

    medo Member

    The path is /var/vmail/[domain]/[localpart] and the .ispconfig.sieve content is :
    Code:
    # This sieve script is generated by ISPConfig, any changes made will be overwritten.
    # You can create and activate a per-user sieve script (manually or via managesieve),
    # which will execute before this.
    
    require ["fileinto", "mailbox", "regex", "date", "relational", "vacation", "imap4flags", "envelope", "subaddress", "copy", "reject"];
    
    I know I have to migrate it, it is the last of a multiserver setup to be centos 6.
     
  11. till

    till Super Moderator Staff Member ISPConfig Developer

    The sieve file looks fine to me. Please take a look into the ispconfig database with e.g. phpmyadmin, table mail_user. Which maildir path is set there for this mailbox?
     

Share This Page