@ install -d $(DESTDIR)/$(EXECDIR)/$(APPN)/
@ install -d $(DESTDIR)/$(SPOOLDIR)/$(APPN)/mails
@ install -d $(DESTDIR)/$(SPOOLDIR)/$(APPN)/queue
+ @ install -d $(DESTDIR)/var/www/$(APPN)/
@ cp -a \
bin-*/ \
$(DESTDIR)/$(EXECDIR)/$(APPN)
#-----------------------------------------------------------------------------
%{?!dist: %define dist @@DIST@@}
%define spooldir %{_localstatedir}/spool/
+%define wwwdir %{_localstatedir}/www/
%define dovedir %{_sysconfdir}/%{name}/dovecot
#-----------------------------------------------------------------------------
Name : @@APPN@@
%attr(0754,root,root) %config(noreplace) %{_libdir}/%{name}/support/do_dns_tlsa.sh
%attr(0750,%{name},mail) %{_libdir}/%{name}/support/mailleur-reset-db.sh
%attr(0750,%{name},mail) %{_libdir}/%{name}/support/mailleur-settest-db.sh
-%attr(0755,%{name},mail) %dir %{spooldir}/%{name}
+%attr(0755,%{name},mail) %dir %{spooldir}/%{name}/
%attr(0755,%{name},mail) %dir %{spooldir}/%{name}/queue
%attr(0750,%{name},mail) %dir %{spooldir}/%{name}/mails
+%attr(0750,%{name},apache) %dir %{wwwdir}/%{name}/
%attr(0640,root,root) %{_datadir}/%{name}/sql/Makefile
%attr(0644,root,root) %{_datadir}/%{name}/sql/datatest.def
%attr(0644,root,root) %{_datadir}/%{name}/sql/*.sql
RewriteCond %{HTTP_HOST} ^$APPNAME\.$reldom [OR]
RewriteCond %{HTTP_HOST} ^`hostname -s`\.$reldom
RewriteRule ^(.*)$ https://`hostname -s`.$domain [R=301]
- ErrorLog logs/clemerr.log
- TransferLog logs/clemlog.log
+ ErrorLog logs/mailerr.log
+ TransferLog logs/maillog.log
</VirtualHost>
#-----------------------------------------------------------------
#Listening on TLS port
Listen 443
+
+SSLSessionCache "shmcb:logs/ssl_scache(512000)"
+SSLSessionCacheTimeout 300
+
#-----------------------------------------------------------------
<VirtualHost *:443>
ServerName `hostname`
SSLCompression OFF
SSLHonorCipherOrder ON
#----------------------------------------------
- ErrorLog logs/clemerr-ssl.log
- TransferLog logs/clemlog-ssl.log
+ ErrorLog logs/mailerr-ssl.log
+ TransferLog logs/maillog-ssl.log
</VirtualHost>
#$APPNAME STOP