Additional features for Dovecot on SME Server, like IMAP shares, spam learning
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

85 lines
2.7 KiB

12 years ago
Summary: Additional features for dovecot on SME Server
Name: smeserver-dovecot-extras
Version: 0.1.4
Release: 1%{?dist}
12 years ago
License: GPL
Group: Networking/Daemons
Source: %{name}-%{version}.tar.gz
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot
BuildArchitectures: noarch
BuildRequires: e-smith-devtools
8 years ago
BuildRequires: dovecot-pigeonhole
12 years ago
Requires: smeserver-dovecot
Requires: dovecot-pigeonhole
Requires: acl
%description
Add IMAP acl (sharedmailbox) and sieve capabilities to the IMAP server
%changelog
* Sun Nov 19 2017 Daniel Berteaud <daniel@firewall-services.com> 0.1.4-1
- new package built with tito
7 years ago
* Thu Jun 8 2017 Daniel Berteaud <daniel@firewall-services.com> - 0.1.3-1
- Add support for public mailboxes (patch from John H. Bennett III
<bennettj@thebennetthome.com>)
- Ignore moves from junkmail to Éléments supprimés
8 years ago
* Mon Mar 6 2017 Daniel Berteaud <daniel@firewall-services.com> - 0.1.2-1
- Support spam learning by moving to/from junkmail or Junk
11 years ago
* Mon Jun 23 2014 Daniel Berteaud <daniel@firewall-services.com> - 0.1.1-1
- Add missing /home/e-smith/db/dovecot dir
11 years ago
- Remove submission_host for sieve
11 years ago
* Tue Oct 29 2013 Daniel Berteaud <daniel@firewall-services.com> - 0.0.2-1
- Use SMTP for sieve notifications
* Tue Nov 29 2011 Daniel Berteaud <daniel@firewall-services.com> - 0.0.1-1
12 years ago
- initial release
%prep
%setup -q -n %{name}-%{version}
%build
perl createlinks
11 years ago
mkdir -p root/home/e-smith/db/dovecot
7 years ago
mkdir -p root/home/e-smith/files/public/{cur,new,tmp}
12 years ago
%install
/bin/rm -rf $RPM_BUILD_ROOT
(cd root ; /usr/bin/find . -depth -print | /bin/cpio -dump $RPM_BUILD_ROOT)
/bin/rm -f %{name}-%{version}-filelist
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT \
--dir /home/e-smith/db/dovecot 'attr(2770,root,sharedmailbox)' \
7 years ago
--dir /home/e-smith/files/public 'attr(2770,root,sharedmailbox)' \
--dir /home/e-smith/files/public/cur 'attr(2770,root,sharedmailbox)' \
--dir /home/e-smith/files/public/new 'attr(2770,root,sharedmailbox)' \
--dir /home/e-smith/files/public/tmp 'attr(2770,root,sharedmailbox)' \
12 years ago
--file /home/e-smith/db/dovecot/sharedmailbox.db 'attr(0660,root,sharedmailbox) %config(noreplace)' \
--file /usr/bin/imap-postlogin 'attr(0755,root,root)' \
8 years ago
--file /usr/libexec/dovecot/learn-spam.sh 'attr(0755,root,root)' \
--file /usr/libexec/dovecot/learn-ham.sh 'attr(0755,root,root)' \
12 years ago
> %{name}-%{version}-filelist
%files -f %{name}-%{version}-filelist
%defattr(-,root,root)
%clean
rm -rf $RPM_BUILD_ROOT
%pre
/usr/sbin/groupadd -g 439 sharedmailbox 2> /dev/null || :
%post
# Migrate the sharedmailbox dict to its new location
if [ -e /etc/dovecot/sharedmailbox/dict.db ]; then
mv -f /etc/dovecot/sharedmailbox/dict.db /home/e-smith/db/dovecot/sharedmailbox.db
rm -rf /etc/dovecot/sharedmailbox
fi
%preun