Page 1 of 1

Autoreply MAIL userautoreply transport: Permission denied

Posted: Mon Oct 12, 2015 12:06 pm
by Sattva
Please help. :-o :-/

My VESTA CP Version: 0.9.7
After 3 years of usage decided to enable mail autoreply.

main.log:

Code: Select all

2015-10-12 12:33:44 1ZlZUG-0003H2-IG == [email protected] R=autoreplay T=userautoreply defer (0):
Failed to open file /etc/exim/domains/pifagor.org/autoreply.user5.msg
when sending message from userautoreply transport: Permission denied
Same problem with DKIM signature - Permission denied while trying to read *.pem file with signarure private key.

Code: Select all

#pwd
/home/alexey/conf/mail/pifagor.org

#ls -Al
-rw-rw---- 1 dovecot mail   34 Oct  6 12:24 aliases
-rw-rw---- 1 dovecot mail  877 Oct 12 13:00 autoreply.user5.msg <==========================
-rw-r--r-- 1 dovecot mail 1679 Oct  5 22:56 dkim.pem
-rw-rw---- 1 dovecot mail  659 Oct  6 12:24 passwd
-rw-rw---- 1 dovecot mail   19 Jul  7  2014 protection


#ls -Al  /home/alexey/conf/mail/
drwxrwx--- 2 dovecot mail 4096 Oct 12 13:00 pifagor.org

ls -Al  /home/alexey/conf/
drwxr-x--x 14 root root 4096 Oct 10 11:52 mail <==== root:root owner ok?


#su -s /bin/bash exim
#cat /home/alexey/conf/mail/pifagor.org/autoreply.user5.msg
---
Autoreply message contents - All ok with reights.
---


Re: Autoreply MAIL userautoreply transport: Permission denie

Posted: Mon Oct 12, 2015 12:10 pm
by Sattva
This:
change the root user for exim in the script v-add-mail-account-autoreply
pwd: /usr/local/vesta/bin/
line: 47
This
chown -R root:mail $HOMEDIR/$user/conf/mail/$domain/autoreply.$account.msg
For this
chown -R exim:mail $HOMEDIR/$user/conf/mail/$domain/autoreply.$account.msg
From here:
http://forum.vestacp.com/viewtopic.php? ... eply#p6717
didn't help.

And I chown autoreply.$account.msg to exim.