+if [ $( lsb_release -c | cut -f 2 ) == "trusty" ]; then
+ service mysql restart
+elif [ $( lsb_release -c | cut -f 2 ) == "xenial" ]; then
+ systemctl restart mysql
+fi
+
+
+
+#configure rudimentary mail server (local delivery only)
+#add Friendica accounts for local user accounts, use email address like vagrant@friendica.dev, read the email with 'mail'.
+if [ $( lsb_release -c | cut -f 2 ) == "trusty" ]; then
+ debconf-set-selections <<< "postfix postfix/mailname string friendica-trusty.dev"
+elif [ $( lsb_release -c | cut -f 2 ) == "xenial" ]; then
+ debconf-set-selections <<< "postfix postfix/mailname string friendica-xenial.dev"
+fi
+debconf-set-selections <<< "postfix postfix/main_mailer_type string 'Local Only'"
+sudo apt-get install -y postfix mailutils libmailutils-dev
+sudo echo -e "friendica1: vagrant\nfriendica2: vagrant\nfriendica3: vagrant\nfriendica4: vagrant\nfriendica5: vagrant" >> /etc/aliases && sudo newaliases