Hotcrp

less than 1 minute read

Setting up HotCRP!

sudo apt-get update sudo apt-get install git git clone https://github.com/kohler/hotcrp.git sudo apt-get install apache2 sudo apt-get install php5 sudo apt-get install mysql-server sudo mysql_secure_installation sudo mysql_install_db sudo apt-get install zip sudo apt-get install python-poppler sudo apt-get install php5-common php5-gd php5-mysql libapache2-mod-php5

sudo apt-get install postfix mailutils

vi /etc/postfix/sasl_passwd [smtp.gmail.com]:587 username@gmail.com:password

chmod 600 /etc/postfix/sasl_passwd sudo postmap /etc/postfix/sasl_passwd

vi /etc/postfix/main.cf relayhost = [smtp.gmail.com]:587 smtp_use_tls = yes smtp_sasl_auth_enable = yes smtp_sasl_security_options = smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd smtp_tls_CAfile = /etc/postfix/cacert.pem smtp_tls_policy_maps = hash:/etc/postfix/tls_policy

cat /etc/ssl/certs/thawte_Primary_Root_CA.pemsudo tee -a /etc/postfix/cacert.pem

sudo vi /etc/postfix/tls_policy [smtp.gmail.com]:587 encrypt

sudo postmap /etc/postfix/tls_policy

sudo /etc/init.d/postfix reload

https://support.google.com/accounts/answer/6010255 https://www.google.com/accounts/DisplayUnlockCaptcha

echo “Test mail from postfix”mail -s “Test Postfix” you@example.com

Sendmail might be slow at sending mails. Fix it using https://www.digitalocean.com/community/questions/sendmail-is-slow-to-send-mail

Updated: