I have checked the configure file and uid/gid. It configured correctly but still getting the same problem.
# Community: http://www.iredmail.org/community.html
#
[main]
# Authentication back-end to use
auth = Dovecot
# User DB back-end to use
userdb = Virtual
# Storage back-end to use
storage = Dovecot
# Bind to what address? (Ignored with --stdin)
#bindaddr = 127.0.0.1
# Listen on what port? (Ignored with --stdin)
port = 2000
# Write a pidfile here
pidfile = /var/run/pysieved/pysieved.pid
[Virtual]
# Append username to this for home directories
base = /var/vmail/sieve
# What UID and GID should own all files? -1 to not bother
uid = 503
gid = 503
# Switch user@host.name to host.name/user?
hostdirs = True
[Dovecot]
# How do we identify ourself to Dovecot? Default is 'pysieved'.
service = managesieve
# Path to Dovecot's auth socket (do not set unless you're using
# Dovecot auth)
mux = /var/spool/postfix/dovecot-auth
# Path to Dovecot's master socket (if using Dovecot userdb lookup)
master = /var/run/dovecot/auth-master
# Path to sievec
sievec = /usr/libexec/dovecot/sievec
# Where in user directory to store scripts.
scripts = .
# Filename used for the active SIEVE filter (see README.Dovecot)
active = dovecot.sieve
# What user/group owns the mail storage (-1 to never setuid/setgid)
uid = 503
gid = 503
The id of vmail group and user are correct (503)