# # Conditional build: %bcond_without ldap # without LDAP auth %bcond_without mysql # without MySQL auth %bcond_without pgsql # without PostgreSQL auth %bcond_without sqlite # without SQLite3 auth %bcond_without sasl # without SASL auth # Summary: IMAP and POP3 server written with security primarily in mind Summary(pl): Serwer IMAP i POP3 pisany głównie z myślą o bezpieczeństwie Name: dovecot Version: 1.0.beta9 Release: 1 License: LGPL v2.1 Group: Networking/Daemons Source0: http://dovecot.org/releases/%{name}-%{version}.tar.gz # Source0-md5: 5c19a21afb8a02c95f3f62fa37d8e1ed Source1: %{name}.pamd Source2: %{name}.init Source3: %{name}.sysconfig Patch0: %{name}-config.patch Patch1: %{name}-gssapi.patch URL: http://dovecot.org/ BuildRequires: autoconf BuildRequires: automake %{?with_sasl:BuildRequires: cyrus-sasl-devel >= 2.0} BuildRequires: gettext-devel BuildRequires: libtool %{?with_mysql:BuildRequires: mysql-devel} %{?with_ldap:BuildRequires: openldap-devel >= 2.3.0} BuildRequires: openssl-devel >= 0.9.7d BuildRequires: pam-devel BuildRequires: pkgconfig %{?with_pgsql:BuildRequires: postgresql-devel} %{?with_sqlite:BuildRequires: sqlite3-devel} Requires(post,preun): /sbin/chkconfig Requires: pam >= 0.79.0 Provides: imapdaemon BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %description Dovecot is an IMAP and POP3 server for Linux/UNIX-like systems, written with security primarily in mind. Although it's written with C, it uses several coding techniques to avoid most of the common pitfalls. Dovecot can work with standard mbox and maildir formats and it's fully compatible with UW-IMAP and Courier IMAP servers as well as mail clients accessing the mailboxes directly. It's also planned to support storing mails in SQL databases. Dovecot is easy to set up and doesn't require special maintenance. Only thing you need is to get the authentication working properly - if your users are in /etc/passwd there's hardly anything you have to do. Dovecot should be pretty fast, mostly because of index files that Dovecot maintains; instead of having to scan through all the data in mailbox, Dovecot can get most of the wanted information from index with little effort. Status: - should be quite ready for use with normal IMAP clients - complete IMAP4rev1 support - supports THREAD and SORT extensions, required by many IMAP webmails - complete TLS/SSL support, using either GNUTLS or OpenSSL - IPv6 ready - shared mailboxes aren't yet supported - Maildir++ quota isn't yet supported; hard filesystem quota can also be problematic - mbox support isn't yet perfect - there's a few more or less theoretical problems, but nothing too bad. %description -l pl Dovecot to serwer IMAP i POP3 dla systemów linuksowych/uniksowych, pisany głównie z myślą o bezpieczeństwie. Chociaż jest pisany w C, używa kilku technik kodowania zapobiegających większości popularnych pułapek. Dovecot może działać ze standardowymi formatami mbox i maildir, jest całkowicie kompatybilny z serwerami UW-IMAP i Courier IMAP, a także z klientami pocztowymi bezpośrednio dostającymi się do skrzynek. Planowana jest także obsługa przechowywania listów w bazach SQL. Dovecot jest łatwy do skonfigurowania i nie wymaga specjalnego nadzoru. Wystarczy tylko doprowadzić do działania uwierzytelnianie - jeśli użytkownicy są w /etc/passwd, to właściwie nie trzeba nic zmieniać. Dovecot powinien być w miarę szybki, głównie z powodu plików indeksowych utrzymywanych przez serwer; zamiast potrzeby skanowania wszystkich danych w skrzynce, Dovecot może małym kosztem uzyskać większość potrzebnych informacji z indeksu. Stan: - powinien być gotowy do użycia ze zwykłymi klientami IMAP - pełna obsługa IMAP4rev1 - obsługa rozszerzeń THREAD i SORT, wymaganych przez wiele webmaili IMAP - obsługa IPv6 - jeszcze nie ma współdzielonych skrzynek - quota Maildir++ jeszcze nie jest obsługiwana; twarda quota na systemach plików może sprawiać problemy - obsługa mboksów jeszcze nie jest idealna - jest jeszcze kilka mniej lub bardziej teoretycznych problemów, ale nic strasznego. %prep %setup -q %patch0 -p1 %patch1 -p1 %build %{__libtoolize} %{__aclocal} %{__autoconf} %{__autoheader} %{__automake} %configure \ %{?debug:--enable-debug} \ %{?with_ldap:--with-ldap} \ %{?with_mysql:--with-mysql} \ %{?with_pgsql:--with-pgsql} \ %{?with_sasl:--with-cyrus-sasl2} \ %{?with_sqlite:--with-sqlite} \ --with-notify=dnotify \ --with-ssl=openssl \ --with-ssl-dir=/var/lib/openssl %{__make} %install rm -rf $RPM_BUILD_ROOT install -d $RPM_BUILD_ROOT/etc/{pam.d,rc.d/init.d,sysconfig,security} install -d $RPM_BUILD_ROOT{%{_libdir},%{_bindir},/var/run/dovecot/login} %{__make} install \ moduledir=%{_libdir}/%{name}/plugins \ DESTDIR=$RPM_BUILD_ROOT mv -f $RPM_BUILD_ROOT%{_sysconfdir}/{dovecot-example.conf,dovecot.conf} install %{SOURCE1} $RPM_BUILD_ROOT/etc/pam.d/%{name} install %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name} install %{SOURCE3} $RPM_BUILD_ROOT/etc/sysconfig/%{name} touch $RPM_BUILD_ROOT/etc/security/blacklist.imap %clean rm -rf $RPM_BUILD_ROOT %post /sbin/chkconfig --add dovecot if [ -f /var/lock/subsys/dovecot ]; then /etc/rc.d/init.d/dovecot restart >&2 else echo "Run \"/etc/rc.d/init.d/dovecot start\" to start dovecot daemon." fi %preun if [ "$1" = "0" ]; then if [ -f /var/lock/subsys/dovecot ]; then /etc/rc.d/init.d/dovecot stop >&2 fi /sbin/chkconfig --del dovecot fi %files %defattr(644,root,root,755) # COPYING contains some notes, not actual LGPL text %doc AUTHORS COPYING ChangeLog NEWS README TODO doc/*.txt doc/*.c*f %attr(755,root,root) %{_sbindir}/%{name} %attr(755,root,root) %{_sbindir}/%{name}pw %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.conf %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/pam.d/%{name} %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/security/blacklist.imap %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/%{name} %attr(754,root,root) /etc/rc.d/init.d/%{name} %attr(755,root,root) %{_libdir}/%{name} %attr(755,root,root) %dir /var/run/dovecot %attr(750,root,root) %dir /var/run/dovecot/login