From 774c9a3a1f97de84ed44d4239b36f64f37381975 Mon Sep 17 00:00:00 2001 From: demlasjr Date: Wed, 19 Mar 2014 00:39:40 +0100 Subject: [PATCH 1/2] Default DKIM keys with 1024-bit instead 512-bit Seems like Google is not very happy with the 512-bit. There are many news and blogs posts about it. Example: http://blog.wordtothewise.com/2012/11/gmail-sending-out-warnings-for-512-bit-dkim-keys/ I personally tested it with 1024-bit and 2048-bit and everything is working just fine. --- func/rebuild.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/func/rebuild.sh b/func/rebuild.sh index f69efd48..f4eee16c 100644 --- a/func/rebuild.sh +++ b/func/rebuild.sh @@ -455,7 +455,7 @@ rebuild_mail_domain_conf() { U_MAIL_DKMI=$((U_MAIL_DKMI + 1)) pem="$USER_DATA/mail/$domain.pem" pub="$USER_DATA/mail/$domain.pub" - openssl genrsa -out $pem 512 &>/dev/null + openssl genrsa -out $pem 1024 &>/dev/null openssl rsa -pubout -in $pem -out $pub &>/dev/null cp $pem $HOMEDIR/$user/conf/mail/$domain/dkim.pem From 98a76e92cb6df2aee51ac50badb5fca88b581c33 Mon Sep 17 00:00:00 2001 From: demlasjr Date: Wed, 19 Mar 2014 00:58:35 +0100 Subject: [PATCH 2/2] Added chmod 777 for phpmyadmin tmp folder Without chmod 777 for /var/lib/phpmyadmin/tmp, uploading a sql database through phpmyadmin generates the next errors: "Failed to load /etc/phpmyadmin/config-db.php Check group www-data has read access and open_basedir restrictions., PHP Warning: Unknown: open_basedir restriction in effect. File(/tmp) is not within the allowed path(s): (/usr/share/phpmyadmin/:/etc/phpmyadmin/:/var/lib/phpmyadmin/:/usr/share/php/php-gettext) in Unknown on line 0 PHP Warning: File upload error - unable to create a temporary file in Unknown on line 0" --- install/vst-install-ubuntu.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/install/vst-install-ubuntu.sh b/install/vst-install-ubuntu.sh index 3e8939f5..dac4ec1a 100644 --- a/install/vst-install-ubuntu.sh +++ b/install/vst-install-ubuntu.sh @@ -618,6 +618,7 @@ wget $CHOST/$VERSION/apache2-pma.conf -O /etc/phpmyadmin/apache.conf wget $CHOST/$VERSION/pma.conf -O /etc/phpmyadmin/config.inc.php ln -s /etc/phpmyadmin/apache.conf /etc/apache2/conf.d/phpmyadmin.conf mv -f /etc/phpmyadmin/config-db.php /etc/phpmyadmin/config-db.php_ +chmod 777 /var/lib/phpmyadmin/tmp # Roundcube configuration wget $CHOST/$VERSION/apache2-webmail.conf -O /etc/roundcube/apache.conf