Sieve permission problems

Discussion in 'Installation/Configuration' started by Janis, Feb 21, 2018.

  1. Janis

    Janis New Member

    After enable "Use Websites Linux uid for mailbox" in server configuration, i have error mesages for each new created mailbox in mail.log.
    sieve: failed to access user's Sieve script /var/vmail/domain.tld/user/.sieve (trying default script location instead): 1 Time(s)
    sieve: main script: failed to stat sieve script: stat(/var/vmail/domain.tld/user/.sieve) failed: Permission denied (euid=5245(web400) egid=5000(vmail) stat(/var/vmail/domain.tld/user/.sieve) failed: Permission denied): 1 Time(s)
    ISPConfig 3.1.11, Debian 8, single server.
     
    lweb20 likes this.
  2. lweb20

    lweb20 New Member

    Same here, Ubuntu 18.04 IspConfig 3.1.12

    Code:
    lmtp([email protected]): Error: ELG+G/Vp---3DQAA---65w: sieve: file storage: Failed to stat sieve storage path: stat(/data/vmail/domain.com/myuser/.sieve) failed: Permission denied (euid=10004(web4) egid=5000(vmail) stat(/data/vmail/domain.com/myuser/.sieve) failed: Permission denied)
    
    lmtp([email protected]): Error: ELG+G/---Fv3D---TUx---: sieve: Failed to access active Sieve script in user storage `/data/vmail/domain.com/myuser/sieve'
    Code:
    /data/vmail/domain.com/myuser# ls -la
    drwx------ 4 web4  vmail 4096 Jun 18 21:27 .
    drwxrwx--- 3 vmail vmail 4096 Jun 18 21:27 ..
    -rw------- 1 web4  vmail   46 Jun 18 21:27 .quotausage
    lrwxrwxrwx 1 root  root    21 Jun 18 21:27 .sieve -> sieve/ispconfig.sieve
    drwx------ 9 web4  vmail 4096 Jun 18 21:27 Maildir
    drwx------ 2 vmail vmail 4096 Jun 18 21:27 sieve
    
    /data/vmail/domain.com/myuser/sieve# ls -la
    total 12
    drwx------ 2 vmail vmail 4096 Jun 18 21:27 .
    drwx------ 4 web4  vmail 4096 Jun 18 21:27 ..
    -rw-r--r-- 1 vmail vmail   78 Jun 18 21:27 ispconfig.sieve
    UPDATE:
    For some reason it only fails when creating the mailbox but when updating it is fixed.

    Code:
    root@server2:/etc/amavis/conf.d# ls -la /data/vmail/*/*/sieve/ispconfig.sieve
    -rw-r--r-- 1 vmail vmail 78 Jun 20 13:41 /data/vmail/mydomain.tld/test1/sieve/ispconfig.sieve
    -rw-r--r-- 1 vmail vmail 78 Jun 20 13:41 /data/vmail/mydomain.tld/test2/sieve/ispconfig.sieve
    -rw-r--r-- 1 vmail vmail 78 Jun 20 13:41 /data/vmail/mydomain.tld/test3/sieve/ispconfig.sieve
    -rw-r--r-- 1 vmail vmail 78 Jun 20 13:41 /data/vmail/mydomain.tld/test4/sieve/ispconfig.sieve
    
    root@server2:/etc/amavis/conf.d# ls -la /data/vmail/*/*/sieve/ispconfig.sieve
    -rw-r--r-- 1 web3 vmail 78 Jun 20 13:41 /data/vmail/mydomain.tld/test1/sieve/ispconfig.sieve
    -rw-r--r-- 1 web3 vmail 78 Jun 20 13:41 /data/vmail/mydomain.tld/test2/sieve/ispconfig.sieve
    -rw-r--r-- 1 web3 vmail 78 Jun 20 13:41 /data/vmail/mydomain.tld/test3/sieve/ispconfig.sieve
    -rw-r--r-- 1 web3 vmail 78 Jun 20 13:41 /data/vmail/mydomain.tld/test4/sieve/ispconfig.sieve
     
    Last edited: Jun 20, 2018

Share This Page