[patch] dovecot
Marcin Sztolcman
lists at urzenia.net
Tue Sep 14 16:53:48 CEST 2004
witam
w zalaczniku dwa patche: do dovecot.spec i dovecot-config.patch
pierwszy uwzglednia nowsza wersje programu, oprocz tego dodaje obsluge
mysql (ktora nie zostala uwzgledniona wczesniej)
w drugim pozmienialem domyslne szukanie uzytkownikow - oryginalnie jest
w pgsql, a wydaje mi sie ze niekoniecznie tak powinno byc domyslnie,
skoro moze pobierac z shadow. afaik demony maja dzialac 'out of the box' ?
MySZ
--
[ Marcin ``MySZ`` Sztolcman ]
[ marcin { at } urzenia { dot } net ]
[ http://mysz.ath.cx ]
-------------- next part --------------
--- dovecot-0.99.11/dovecot-example.conf.orig 2004-09-14 16:32:58.091817264 +0200
+++ dovecot-0.99.11/dovecot-example.conf 2004-09-14 16:43:45.039466272 +0200
@@ -33,8 +33,9 @@
# dropping root privileges, so keep the key file unreadable by anyone but
# root. Included doc/mkcert.sh can be used to easily generate self-signed
# certificate, just make sure to update the domains in dovecot-openssl.cnf
-#ssl_cert_file = /etc/ssl/certs/dovecot.pem
-#ssl_key_file = /etc/ssl/private/dovecot.pem
+ssl_cert_file = /var/lib/openssl/certs/imap.pem
+ssl_key_file = /var/lib/openssl/certs/imap.pem
+
# SSL parameter file. Master process generates this file for login processes.
# It contains Diffie Hellman and RSA parameters.
@@ -89,7 +90,7 @@
# User to use for the login process. Create a completely new user for this,
# and don't use it anywhere else. The user must also belong to a group where
# only it has access, it's used to control access for authentication process.
-#login_user = dovecot
+login_user = nobody
# Set max. process size in megabytes. If you don't use
# login_process_per_connection you might need to grow this.
@@ -431,7 +432,7 @@
# vpopmail: vpopmail authentication
# ldap <config path>: LDAP, see doc/dovecot-ldap.conf
# pgsql <config path>: a PostgreSQL database, see doc/dovecot-pgsql.conf
-auth_passdb = pgsql /usr/local/etc/dovecot-pgsql.conf
+auth_passdb = shadow
#auth_executable = /usr/libexec/dovecot/dovecot-auth
-------------- next part --------------
--- dovecot.spec.orig 2004-09-14 16:08:35.678137936 +0200
+++ dovecot.spec 2004-09-14 16:08:12.202706744 +0200
@@ -3,6 +3,7 @@
# Conditional build:
# _without_ldap - without LDAP auth
# _without_pgsql - without PostgreSQL auth
+# _without_mysql - without MySQL auth
# _without_sasl - without SASL auth
#
Summary: IMAP and POP3 server written with security primarily in mind
@@ -27,6 +28,7 @@
BuildRequires: openssl-devel >= 0.9.7d
BuildRequires: pam-devel
%{!?_without_pgsql:BuildRequires: postgresql-devel}
+%{!?_without_mysql:BuildRequires: mysql-devel}
Requires(post,preun): /sbin/chkconfig
Requires: pam >= 0.77.3
Provides: imapdaemon
@@ -111,6 +113,7 @@
%{?debug:--enable-debug} \
%{!?_without_ldap:--with-ldap} \
%{!?_without_pgsql:--with-pgsql} \
+ %{!?_without_mysql:--with-mysql} \
%{!?_without_sasl:--with-cyrus-sasl2} \
--with-ssl=openssl \
--with-ssl-dir=/var/lib/openssl
More information about the pld-devel-pl
mailing list