From 3ce1790c0193284752bf380700a434497c842699 Mon Sep 17 00:00:00 2001 From: "Jean-Marc Pigeon (Delson)" Date: Sun, 22 Jun 2025 13:39:24 -0400 Subject: [PATCH] Adding passfile concept for dovecot --- Makefile | 1 + Makefile.dist | 5 ++++- conf/passfile | 3 +++ mailleur.spec.in | 3 ++- 4 files changed, 10 insertions(+), 2 deletions(-) create mode 100644 conf/passfile diff --git a/Makefile b/Makefile index b046a8f..88fbbbb 100644 --- a/Makefile +++ b/Makefile @@ -207,6 +207,7 @@ install : $(DESTDIR)/$(SBINDIR)/ @ cp -a \ conf/$(APPN).conf \ + conf/passfile \ $(DESTDIR)/$(ETCDIR)/$(APPN) @ cp -a \ certs/root-safe_CA.pem \ diff --git a/Makefile.dist b/Makefile.dist index 5503a9c..be8613e 100644 --- a/Makefile.dist +++ b/Makefile.dist @@ -45,7 +45,10 @@ tarfile : clean @ cp -a \ certs/root-safe_CA.pem \ $(APLV)/certs/ - @ cp -a conf/*.conf $(APLV)/conf/ + @ cp -a \ + conf/*.conf \ + passfile \ + $(APLV)/conf/ @ cp -a lib/{*.c,*.h} $(APLV)/lib/ @ cp -a linux/* $(APLV)/linux/ @ cp -a \ diff --git a/conf/passfile b/conf/passfile new file mode 100644 index 0000000..8c25b06 --- /dev/null +++ b/conf/passfile @@ -0,0 +1,3 @@ +#This file is an EXAMPLE to be use with dovecot to access email +user1:$6$qP9m5SFKn/ao8T4i$7mh4DGmfOnttbJjKnRQhFj550aPGlTDKoPUbKMzFB1KVqkjJvKaV2hu1I1Q7JdUhvR3/W530DmKUuMYsPWMWl.: +user2:!: diff --git a/mailleur.spec.in b/mailleur.spec.in index 87f808c..ba1f4eb 100644 --- a/mailleur.spec.in +++ b/mailleur.spec.in @@ -31,7 +31,8 @@ search about email exchange within time and transaction context. #----------------------------------------------------------------------------- %files %defattr(-,root,root,-) -%attr(0644,%{name},mail) %config(noreplace) %{_sysconfdir}/%{name}/* +%attr(0644,%{name},mail) %config(noreplace) %{_sysconfdir}/%{name}/%{name}.conf +%attr(0640,%{name},mail) %config(noreplace) %{_sysconfdir}/%{name}/passfile %attr(0755,root,root) %{_datadir}/%{name}/linux/osukiss/receiver %attr(0755,root,root) %{_datadir}/%{name}/linux/osukiss/sorter %attr(0644,%{name},mail) %config(noreplace) %{_sysconfdir}/pki/%{name}/* -- 2.47.3