Hello,
I just installed Mail Pile. I am running Debian Linux 10.6 and ISPConfig.
After adding “RewriteOptions Inherit” to the Apache2 config, I was able to open the login page. I did follow the directions to add a user. I did notice the warning about permissions on the file usermap.txt.
$ sudo /usr/share/mailpile/multipile/mailpile-admin.py --user bouke --start
==> sudo -iHu "bouke" -- /usr/bin/python2.7 "/usr/share/mailpile/multipile/mailpile-admin.py" --start --port="38578" --host="127.0.0.1"
WARNING: [Errno 13] Permission denied: '/var/lib/mailpile/apache/usermap.txt'
==> screen -S mailpile -d -m "/usr/bin/mailpile" "--www=127.0.0.1:38578/mailpile/bouke/" "--idlequit=604800" "--pid=/var/lib/mailpile/pids/bouke.pid" --interact
===[ SUCCESS! ]===
===[ SUCCESS! ]===
==> chown -R www-data:www-data /var/lib/mailpile/apache
==> chmod go+rwxt /var/lib/mailpile/pids
===[ SUCCESS! ]===
I did re-run the command as root. The lines in the usermap.txt file are:
# cat /var/lib/mailpile/apache/usermap.txt
##
## usermap.txt - User map to mailpile port
##
bouke 127.0.0.1:38578
apache_map_test ok
## EOF
When I try to login, the following error is being given for the file admin.cgi:
# ERROR 500 - Internal Server Error!
## The following error occurred:
The requested URL caused an internal server error.
If you get this message repeatedly please contact the webmaster.
When I look into the suexec.log, I see lines in the following:
[2020-10-25 12:14:05]: uid: (5004/web1) gid: (5005/client0) cmd: admin.cgi
[2020-10-25 12:14:05]: command not in docroot (/usr/share/mailpile/multipile/www/admin.cgi)
but the files do exist:
# ls -lah /usr/share/mailpile/multipile/www/admin.cgi
lrwxrwxrwx 1 root root 20 Dec 28 2015 /usr/share/mailpile/multipile/www/admin.cgi -> ../mailpile-admin.py
# ls -lah /usr/share/mailpile/multipile/www/../mailpile-admin.py
-rwxr-xr-x 1 root root 25K Dec 28 2015 /usr/share/mailpile/multipile/www/../mailpile-admin.py
Kindly asking for your help. Thank you.