diff --git a/README.md b/README.md index 67d7d52..663fb38 100644 --- a/README.md +++ b/README.md @@ -8,7 +8,7 @@ Installation Instructions: The configuration was designed for a standard Debian unstable installation. It's recommended you install Debian unstable on your sever, but with a little tweaking you may also get this working on other distributions and/or versions. Software you will need to install and configure by copying (and editing according to your needs) the configuration files supplied: -nginx, php7.0, php7.1, all php modules you want to support, sshd, vsftpd, phpmyadmin, adminer, mysql or mariadb, logrotate, tor, postfix, dovecot +nginx, php7.0, php7.1, all php modules you want to support, sshd, vsftpd, phpmyadmin, adminer, mysql or mariadb, logrotate, tor, postfix, dovecot, saslauthd This setup has two postfix instances, one for receiving and sending mail to other .onion services and one for rewriting addresses to pass them on to a clearnet facing mail relay. You may or may not want to create the second instance by running ``` @@ -52,6 +52,11 @@ Add a user to the SQL database for managing hosted sites and grant all privilege php /var/www/setup.php ``` +Enable systemd timers to regularly run various managing tasks: +``` +ln -s /etc/systemd/system/hosting-del.timer /etc/systemd/system/multi-user.target.wants/hosting-del.timer +ln -s /etc/systemd/system/hosting.timer /etc/systemd/system/multi-user.target.wants/hosting.timer +``` Live demo: ---------- diff --git a/var/www/cron.php b/var/www/cron.php index deb77d0..0424ec4 100644 --- a/var/www/cron.php +++ b/var/www/cron.php @@ -69,7 +69,7 @@ chdir = / pm = ondemand pm.max_children = 8 pm.process_idle_timeout = 10s; -php_admin_value[sendmail_path] = '/usr/bin/php /var/www/sendmail_wrapper.php \"Hosting <$onion.onion@" . ADDRESS . ">\" | /usr/sbin/sendmail -t -i' +php_admin_value[sendmail_path] = '/usr/bin/php /var/www/sendmail_wrapper.php \"$onion <$onion.onion@" . ADDRESS . ">\" | /usr/sbin/sendmail -t -i' php_admin_value[memory_limit] = 128M php_admin_value[disable_functions] = pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,exec,passthru,shell_exec,system,popen,proc_open,socket_listen,socket_create_listen,socket_bind,stream_socket_server,fsockopen,pfsockopen,posix_kill,php_uname,link,symlink,posix_uname php_admin_value[open_basedir] = /home/$onion.onion