madeITBelgium / vesta

VESTA Control Panel
https://www.tpweb.org
GNU General Public License v3.0
34 stars 15 forks source link

Autoreplay not working on exim 4.94-1 #86

Closed moucho closed 1 year ago

moucho commented 4 years ago

Operating System (OS/VERSION):

CentOS 7

VestaCP Version:

0.0.24

Installed Software (what you got with the installer):

apache, nginx, mysql, exim

Steps to Reproduce:

Setting an autoreplay for a mail account doesn't work, shows an error in exim log:

xxx@xxx.com R=autoreplay T=userautoreply defer (13): Permission denied: Tainted '/etc/exim/domains/xxx/autoreply.info.msg' (file for userautoreply transport) not permitted

Related Issues/Forum Threads:

Because the changes in exim 4.94-1

Other Notes:

moucho commented 3 years ago

@madeITBelgium I've tested the solution on https://github.com/madeITBelgium/vesta/commit/f39058f03045c043e01bdd03c22ecf18930a583a but it's not working either.

I think "userautoreply" transport should be modify also. I've tried with no avail so far.

moucho commented 3 years ago

Hi, I've tried the latest fix, sadly it's not working:

2020-10-23 16:42:46 1kVyHG-0003r9-6l ** info@example.com R=autoreplay T=userautoreply: Expansion of "${lookup{$local_part}dsearch{${extract{5}{:}{${lookup{$local_part}lsearch{/etc/exim/domains/${lookup{$domain}dsearch{/etc/exim/domains/}}/passwd}}}}/mail/${lookup{$domain}dsearch{/etc/exim/domains/}}}}@${lookup{$domain}dsearch{/etc/exim/domains/}}" failed in userautoreply transport: failed to open /home/admin/mail/example.com for directory search: Permission denied (euid=93 egid=93)

Edit: It seams that it is searching in the wrong folder

madeITBelgium commented 1 year ago

Fixed in 0.0.36: https://github.com/madeITBelgium/vesta/commit/e79122a5f8eaf23defe688e784e602960f2e5f0d