forked from davidhrbac/specs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
dovecot-1.2.spec
1245 lines (998 loc) · 43.3 KB
/
dovecot-1.2.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
Summary: Secure imap and pop3 server
Name: dovecot
Epoch: 1
Version: 1.2.17
Release: 1%{?dist}
#dovecot itself is MIT, a few sources are PD, (manage)sieve is LGPLv2, perfect_maildir.pl is GPLv2+
License: MIT and LGPLv2 and GPLv2+
Group: System Environment/Daemons
%define build_postgres 1
%define build_mysql 1
%define build_sqlite 1
%define build_ldap 1
%define build_gssapi 1
%define build_sieve 1
%define build_managesieve 1
%define ver4mansieve 1.2.17
%define sieve_version 0.1.19
%define sieve_name dovecot-1.2-sieve
%define managesieve_version 0.11.13
%define managesieve_name dovecot-1.2-managesieve
%if %{?fedora}00%{?rhel} < 6
%define _initddir %{_initrddir}
%endif
URL: http://www.dovecot.org/
Source: http://www.dovecot.org/releases/1.2/%{name}-%{version}.tar.gz
Source1: dovecot.init
Source101: dovecot.init-nopid
Source2: dovecot.pam
Source3: maildir-migration.txt
Source4: migrate-folders
Source5: migrate-users
Source6: perfect_maildir.pl
Source8: http://www.rename-it.nl/dovecot/1.2/%{sieve_name}-%{sieve_version}.tar.gz
Source9: dovecot.sysconfig
Source10: http://www.rename-it.nl/dovecot/1.2/%{managesieve_name}-%{managesieve_version}.tar.gz
Source11: http://www.rename-it.nl/dovecot/1.2/dovecot-%{ver4mansieve}-managesieve-%{managesieve_version}.diff.gz
Source12: dovecot.8
Source13: dovecotpw.1
Source14: dovecot.conf.5
#Patch1: dovecot-1.2-default-settings.patch
Patch2: dovecot-1.0.beta2-mkcert-permissions.patch
Patch3: dovecot-1.0.rc7-mkcert-paths.patch
Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: openssl-devel, pam-devel, zlib-devel, libcap-devel, bzip2-devel
BuildRequires: libtool autoconf automake pkgconfig
# gettext-devel is needed for running autoconf because of the
# presence of AM_ICONV
BuildRequires: gettext-devel
# Explicit Runtime Requirements
#Requires: openssl >= 0.9.7f-4
Requires: openssl
# Package includes an initscript service file, needs to require initscripts package
Requires: initscripts
Requires(pre): /usr/sbin/useradd
Requires(post): /sbin/chkconfig, /usr/sbin/useradd, /sbin/chkconfig
Requires(preun): /usr/sbin/userdel, /usr/sbin/groupdel, /sbin/chkconfig, /sbin/service
Requires(postun): /sbin/service
%if %{build_postgres}
BuildRequires: postgresql-devel
%endif
%if %{build_mysql}
BuildRequires: mysql-devel
%endif
%if %{build_sqlite}
BuildRequires: sqlite-devel
%endif
%if %{build_ldap}
BuildRequires: openldap-devel
%endif
%if %{build_gssapi}
BuildRequires: krb5-devel
%endif
%define docdir %{_docdir}/%{name}
%define ssldir %{_sysconfdir}/pki/%{name}
%description
Dovecot is an IMAP server for Linux/UNIX-like systems, written with security
primarily in mind. It also contains a small POP3 server. It supports mail
in either of maildir or mbox formats.
The SQL drivers and authentication plug-ins are in their subpackages.
%if %{build_sieve}
%package sieve
Requires: %{name} = %{epoch}:%{version}-%{release}
Summary: Sieve plug-in for dovecot LDA
Group: System Environment/Daemons
License: MIT and LGPLv2+
%description sieve
This package provides sieve plug-in version %{sieve_version} for dovecot LDA.
%endif
%if %{build_managesieve}
%package managesieve
Requires: %{name} = %{epoch}:%{version}-%{release}
Summary: Manage Sieve daemon for dovecot
Group: System Environment/Daemons
License: LGPLv2
%description managesieve
This package provides the Manage Sieve daemon version %{managesieve_version} for dovecot.
%endif
%if %{build_postgres}
%package pgsql
Requires: %{name} = %{epoch}:%{version}-%{release}
Summary: Postgres SQL back end for dovecot
Group: System Environment/Daemons
%description pgsql
This package provides the Postgres SQL back end for dovecot-auth etc.
%endif
%if %{build_mysql}
%package mysql
Requires: %{name} = %{epoch}:%{version}-%{release}
Summary: MySQL back end for dovecot
Group: System Environment/Daemons
%description mysql
This package provides the MySQL back end for dovecot-auth etc.
%endif
%if %{build_sqlite}
%package sqlite
Requires: %{name} = %{epoch}:%{version}-%{release}
Summary: SQLite back end for dovecot
Group: System Environment/Daemons
%description sqlite
This package provides the SQLite back end for dovecot-auth etc.
%endif
%if %{build_ldap}
%package ldap
Requires: %{name} = %{epoch}:%{version}-%{release}
Summary: LDAP auth plug-in for dovecot
Group: System Environment/Daemons
%description ldap
This package provides the LDAP auth plug-in for dovecot-auth etc.
%endif
%if %{build_gssapi}
%package gssapi
Requires: %{name} = %{epoch}:%{version}-%{release}
Summary: GSSAPI auth mechanism plug-in for dovecot
Group: System Environment/Daemons
%description gssapi
This package provides the GSSAPI auth mechanism plug-in for dovecot-auth etc.
%endif
%package devel
Requires: %{name} = %{epoch}:%{version}-%{release}
Summary: Development files for dovecot
Group: Development/Libraries
%description devel
This package provides the development files for dovecot.
%prep
%setup -q
zcat %{SOURCE11} | patch -p1 --fuzz=0 -s
#%patch1 -p1 -b .default-settings
%patch2 -p1 -b .mkcert-permissions
%patch3 -p1 -b .mkcert-paths
%if %{build_sieve}
%setup -q -D -T -a 8
%endif
%if %{build_managesieve}
%setup -q -D -T -a 10
%endif
%build
rm -f ./"configure"
autoreconf -i -f
%configure \
INSTALL_DATA="install -c -p -m644" \
--enable-header-install \
--disable-static \
--with-libcap \
%if %{build_postgres}
--with-pgsql \
%endif
%if %{build_mysql}
--with-mysql \
%endif
%if %{build_sqlite}
--with-sqlite \
%endif
--with-sql=plugin \
--with-sql-drivers \
--with-ssl=openssl \
--with-ssldir=%{ssldir} \
%if %{build_ldap}
--with-ldap=plugin \
%endif
%if %{build_gssapi}
--with-gssapi=plugin
%endif
make %{?_smp_mflags}
%if %{build_sieve}
cd %{sieve_name}-%{sieve_version}
rm -f ./"configure"
autoreconf -i -f
%configure \
INSTALL_DATA="install -c -p -m644" \
--disable-static \
--with-dovecot=../ \
--with-unfinished-features
make %{?_smp_mflags}
%endif
%if %{build_managesieve}
cd ..
cd %{managesieve_name}-%{managesieve_version}
rm -f ./"configure"
autoreconf -i -f
%configure \
INSTALL_DATA="install -c -p -m644" \
--disable-static \
--with-dovecot=../ \
--with-dovecot-sieve=../%{sieve_name}-%{sieve_version}/
make %{?_smp_mflags}
%endif
%install
rm -rf $RPM_BUILD_ROOT
make install DESTDIR=$RPM_BUILD_ROOT
rm -rf $RPM_BUILD_ROOT%{_datadir}/%{name}
#%if %{?fedora}00%{?rhel} < 6
#sed -i 's|password-auth|system-auth|' %{SOURCE2}
#%endif
install -p -m 755 src/plugins/convert/convert-tool $RPM_BUILD_ROOT%{_libexecdir}/%{name}
#install -p -D -m 755 %{SOURCE1} $RPM_BUILD_ROOT%{_initddir}/dovecot
%if %{?rhel} <= 5
install -p -D -m 755 %{SOURCE101} $RPM_BUILD_ROOT%{_initddir}/dovecot
%else
install -p -D -m 755 %{SOURCE1} $RPM_BUILD_ROOT%{_initddir}/dovecot
%endif
install -p -D -m 644 %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/pam.d/dovecot
# Detect whether the system is using pam_stack
if test -f /%{_lib}/security/pam_stack.so \
&& ! grep "Deprecated pam_stack module" /%{_lib}/security/pam_stack.so \
2>&1 > /dev/null; then
perl -pi -e's,include(\s*)(.*),required\1pam_stack.so service=\2,' \
$RPM_BUILD_ROOT%{_sysconfdir}/pam.d/dovecot
touch -r %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/pam.d/dovecot
fi
# Detect whether the system has /etc/pam.d/password-auth
if test ! -f %{_sysconfdir}/pam.d/password-auth; then
perl -pi -e's,password-auth,system-auth,' \
$RPM_BUILD_ROOT%{_sysconfdir}/pam.d/dovecot
touch -r %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/pam.d/dovecot
fi
install -p -D -m 600 %{SOURCE9} $RPM_BUILD_ROOT%{_sysconfdir}/sysconfig/dovecot
mkdir -p $RPM_BUILD_ROOT%{_mandir}/{man1,man5,man8}
install -p -m 644 %{SOURCE12} $RPM_BUILD_ROOT%{_mandir}/man8/
install -p -m 644 %{SOURCE13} $RPM_BUILD_ROOT%{_mandir}/man1/
install -p -m 644 %{SOURCE14} $RPM_BUILD_ROOT%{_mandir}/man5/
find $RPM_BUILD_ROOT%{_mandir} -type f -exec gzip '{}' \;
# generate ghost .pem file
mkdir -p $RPM_BUILD_ROOT%{ssldir}/certs
mkdir -p $RPM_BUILD_ROOT%{ssldir}/private
touch $RPM_BUILD_ROOT%{ssldir}/certs/dovecot.pem
chmod 600 $RPM_BUILD_ROOT%{ssldir}/certs/dovecot.pem
touch $RPM_BUILD_ROOT%{ssldir}/private/dovecot.pem
chmod 600 $RPM_BUILD_ROOT%{ssldir}/private/dovecot.pem
mkdir -p $RPM_BUILD_ROOT/var/run/dovecot/login
chmod 755 $RPM_BUILD_ROOT/var/run/dovecot
chmod 700 $RPM_BUILD_ROOT/var/run/dovecot/login
# Install dovecot.conf and dovecot-openssl.cnf
mkdir -p $RPM_BUILD_ROOT%{ssldir}
install -p -m644 dovecot-example.conf $RPM_BUILD_ROOT%{_sysconfdir}/dovecot.conf
install -p -m644 dovecot-example.conf $RPM_BUILD_ROOT%{docdir}/dovecot.conf.default
rm -f $RPM_BUILD_ROOT%{_sysconfdir}/dovecot-*example.conf # dovecot seems to install this by itself
install -p -m644 doc/dovecot-openssl.cnf $RPM_BUILD_ROOT%{ssldir}/dovecot-openssl.cnf
# Install the licensing files into the documentation area
install -p -m644 COPYING* $RPM_BUILD_ROOT%{docdir}
mkdir -p $RPM_BUILD_ROOT%{docdir}/examples/
install -p -m755 doc/mkcert.sh $RPM_BUILD_ROOT%{_libexecdir}/%{name}/mkcert.sh
for f in `cd doc; echo *.conf`; do
install -p -m644 doc/$f $RPM_BUILD_ROOT%{docdir}/examples/$f;
done
install -p -m755 -d $RPM_BUILD_ROOT%{docdir}/UW-to-Dovecot-Migration
for f in %{SOURCE3} %{SOURCE4} %{SOURCE5} %{SOURCE6}
do
install -p -m644 $f $RPM_BUILD_ROOT%{docdir}/UW-to-Dovecot-Migration
done
# fix encoding
pushd $RPM_BUILD_ROOT
for fe in ./%{docdir}/auth-protocol.txt
do
iconv -f iso-8859-1 -t utf-8 <$fe >$fe.new
touch -r $fe $fe.new
mv -f $fe.new $fe
done
popd
mv $RPM_BUILD_ROOT%{docdir} $RPM_BUILD_ROOT%{docdir}-%{version}
mkdir -p $RPM_BUILD_ROOT/var/lib/dovecot
%if %{build_sieve}
# dovecot-sieve
pushd %{sieve_name}-%{sieve_version}
install -p -m644 doc/spamtest-virustest.txt $RPM_BUILD_ROOT%{docdir}-%{version}
make install DESTDIR=$RPM_BUILD_ROOT DOCDIR=$RPM_BUILD_ROOT%{docdir}-%{version}
popd
%endif
%if %{build_managesieve}
# dovecot-managesieve
pushd %{managesieve_name}-%{managesieve_version}
make install DESTDIR=$RPM_BUILD_ROOT
popd
%endif
#remove the libtool archives
find $RPM_BUILD_ROOT%{_libdir}/%{name}/ -name '*.la' | xargs rm -f
#prepare the filelist
(
find ${RPM_BUILD_ROOT}%{_libdir}/%{name} -type d | sed -e "s|^|%dir |";
find ${RPM_BUILD_ROOT}%{_libdir}/%{name} -! -type d | \
grep -v 'dovecot-config\|lib90_cmusieve_plugin\.so\|libdriver_.*\.so\|libauthdb_.*\.so\|libmech_.*\.so';
) | sed -e "s|$RPM_BUILD_ROOT||" >libs.filelist
%clean
rm -rf $RPM_BUILD_ROOT
%pre
getent group dovecot >/dev/null || groupadd -r dovecot
getent passwd dovecot >/dev/null || \
useradd -r -g dovecot -d /usr/libexec/dovecot -s /sbin/nologin -c "Dovecot IMAP server" dovecot
exit 0
%post
/sbin/chkconfig --add %{name}
# generate the ssl certificates
if [ ! -f %{ssldir}/certs/%{name}.pem ]; then
SSLDIR=%{ssldir} OPENSSLCONFIG=%{ssldir}/dovecot-openssl.cnf \
%{_libexecdir}/%{name}/mkcert.sh &> /dev/null
fi
if ! test -f /var/run/dovecot/login/ssl-parameters.dat; then
dovecot --build-ssl-parameters &>/dev/null
fi
exit 0
%preun
if [ $1 = 0 ]; then
/sbin/service %{name} stop > /dev/null 2>&1
/sbin/chkconfig --del %{name}
fi
%postun
if [ "$1" -ge "1" ]; then
/sbin/service %{name} condrestart >/dev/null 2>&1 || :
fi
%files -f libs.filelist
%defattr(-,root,root,-)
%doc %{docdir}-%{version}
%config(noreplace) %{_sysconfdir}/dovecot.conf
%attr(0600,root,root) %config(noreplace) %{_sysconfdir}/sysconfig/dovecot
%{_initddir}/dovecot
%config(noreplace) %{_sysconfdir}/pam.d/dovecot
%dir %{ssldir}
%dir %{ssldir}/certs
%dir %{ssldir}/private
%config(noreplace) %{ssldir}/dovecot-openssl.cnf
%attr(0600,root,root) %ghost %config(missingok,noreplace) %verify(not md5 size mtime) %{ssldir}/certs/dovecot.pem
%attr(0600,root,root) %ghost %config(missingok,noreplace) %verify(not md5 size mtime) %{ssldir}/private/dovecot.pem
%{_libexecdir}/%{name}
%{_sbindir}/dovecot
%{_sbindir}/dovecotpw
%attr(0755,root,dovecot) %dir /var/run/dovecot
%attr(0750,root,dovecot) %dir /var/run/dovecot/login
%attr(0750,dovecot,dovecot) %dir /var/lib/dovecot
%{_mandir}/man1/dovecotpw.1.gz
%{_mandir}/man5/dovecot.conf.5.gz
%{_mandir}/man8/dovecot.8.gz
%if %{build_sieve}
%files sieve
%defattr(-,root,root,-)
%doc /dovecot/sieve/spamtest-virustest.txt
#%{_libdir}/%{name}/lda/lib90_cmusieve_plugin.so
%{_bindir}/sieve-filter
%{_bindir}/sieve-test
%{_bindir}/sievec
%{_bindir}/sieved
%{_mandir}/man1/sieve-filter.1.gz
%{_mandir}/man1/sieve-test.1.gz
%{_mandir}/man1/sievec.1.gz
%{_mandir}/man1/sieved.1.gz
%endif
%if %{build_managesieve}
%files managesieve
%defattr(-,root,root,-)
%{_libexecdir}/%{name}/managesieve
%{_libexecdir}/%{name}/managesieve-login
%endif
%if %{build_mysql}
%files mysql
%defattr(-,root,root,-)
%{_libdir}/%{name}/sql/libdriver_mysql.so
%{_libdir}/%{name}/auth/libdriver_mysql.so
%{_libdir}/%{name}/dict/libdriver_mysql.so
%endif
%if %{build_postgres}
%files pgsql
%defattr(-,root,root,-)
%{_libdir}/%{name}/sql/libdriver_pgsql.so
%{_libdir}/%{name}/auth/libdriver_pgsql.so
%{_libdir}/%{name}/dict/libdriver_pgsql.so
%endif
%if %{build_sqlite}
%files sqlite
%defattr(-,root,root,-)
%{_libdir}/%{name}/sql/libdriver_sqlite.so
%{_libdir}/%{name}/auth/libdriver_sqlite.so
%{_libdir}/%{name}/dict/libdriver_sqlite.so
%endif
%if %{build_ldap}
%files ldap
%defattr(-,root,root,-)
%{_libdir}/%{name}/auth/libauthdb_ldap.so
%endif
%if %{build_gssapi}
%files gssapi
%defattr(-,root,root,-)
%{_libdir}/%{name}/auth/libmech_gssapi.so
%endif
%files devel
%defattr(-,root,root,-)
%{_includedir}/%{name}
%{_libdir}/%{name}/dovecot-config
%changelog
* Sat Nov 12 2011 David Hrbáč <[email protected]> - 1:1.2.17-1
- new upstream release
* Tue Jan 04 2011 David Hrbáč <[email protected]> - 1:1.2.16-1
- new upstream release
* Thu Oct 07 2010 David Hrbáč <[email protected]> - 1:1.2.15-1
- new upstream release
* Tue Aug 31 2010 David Hrbáč <[email protected]> - 1:1.2.14-1
- new upstream release
* Tue Aug 31 2010 David Hrbáč <[email protected]> - 1:1.2.13-1
- new upstream release
* Tue Jul 13 2010 David Hrbáč <[email protected]> - 1:1.2.12-1
- new upstream release
* Mon Mar 15 2010 David Hrbáč <[email protected]> - 1:1.2.11-2
- fix missing bzip2 support in zlib plugin (#572797)
* Wed Mar 10 2010 David Hrbáč <[email protected]> - 1:1.2.11-1
- new upstream release
* Wed Feb 24 2010 David Hrbáč <[email protected]> - 1:1.2.10-2.2
- openssl requirement fix
* Wed Feb 24 2010 David Hrbáč <[email protected]> - 1:1.2.10-2.1
- initial rebuild
- modified init script
- modified pam script
* Mon Jan 25 2010 Michal Hlavinka <[email protected]> - 1:1.2.10-2
- updated sive and managesieve
- Added preliminary support for Sieve plugins and added support for
installing Sieve development headers
- Variables extension: added support for variable namespaces.
- Added configurable script size limit. Compiler will refuse to
compile files larger than sieve_max_script_size.
- Fixed a bug in the i;ascii-numeric comparator. If one of the
strings started with a non-digit character, the comparator would
always yield less-than.
- Imap4flags extension: fixed bug in removeflag: removing a single
flag failed due to off-by-one error (bug report by Julian Cowley).
- Fixed parser recovery. In particular cases it would trigger spurious
errors after an initial valid error and sometimes additional errors
were inappropriately ignored.
- Implemented ManageSieve QUOTA enforcement.
- Added MAXREDIRECTS capability after login.
- Implemented new script name rules specified in most recent
ManageSieve draft.
- Fixed assertion failure occuring with challenge-response SASL
mechanisms.
* Mon Jan 25 2010 Michal Hlavinka <[email protected]> - 1:1.2.10-1
- updated to 1.2.10
- %%variables now support %%{host}, %%{pid} and %%{env:ENVIRONMENT_NAME}
everywhere.
- LIST-STATUS capability is now advertised
- maildir: Fixed several assert-crashes.
- imap: LIST "" inbox shouldn't crash when using namespace with
"INBOX." prefix.
- lazy_expunge now ignores non-private namespaces.
* Tue Dec 22 2009 Michal Hlavinka <[email protected]> - 1:1.2.9-2
- sieve updated to 0.1.14
- managesieve updated to 0.11.10
* Fri Dec 18 2009 Michal Hlavinka <[email protected]> - 1:1.2.9-1
- updated to 1.2.9
- maildir: When saving, filenames now always contain ,S=<size>.
Previously this was done only when quota plugin was loaded. It's
required for zlib plugin and may be useful for other things too.
- maildir: v1.2.7 and v1.2.8 caused assert-crashes in
maildir_uidlist_records_drop_expunges()
- maildir_copy_preserve_filename=yes could have caused crashes.
- Maildir++ quota: % limits weren't updated when limits were read
from maildirsize.
- virtual: v1.2.8 didn't fully fix the "lots of mailboxes" bug
- virtual: Fixed updating virtual mailbox based on flag changes.
- fts-squat: Fixed searching multi-byte characters.
* Wed Nov 25 2009 Michal Hlavinka <[email protected]> - 1:1.2.8-4
- spec cleanup
* Tue Nov 24 2009 Michal Hlavinka <[email protected]> - 1:1.2.8-3
- fix dovecot's restart after update (#518753)
* Tue Nov 24 2009 Michal Hlavinka <[email protected]> - 1:1.2.8-2
- fix initdddir typo (for rhel rebuilds)
* Fri Nov 20 2009 Michal Hlavinka <[email protected]> - 1:1.2.8-1
- update to dovecot 1.2.8
* Mon Nov 16 2009 Michal Hlavinka <[email protected]> - 1:1.2.7-2
- use originall managesieve to dovecot diff
- EPEL-ize spec for rhel5 rebuilds (#537666)
* Fri Nov 13 2009 Michal Hlavinka <[email protected]> - 1:1.2.7-1
- updated to dovecot 1.2.7
- add man pages
- IMAP: IDLE now sends "Still here" notifications to same user's
connections at the same time. This hopefully reduces power usage
of some mobile clients that use multiple IDLEing connections.
- IMAP: If imap_capability is set, show it in the login banner.
- IMAP: Implemented SORT=DISPLAY extension.
- Login process creation could have sometimes failed with epoll_ctl()
errors or without epoll probably some other strange things could
have happened.
- Maildir: Fixed some performance issues
- Maildir: Fixed crash when using a lot of keywords.
- Several fixes to QRESYNC extension and modseq handling
- mbox: Make sure failed saves get rolled back with NFS.
- dbox: Several fixes.
* Mon Nov 02 2009 Michal Hlavinka <[email protected]> - 1:1.2.6-5
- spec cleanup
* Wed Oct 21 2009 Michal Hlavinka <[email protected]> - 1:1.2.6-4
- imap-login: If imap_capability is set, show it in the banner
instead of the default (#524485)
* Mon Oct 19 2009 Michal Hlavinka <[email protected]> - 1:1.2.6-3
- sieve updated to 0.1.13 which brings these changes:
- Body extension: implemented proper handling of the :raw transform
and added various new tests to the test suite. However, :content
"multipart" and :content "message/rfc822" are still not working.
- Fixed race condition occuring when multiple instances are saving the
same binary (patch by Timo Sirainen).
- Body extension: don't give SKIP_BODY_BLOCK flag to message parser,
we want the body!
- Fixed bugs in multiscript support; subsequent keep actions were not
always merged correctly and implicit side effects were not always
handled correctly.
- Fixed a segfault bug in the sieve-test tool occuring when compile
fails.
- Fixed segfault bug in action procesing. It was triggered while
merging side effects in duplicate actions.
- Fixed bug in the Sieve plugin that caused it to try to stat() a NULL
path, yielding a 'Bad address' error.
* Fri Oct 09 2009 Michal Hlavinka <[email protected]> - 1:1.2.6-2
- fix init script for case when no action was specified
* Tue Oct 06 2009 Michal Hlavinka <[email protected]> - 1:1.2.6-1
- dovecot updated to 1.2.6
- Added authtest utility for doing passdb and userdb lookups.
- login: ssl_security string now also shows the used compression.
- quota: Don't crash with non-Maildir++ quota backend.
- imap proxy: Fixed crashing with some specific password characters.
- fixed broken dovecot --exec-mail.
- Avoid assert-crashing when two processes try to create index at the
same time.
* Tue Sep 29 2009 Michal Hlavinka <[email protected]> - 1:1.2.5-2
- build with libcap enabled
* Thu Sep 17 2009 Michal Hlavinka <[email protected]> - 1:1.2.5-1
- updated to dovecot 1.2.5
- Authentication: DIGEST-MD5 and RPA mechanisms no longer require
user's login realm to be listed in auth_realms. It only made
configuration more difficult without really providing extra security.
- zlib plugin: Don't allow clients to save compressed data directly.
This prevents users from exploiting (most of the) potential security
holes in zlib/bzlib.
- fix index file handling that could have caused an assert-crash
- IMAP: Fixes to QRESYNC extension.
- deliver: Don't send rejects to any messages that have Auto-Submitted
header. This avoids emails loops.
* Wed Sep 16 2009 Tomas Mraz <[email protected]> - 1:1.2.4-3
- use password-auth common PAM configuration instead of system-auth
* Fri Aug 21 2009 Tomas Mraz <[email protected]> - 1:1.2.4-2
- rebuilt with new openssl
* Fri Aug 21 2009 Michal Hlavinka <[email protected]> - 1:1.2.4-1
- updated: dovecot 1.2.4, managesieve 0.11.9, sieve 0.1.12
- fixed a crash in index file handling
- fixed a crash in saving messages where message contained a CR
character that wasn't followed by LF
- fixed a crash when listing shared namespace prefix
- sieve: implemented the new date extension. This allows matching
against date values in header fields and the current date at
the time of script evaluation
- managesieve: reintroduced ability to abort SASL with "*" response
* Mon Aug 10 2009 Michal Hlavinka <[email protected]> - 1:1.2.3-1
- updated: dovecot 1.2.3, managesieve 0.11.8, sieve 0.1.11
- Mailbox names with control characters can't be created anymore.
Existing mailboxes can still be accessed though.
- Allow namespace prefix to be opened as mailbox, if a mailbox
already exists in the root dir.
- Maildir: dovecot-uidlist was being recreated every time a mailbox
was accessed, even if nothing changed.
- listescape plugin was somewhat broken
- ldap: Fixed hang when >128 requests were sent at once.
- fts_squat: Fixed crashing when searching virtual mailbox.
- imap: Fixed THREAD .. INTHREAD crashing.
* Tue Jul 28 2009 Michal Hlavinka <[email protected]> - 1:1.2.2-1.20090728snap
- updated to post 1.2.2 snapshot (including post release GSSAPI fix)
- Fixed "corrupted index cache file" errors
- IMAP: FETCH X-* parameters weren't working.
- Maildir++ quota: Quota was sometimes updated wrong
- Dovecot master process could hang if it received signals too rapidly
* Fri Jul 24 2009 Fedora Release Engineering <[email protected]> - 1:1.2.1-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
* Thu Jul 23 2009 Michal Hlavinka <[email protected]> - 1:1.2.1-2
- updated sieve plugin to 0.1.9
* Mon Jul 13 2009 Michal Hlavinka <[email protected]> - 1:1.2.1-1
- updated to 1.2.1
- GSSAPI authentication is fixed (#506782)
- logins now fail if home directory path is relative, because it was
not working correctly and never was expected to work
- sieve and managesieve update
* Mon Apr 20 2009 Michal Hlavinka <[email protected]> - 1:1.2-0.rc3.1
- updated to 1.2.rc3
* Mon Apr 06 2009 Michal Hlavinka <[email protected]> - 1:1.2-0.rc2.1
- updated to 1.2.rc2
* Mon Mar 30 2009 Michal Hlavinka <[email protected]> - 1:1.2-0.beta4.2
- fix typo and rebuild
* Mon Mar 30 2009 Michal Hlavinka <[email protected]> - 1:1.2-0.beta4.1
- spec clean-up
- updated to 1.2.beta4
* Tue Feb 24 2009 Fedora Release Engineering <[email protected]> - 1:1.1.11-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
* Wed Feb 11 2009 Michal Hlavinka <[email protected]> - 1:1.1.11-1
- updated to 1.1.11
- IMAP: PERMANENTFLAGS list didn't contain \*, causing some clients
not to save keywords.
- auth: Using "username" or "domain" passdb fields caused problems
with cache and blocking passdbs in v1.1.8 .. v1.1.10.
- userdb prefetch + blocking passdbs was broken with non-plaintext
auth in v1.1.8 .. v1.1.10.
* Tue Jan 27 2009 Michal Hlavinka <[email protected]> - 1:1.1.10-1
- updated to 1.1.10
* Sat Jan 24 2009 Dan Horak <dan[at]danny.cz> - 1:1.1.8-3
- rebuild with new mysql
* Tue Jan 13 2009 Michal Hlavinka <[email protected]> - 1:1.1.8-2
- added managesieve support (thanks Helmut K. C. Tessarek)
* Thu Jan 8 2009 Michal Hlavinka <[email protected]> - 1:1.1.8-1
- dovecot updated to 1.1.8
- sieve-plugin updated to 1.1.6
* Tue Dec 2 2008 Michal Hlavinka <[email protected]> - 1:1.1.7-2
- revert changes from 1:1.1.6-2 and 1:1.1.6-1
- password can be stored in different file readable only for root
via !include_try directive
* Tue Dec 2 2008 Michal Hlavinka <[email protected]> - 1:1.1.7-1
- update to upstream version 1.1.7
* Mon Nov 3 2008 Michal Hlavinka <[email protected]> - 1:1.1.6-2
- changed comment in sysconfig to match actual state
* Mon Nov 3 2008 Michal Hlavinka <[email protected]> - 1:1.1.6-1
- update to upstream version 1.1.6
- change permissions of deliver and dovecot.conf to prevent possible password exposure
* Wed Oct 29 2008 Michal Hlavinka <[email protected]> - 1:1.1.5-1
- update to upstream version 1.1.5 (Resolves: CVE-2008-4577, CVE-2008-4578)
* Tue Sep 2 2008 Dan Horak <dan[at]danny.cz> - 1:1.1.3-1
- update to upstream version 1.1.3
* Tue Jul 29 2008 Dan Horak <dan[at]danny.cz> - 1:1.1.2-2
- really ask for the password during start-up
* Tue Jul 29 2008 Dan Horak <dan[at]danny.cz> - 1:1.1.2-1
- update to upstream version 1.1.2
- final solution for #445200 (add /etc/sysconfig/dovecot for start-up options)
* Fri Jun 27 2008 Dan Horak <dan[at]danny.cz> - 1:1.1.1-2
- update default settings to listen on both IPv4 and IPv6 instead of IPv6 only
* Sun Jun 22 2008 Dan Horak <dan[at]danny.cz> - 1:1.1.1-1
- update to upstream version 1.1.1
* Sat Jun 21 2008 Dan Horak <dan[at]danny.cz> - 1:1.1.0-1
- update to upstream version 1.1.0
- update sieve plugin to 1.1.5
- remove unnecessary patches
- enable ldap and gssapi plugins
- change ownership of dovecot.conf (Resolves: #452088)
* Wed Jun 18 2008 Dan Horak <dan[at]danny.cz> - 1:1.0.14-4
- update init script (Resolves: #451838)
* Fri Jun 6 2008 Dan Horak <dan[at]danny.cz> - 1:1.0.14-3
- build devel subpackage (Resolves: #306881)
* Thu Jun 5 2008 Dan Horak <dan[at]danny.cz> - 1:1.0.14-2
- install convert-tool (Resolves: #450010)
* Tue Jun 3 2008 Dan Horak <dan[at]danny.cz> - 1:1.0.14-1
- update to upstream version 1.0.14
- remove setcred patch (use of setcred must be explictly enabled in config)
* Thu May 29 2008 Dan Horak <dan[at]danny.cz> - 1:1.0.13-8
- update scriptlets to follow UsersAndGroups guideline
- remove support for upgrading from version < 1.0 from scriptlets
- Resolves: #448095
* Tue May 20 2008 Dan Horak <dan[at]danny.cz> - 1:1.0.13-7
- spec file cleanup
- update sieve plugin to 1.0.3
- Resolves: #445200, #238018
* Sun Mar 09 2008 Tomas Janousek <[email protected]> - 1:1.0.13-6
- update to latest upstream stable (1.0.13)
* Wed Feb 20 2008 Fedora Release Engineering <[email protected]> - 1:1.0.10-5
- Autorebuild for GCC 4.3
* Fri Jan 07 2008 Tomas Janousek <[email protected]> - 1:1.0.10-4
- update to latest upstream stable (1.0.10)
* Wed Dec 05 2007 Jesse Keating <[email protected]> - 1:1.0.7-3
- Bump for deps
* Mon Nov 05 2007 Tomas Janousek <[email protected]> - 1:1.0.7-2
- update to latest upstream stable (1.0.7)
- added the winbind patch (#286351)
* Tue Sep 25 2007 Tomas Janousek <[email protected]> - 1:1.0.5-1
- downgraded to lastest upstream stable (1.0.5)
* Wed Aug 22 2007 Tomas Janousek <[email protected]> - 1.1-16.1.alpha3
- updated license tags
* Mon Aug 13 2007 Tomas Janousek <[email protected]> - 1.1-16.alpha3
- updated to latest upstream alpha
- update dovecot-sieve to 0367450c9382 from hg
* Fri Aug 10 2007 Tomas Janousek <[email protected]> - 1.1-15.alpha2
- updated to latest upstream alpha
- split ldap and gssapi plugins to subpackages
* Wed Jul 25 2007 Tomas Janousek <[email protected]> - 1.1-14.6.hg.a744ae38a9e1
- update to a744ae38a9e1 from hg
- update dovecot-sieve to 131e25f6862b from hg and enable it again
* Thu Jul 19 2007 Tomas Janousek <[email protected]> - 1.1-14.5.alpha1
- update to latest upstream alpha
- don't build dovecot-sieve, it's only for 1.0
* Sun Jul 15 2007 Tomas Janousek <[email protected]> - 1.0.2-13.5
- update to latest upstream
* Mon Jun 18 2007 Tomas Janousek <[email protected]> - 1.0.1-12.5
- update to latest upstream
* Fri Jun 08 2007 Tomas Janousek <[email protected]> - 1.0.0-11.7
- specfile merge from 145241 branch
- new sql split patch
- support for not building all sql modules
- split sql libraries to separate packages
* Sat Apr 14 2007 Tomas Janousek <[email protected]> - 1.0.0-11.1
- dovecot-1.0.beta2-pam-tty.patch is no longer needed
* Fri Apr 13 2007 Tomas Janousek <[email protected]> - 1.0.0-11
- update to latest upstream
* Tue Apr 10 2007 Tomas Janousek <[email protected]> - 1.0-10.rc31
- update to latest upstream
* Fri Apr 06 2007 Tomas Janousek <[email protected]> - 1.0-9.rc30
- update to latest upstream
* Fri Mar 30 2007 Tomas Janousek <[email protected]> - 1.0-8.1.rc28
- spec file cleanup (fixes docs path)
* Fri Mar 23 2007 Tomas Janousek <[email protected]> - 1.0-8.rc28
- update to latest upstream
* Mon Mar 19 2007 Tomas Janousek <[email protected]> - 1.0-7.rc27
- use dovecot-sieve's version for the package
* Mon Mar 19 2007 Tomas Janousek <[email protected]> - 1.0-6.rc27
- update to latest upstream
- added dovecot-sieve
* Fri Mar 02 2007 Tomas Janousek <[email protected]> - 1.0-5.rc25
- update to latest upstream
* Sun Feb 25 2007 Jef Spaleta <[email protected]> - 1.0-4.rc22
- Merge review changes
* Thu Feb 08 2007 Tomas Janousek <[email protected]> - 1.0-3.rc22
- update to latest upstream, fixes a few bugs
* Mon Jan 08 2007 Tomas Janousek <[email protected]> - 1.0-2.rc17
- update to latest upstream, fixes a few bugs
* Thu Dec 21 2006 Tomas Janousek <[email protected]> - 1.0-1.1.rc15
- reenabled GSSAPI (#220377)
* Tue Dec 05 2006 Tomas Janousek <[email protected]> - 1.0-1.rc15
- update to latest upstream, fixes a few bugs, plus a security
vulnerability (#216508, CVE-2006-5973)
* Tue Oct 10 2006 Petr Rockai <[email protected]> - 1.0-0.3.rc7
- fix few inconsistencies in specfile, fixes #198940
* Wed Oct 04 2006 Petr Rockai <[email protected]> - 1.0-0.2.rc7
- fix default paths in the example mkcert.sh to match configuration
defaults (fixes #183151)
* Sun Oct 01 2006 Jesse Keating <[email protected]> - 1.0-0.1.rc7
- rebuilt for unwind info generation, broken in gcc-4.1.1-21
* Fri Sep 22 2006 Petr Rockai <[email protected]> - 1.0-0.rc7
- update to latest upstream release candidate, should fix occasional
hangs and mbox issues... INBOX. namespace is still broken though
- do not run over symlinked certificates in new locations on upgrade
* Tue Aug 15 2006 Petr Rockai <[email protected]> - 1.0-0.rc2.2
- include /var/lib/dovecot in the package, prevents startup failure
on new installs
* Mon Jul 17 2006 Petr Rockai <[email protected]> - 1.0-0.rc2.1
- reenable inotify and see what happens
* Thu Jul 13 2006 Petr Rockai <[email protected]> - 1.0-0.rc2
- update to latest upstream release candidate
- disable inotify for now, doesn't build -- this needs fixing though
* Wed Jul 12 2006 Jesse Keating <[email protected]> - 1.0-0.beta8.2.1
- rebuild
* Thu Jun 08 2006 Petr Rockai <[email protected]> - 1.0-0.beta8.2
- put back pop3_uidl_format default that got lost
in the beta2->beta7 upgrade (would cause pop3 to not work
at all in many situations)
* Thu May 04 2006 Petr Rockai <[email protected]> - 1.0-0.beta8.1
- upgrade to latest upstream beta release (beta8)
- contains a security fix in mbox handling
* Thu May 04 2006 Petr Rockai <[email protected]> - 1.0-0.beta7.1
- upgrade to latest upstream beta release
- fixed BR 173048
* Fri Mar 17 2006 Petr Rockai <[email protected]> - 1.0-0.beta2.8
- fix sqlite detection in upstream configure checks, second part
of #182240
* Wed Mar 8 2006 Bill Nottingham <[email protected]> - 1.0-0.beta2.7
- fix scriplet noise some more
* Mon Mar 6 2006 Jeremy Katz <[email protected]> - 1.0-0.beta2.6
- fix scriptlet error (mitr, #184151)
* Mon Feb 27 2006 Petr Rockai <[email protected]> - 1.0-0.beta2.5
- fix #182240 by looking in lib64 for libs first and then lib
- fix comment #1 in #182240 by copying over the example config files
to documentation directory
* Fri Feb 10 2006 Jesse Keating <[email protected]> - 1.0-0.beta2.4.1
- bump again for double-long bug on ppc(64)
* Thu Feb 09 2006 Petr Rockai <[email protected]> - 1.0-0.beta2.4
- enable inotify as it should work now (#179431)
* Tue Feb 07 2006 Jesse Keating <[email protected]> - 1.0-0.beta2.3.1
- rebuilt for new gcc4.1 snapshot and glibc changes
* Thu Feb 02 2006 Petr Rockai <[email protected]> - 1.0-0.beta2.3
- change the compiled-in defaults and adjust the default's configfile
commented-out example settings to match compiled-in defaults,
instead of changing the defaults only in the configfile, as per #179432
- fix #179574 by providing a default uidl_format for pop3
- half-fix #179620 by having plaintext auth enabled by default... this
needs more thinking (which one we really want) and documentation
either way
* Tue Jan 31 2006 Petr Rockai <[email protected]> - 1.0-0.beta2.2
- update URL in description
- call dovecot --build-ssl-parameters in postinst as per #179430
* Mon Jan 30 2006 Petr Rockai <[email protected]> - 1.0-0.beta2.1
- fix spec to work with BUILD_DIR != SOURCE_DIR
- forward-port and split pam-nocred patch
* Mon Jan 23 2006 Petr Rockai <[email protected]> - 1.0-0.beta2
- new upstream version, hopefully fixes #173928, #163550
- fix #168866, use install -p to install documentation
* Fri Dec 09 2005 Jesse Keating <[email protected]>
- rebuilt
* Sat Nov 12 2005 Tom Lane <[email protected]> - 0.99.14-10.fc5
- Rebuild due to mysql update.
* Wed Nov 9 2005 Tomas Mraz <[email protected]> - 0.99.14-9.fc5
- rebuilt with new openssl