12 messages in net.sourceforge.lists.courier-maildropRe: [maildropl] MySQL support for mai...
FromSent OnAttachments
rom...@rs-labs.comNov 11, 2003 10:09 am 
Thomas HugNov 11, 2003 10:41 am 
Roman MedinaNov 15, 2003 4:06 am 
Thomas HugNov 15, 2003 4:27 am 
Thomas HugNov 15, 2003 4:33 am 
Roman MedinaNov 15, 2003 11:27 am 
Thomas HugNov 15, 2003 3:57 pm 
Martin List-PetersenNov 16, 2003 10:04 am 
Thomas HugNov 16, 2003 10:08 am 
Martin List-PetersenNov 16, 2003 10:13 am 
Thomas HugNov 16, 2003 10:22 am 
Martin List-PetersenNov 16, 2003 10:27 am 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:Re: [maildropl] MySQL support for maildropActions...
From:Roman Medina (rom@rs-labs.com)
Date:Nov 15, 2003 4:06:44 am
List:net.sourceforge.lists.courier-maildrop

Using the info provided by Thomas Hug <to@nine.ch>, I wrote this "mini-howto/draft" about adding mysql-virtual support to courier-maildrop for Debian 3.0. Hope it helps. Thanks, Thomas :)

=====

0) Be sure that your system has the appropiated development packages. For instance: apt-get install dpkg-dev, apt-get install fakeroot 1) Get Courier source: apt-get source courier. Amongst other things, a new directory is created. Enter that directory: cd courier-0.37.3 2) Add config options for MySQL support in Maildrop: vi debian/rules. The options are: --enable-maildropmysql --with-mysqlconfig=/etc/courier/maildropmysqlrc

For instance:

COMMON_CONFOPTS=--prefix=/usr --mandir=\$${prefix}/share/man \ --with-piddir=/var/run/courier \ --sysconfdir=/etc/courier \ --libexecdir=\$${prefix}/lib/courier \ --datadir=\$${prefix}/lib/courier \ --localstatedir=/var/lib/courier \ --sbindir=\$${prefix}/sbin \ --with-mailuser=daemon \ --with-mailgroup=daemon \ --without-socks \ --enable-workarounds-for-imap-client-bugs \ --with-authpam \ --without-authpwd \ --with-authmysql \ --with-mysql-includes=/usr/include/mysql \ --with-mysql-libs=/usr/lib \ --without-authshadow \ --without-authvchkpw \ --with-authdaemonvar=/var/run/courier/authdaemon \ --with-authldap \ --with-authcram \ --with-db=gdbm \ --without-fcgi \ --with-htmllibdir=/usr/share/sqwebmail \ --with-ispell=/usr/bin/ispell \ --enable-imageurl=/sqwebmail \ --with-mailer="/usr/sbin/sendmail -oi -t" \ --enable-sendmail="/usr/sbin/sendmail" \ --with-cachedir=/var/cache/sqwebmail \ --with-calendardir=/var/run/courier/calendar \ --with-webadmindir=/usr/share/courier/webadmin \ --disable-root-check $(NONSSL_CONFOPTS) \ --enable-maildropmysql \ --with-mysqlconfig=/etc/courier/maildropmysqlrc

3) Install some packages you will need for the next step. In particular: apt-get install libmysqlclient10-dev libpam0g-dev libpam0g-dev libperl-dev zlib1g-dev debhelper libldap2-dev libsasl-dev expect libgdbmg1-dev4) Rebuild package: dpkg-buildpackage -rfakeroot 5) Now you should have the new package created in: ../courier-maildrop_0.37.3-2.3_i386.deb 6) Install the new package: dpkg -i ../courier-maildrop_0.37.3-2.3_i386.deb

=====

Now, I have one minor problem:

test:~# apt-get upgrade -s Reading Package Lists... Done Building Dependency Tree... Done 1 packages upgraded, 0 newly installed, 0 to remove and 0 not upgraded. Inst courier-maildrop (0.37.3-2.3 Debian:3.0r1a/stable, Debian-Security:3.0/stable) Conf courier-maildrop (0.37.3-2.3 Debian:3.0r1a/stable, Debian-Security:3.0/stable) test:~#

Apt-get tries to replace my customized package. How is the best approach to solve it? Changing version number? Tunning config file for apt? Please, detailed example would be welcome.

Saludos, --Roman