diff --git a/etc/vmail.conf b/etc/vmail.conf index 4591661..838ec0d 100644 --- a/etc/vmail.conf +++ b/etc/vmail.conf @@ -2,7 +2,7 @@ # any script that includes this conf file will force user to be vmail if [ "$USER" != "vmail" ]; then - exec su --shell /bin/bash "vmail" "$0" -- "$@" + exec sudo -u vmail $0 $@ fi # constants