sed -e "s|'mail_quota_enabled', '0'|'mail_quota_enabled', '1'|g" -i "${S}/install/froxlor.sql"|| die "Unable to set mailquota to 'On'"
fi
# default value is autoresponder='0'
if use autoresponder ;then
einfo "Switching 'autoresponder' to 'On'"
sed -e "s|'autoresponder_active', '0'|'autoresponder_active', '1'|g" -i "${S}/install/froxlor.sql"|| die "Unable to set autoresponder to 'On'"
fi
# default value is dkim_enabled='0'
if use domainkey && use bind;then
einfo "Switching 'domainkey' to 'On'"
@ -251,18 +244,6 @@ src_install() {
sed -e "s|'dkim_prefix', '/etc/postfix/dkim/'|'dkim_prefix', '/etc/mail/dkim-filter/'|g" -i "${S}/install/froxlor.sql"|| die "Unable to set domainkey prefix"
fi
# default value is aps_enabled='0'
if use aps ;then
einfo "Switching 'APS' to 'On'"
sed -e "s|'aps_active', '0'|'aps_active', '1'|g" -i "${S}/install/froxlor.sql"|| die "Unable to set aps to 'On'"
# if aps is used we enable required features in the php-cli php.ini
ewarn
ewarn "Note: APS requires the php setting 'allow_url_fopen' to be enabled"
ewarn " for the Froxlor vhost. Please adjust the corresponding php.ini"