From 4ae17839dac0d4c485a97e264046d5e9b57d72d5 Mon Sep 17 00:00:00 2001 From: "Jean-Marc Pigeon (Delson)" Date: Mon, 25 Aug 2025 10:53:15 -0400 Subject: [PATCH] Improving mailleur httpd configuration file --- Makefile | 1 + mailleur.spec.in | 4 +++- support/do_httpd.sh | 12 ++++++++---- 3 files changed, 12 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index 816dd79..3e57cc1 100644 --- a/Makefile +++ b/Makefile @@ -223,6 +223,7 @@ install : @ 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) diff --git a/mailleur.spec.in b/mailleur.spec.in index 42ece7e..1a04e5c 100644 --- a/mailleur.spec.in +++ b/mailleur.spec.in @@ -1,6 +1,7 @@ #----------------------------------------------------------------------------- %{?!dist: %define dist @@DIST@@} %define spooldir %{_localstatedir}/spool/ +%define wwwdir %{_localstatedir}/www/ %define dovedir %{_sysconfdir}/%{name}/dovecot #----------------------------------------------------------------------------- Name : @@APPN@@ @@ -67,9 +68,10 @@ search about email exchange within time and transaction context. %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 diff --git a/support/do_httpd.sh b/support/do_httpd.sh index 5660f28..bccec60 100755 --- a/support/do_httpd.sh +++ b/support/do_httpd.sh @@ -44,13 +44,17 @@ cat >> /etc/httpd/conf.d/$APPNAME.conf < #----------------------------------------------------------------- #Listening on TLS port Listen 443 + +SSLSessionCache "shmcb:logs/ssl_scache(512000)" +SSLSessionCacheTimeout 300 + #----------------------------------------------------------------- ServerName `hostname` @@ -77,8 +81,8 @@ Listen 443 SSLCompression OFF SSLHonorCipherOrder ON #---------------------------------------------- - ErrorLog logs/clemerr-ssl.log - TransferLog logs/clemlog-ssl.log + ErrorLog logs/mailerr-ssl.log + TransferLog logs/maillog-ssl.log #$APPNAME STOP -- 2.47.3