ERROR 500 / command not in docroot



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/ --user bouke --start
==> sudo -iHu "bouke" -- /usr/bin/python2.7 "/usr/share/mailpile/multipile/" --start --port="38578" --host=""
WARNING: [Errno 13] Permission denied: '/var/lib/mailpile/apache/usermap.txt'
==> screen -S mailpile -d -m "/usr/bin/mailpile" "--www=" "--idlequit=604800" "--pid=/var/lib/mailpile/pids/" --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

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 -> ../
# ls -lah /usr/share/mailpile/multipile/www/../ 
-rwxr-xr-x 1 root root 25K Dec 28  2015 /usr/share/mailpile/multipile/www/../

Kindly asking for your help. Thank you.


I did switch off SuEXEC for the domain that runs MailPile. After switching SuEXEC off it works and I could set a password - next logon. Thank you.