1 |
%define version 1.6.0 |
%define version 1.6.0 |
2 |
%define release 4 |
%define release 21 |
3 |
%define name smeserver-dovecot |
%define name smeserver-dovecot |
4 |
|
|
5 |
|
|
14 |
Patch0: smeserver-dovecot-1.6.0-set_cipher_list.patch |
Patch0: smeserver-dovecot-1.6.0-set_cipher_list.patch |
15 |
Patch1: smeserver-dovecot-1.6.0-pop3.patch |
Patch1: smeserver-dovecot-1.6.0-pop3.patch |
16 |
Patch2: smeserver-dovecot-1.6.0-bz10934-Ciphers-and-TLS.patch |
Patch2: smeserver-dovecot-1.6.0-bz10934-Ciphers-and-TLS.patch |
17 |
|
Patch3: smeserver-dovecot-1.6.0-bz9865-use-email-to-auth.patch |
18 |
|
Patch4: smeserver-dovecot-1.6.0-fix-createlinks-1.patch |
19 |
|
Patch5: smeserver-dovecot-1.6.0-bz11101-systemd.patch |
20 |
|
Patch6: smeserver-dovecot-1.6.0-bz10947-idle_notify.patch |
21 |
|
Patch7: smeserver-dovecot-1.6.0-bz11601-ssl-templated.patch |
22 |
|
Patch8: smeserver-dovecot-1.6.0-bz12399-forceimapdovecot.patch |
23 |
|
|
24 |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
25 |
BuildArchitectures: noarch |
BuildArchitectures: noarch |
39 |
Obsoletes: mailfront <= 1.10 |
Obsoletes: mailfront <= 1.10 |
40 |
Obsoletes: stunnel <= 4.15 |
Obsoletes: stunnel <= 4.15 |
41 |
Obsoletes: stunnel-tls <= 3.22 |
Obsoletes: stunnel-tls <= 3.22 |
|
Obsoletes: words <= 3.0 |
|
42 |
|
|
43 |
%description |
%description |
44 |
Configure the dovecot IMAP server with sieve scripts support, |
Configure the dovecot IMAP server with sieve scripts support, |
45 |
quota, ACL, extended logging, master user |
quota, ACL, extended logging, master user |
46 |
|
|
47 |
%changelog |
%changelog |
48 |
* Fri May 01 2020 Jean-Philipe Pialasse <tests@pialasse.com> 1.6.0-4.sme |
* Tue Aug 15 2023 Jean-Philippe Pialasse <tests@pialasse.com> 1.6.0-21.sme |
49 |
|
- force imap and dovecot satus=enabled to allow auth for webmail and smtp [SME: 12399] |
50 |
|
also migrate imap imaps pop3 pop3s as configuration, not service |
51 |
|
|
52 |
|
* Mon Aug 14 2023 Jean-Philippe Pialasse <tests@pialasse.com> 1.6.0-20.sme |
53 |
|
- remove obsoletes word as it prevents unrelated packages to install [SME: 12393] |
54 |
|
|
55 |
|
* Sun May 30 2021 Jean-Philippe Pialasse <tests@pialasse.com> 1.6.0-19.sme |
56 |
|
- ssl pem update via template expand in place of copy [SME: 11601] |
57 |
|
|
58 |
|
* Tue Mar 16 2021 Jean-Philippe Pialasse <tests@pialasse.com> 1.6.0-18.sme |
59 |
|
- clean rsyslog syntax for dovecot [SME: 11422] |
60 |
|
|
61 |
|
* Sat Jan 02 2021 Jean-Philipe Pialasse <tests@pialasse.com> 1.6.0-17.sme |
62 |
|
- add Restart=always [SME: 11101] |
63 |
|
|
64 |
|
* Mon Dec 14 2020 Jean-Philipe Pialasse <tests@pialasse.com> 1.6.0-16.sme |
65 |
|
- fix path for event -update [SME: 11101] |
66 |
|
|
67 |
|
* Tue Dec 08 2020 Jean-Philipe Pialasse <tests@pialasse.com> 1.6.0-15.sme |
68 |
|
- cleanup /var/service/dovecot [SME: 11101] |
69 |
|
close logger and service from previous runit instance before starting systemd one |
70 |
|
|
71 |
|
* Mon Dec 07 2020 Jean-Philipe Pialasse <tests@pialasse.com> 1.6.0-14.sme |
72 |
|
- add systemd drop-in expand in bootstrap-console-save, console-save, post-install, post-upgrade [SME: 11101] |
73 |
|
|
74 |
|
* Sun Dec 06 2020 Jean-Philipe Pialasse <tests@pialasse.com> 1.6.0-13.sme |
75 |
|
- move service to systemd [SME: 11101] |
76 |
|
- add imap idle notify interval setting [SME: 10947] |
77 |
|
|
78 |
|
* Mon May 04 2020 Jean-Philipe Pialasse <tests@pialasse.com> 1.6.0-12.sme |
79 |
|
- fix typo in enabling TLSv1.2 as default [SME: 10934] |
80 |
|
|
81 |
|
* Mon May 04 2020 John Crisp <jcrisp@safeandsoundit.co.uk> 1.6.0-10.sme |
82 |
|
- fix typo in 35ssl template [SME: 10934] |
83 |
|
|
84 |
|
* Mon May 04 2020 John Crisp <jcrisp@safeandsoundit.co.uk> 1.6.0-9.sme |
85 |
|
- fix typo in createlinks [SME: 10932] |
86 |
|
|
87 |
|
* Sat May 02 2020 Jean-Philipe Pialasse <tests@pialasse.com> 1.6.0-8.sme |
88 |
|
- revert property names with period in it [SME: 10934] |
89 |
|
|
90 |
|
* Sat May 02 2020 Jean-Philipe Pialasse <tests@pialasse.com> 1.6.0-7.sme |
91 |
|
- add property AcceptFullEmail with enabled as default [SME: 9865] |
92 |
|
* this allow to login using either username or username@domain.tld |
93 |
|
dovecot get the username part. |
94 |
|
|
95 |
|
* Fri May 01 2020 Jean-Philipe Pialasse <tests@pialasse.com> 1.6.0-5.sme |
96 |
- set TLSv1 and TLSv1.1 disabled as default [SME: 10934] |
- set TLSv1 and TLSv1.1 disabled as default [SME: 10934] |
97 |
* Amend cipher list |
* Amend cipher list |
98 |
* force cipher order |
* force cipher order |
99 |
* 4096 default dh parameter |
* 4096 default dh parameter |
100 |
|
* property names without period to avoid issues |
101 |
|
|
102 |
* Sun Apr 26 2020 Jean-Philipe Pialasse <tests@pialasse.com> 1.6.0-3.sme |
* Sun Apr 26 2020 Jean-Philipe Pialasse <tests@pialasse.com> 1.6.0-3.sme |
103 |
- Use Dovecot for pop3 and pop3s [SME: 7510] |
- Use Dovecot for pop3 and pop3s [SME: 7510] |
188 |
%patch0 -p1 |
%patch0 -p1 |
189 |
%patch1 -p1 |
%patch1 -p1 |
190 |
%patch2 -p1 |
%patch2 -p1 |
191 |
|
%patch3 -p1 |
192 |
|
%patch4 -p1 |
193 |
|
%patch5 -p1 |
194 |
|
rm -rf root/var/service |
195 |
|
mkdir -p root/etc/dovecot/ssl |
196 |
|
mkdir -p root/usr/lib/systemd/system/dovecot.service.d |
197 |
|
mkdir -p root/etc/e-smith/templates/usr/lib/systemd/system/dovecot.service.d/50koozali.conf |
198 |
|
%patch6 -p1 |
199 |
|
%patch7 -p1 |
200 |
|
%patch8 -p1 |
201 |
|
|
202 |
%build |
%build |
203 |
perl createlinks |
perl createlinks |
207 |
(cd root ; /usr/bin/find . -depth -print | /bin/cpio -dump $RPM_BUILD_ROOT) |
(cd root ; /usr/bin/find . -depth -print | /bin/cpio -dump $RPM_BUILD_ROOT) |
208 |
/bin/rm -f %{name}-%{version}-filelist |
/bin/rm -f %{name}-%{version}-filelist |
209 |
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT \ |
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT \ |
210 |
--file /var/service/dovecot/run 'attr(0755,root,root)' \ |
--file /sbin/e-smith/systemd/dovecot-control 'attr(0554,root,root)'\ |
|
--file /var/service/dovecot/log/run 'attr(0755,root,root)' \ |
|
|
--file /var/service/dovecot/control/1 'attr(0755,root,root)' \ |
|
211 |
--dir /var/log/dovecot 'attr(0750,smelog,smelog)' \ |
--dir /var/log/dovecot 'attr(0750,smelog,smelog)' \ |
212 |
> %{name}-%{version}-filelist |
> %{name}-%{version}-filelist |
213 |
|
|
217 |
%clean |
%clean |
218 |
rm -rf $RPM_BUILD_ROOT |
rm -rf $RPM_BUILD_ROOT |
219 |
|
|
220 |
|
|
221 |
%pre |
%pre |
222 |
|
if [ $1 -gt 1 ] ; then |
223 |
|
if [ -e /var/service/dovecot/run ] ; then |
224 |
|
/usr/bin/sv d dovecot |
225 |
|
/usr/bin/sv d dovecot/log |
226 |
|
fi |
227 |
|
if [ -e /var/service/dovecot ] ; then |
228 |
|
rm -rf /var/service/dovecot |
229 |
|
fi |
230 |
|
if [ -e /var/service/pop3 ] ; then |
231 |
|
rm -rf /var/service/pop3 |
232 |
|
fi |
233 |
|
if [ -e /var/service/pop3s ] ; then |
234 |
|
rm -rf /var/service/pop3s |
235 |
|
fi |
236 |
|
|
237 |
|
fi |
238 |
%post |
%post |
239 |
|
|
240 |
%preun |
%preun |