8 messages in net.sourceforge.lists.courier-maildrop[maildropl] Followup: Re: Quota from...
FromSent OnAttachments
Todd LyonsOct 10, 2006 11:46 am 
Sam VarshavchikOct 10, 2006 3:39 pm 
Todd LyonsOct 11, 2006 1:04 pm 
Sam VarshavchikOct 11, 2006 3:26 pm 
Todd LyonsOct 11, 2006 4:02 pm 
Sam VarshavchikOct 11, 2006 6:38 pm 
Todd LyonsOct 11, 2006 9:06 pm 
Todd LyonsOct 12, 2006 11:08 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:[maildropl] Followup: Re: Quota from LDAP not taking effectActions...
From:Todd Lyons (tly@ivenue.com)
Date:Oct 12, 2006 11:08:54 am
List:net.sourceforge.lists.courier-maildrop

-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1

On Wed, Oct 11, 2006 at 09:06:38PM -0700, Todd Lyons wrote:

You can probably get this to work by using the "maildrop" package, not "courier-maildrop", if you can find it. This is the version of maildrop without the Courier-specific hooks (it builds from the same source, but with some behind-the-scenes configuration changes), and it should work for you.

...with this standalone version, I'm sure that everything will work exactly as the old version did. Thanks very much for the pointer, I've got a busy day tomorrow testing and getting my installation/replacement procedure down pat.

It works, thanks! I misinterpreted this statement from the web home page: Certain portions of Courier - the mail filtering engine, the webmail server and IMAP server - are also available are separate, smaller, packages that can be used with other mail servers. If you s/can/must/, that fixes my misunderstanding.

I have a user named "build" that I use for building all RPMs. For anybody who might ever stumble in the future, with a couple of minor additions to the instructions in the README, here is how I did it.

Procedure for x86: rpmbuild -ta maildrop-*.tar.bz2 # as a regular user rpm -e courier-maildrop courier-maildrop-wrapper rpm -Uvh /home/www/RPM/RPMS/i386/maildrop-2.*.rpm rpm -Uvh --force /home/www/RPM/RPMS/i386/maildrop-man-2*.rpm cd /etc ln -s courier/maildroprc

Procedure for x86_64: rpmbuild -bp maildrop-*.tar.bz2 # as a regular user perl -pi -e 's/%{_smp_mflags}/%{?_smp_mflags}/' \ /home/www/RPM/SPECS/maildrop.spec rpm -Uvh /home/www/RPM/RPMS/i386/maildrop-2.*.rpm rpm -Uvh /home/www/RPM/RPMS/i386/maildrop-man-2*.rpm cd /etc ln -s courier/maildroprc

It was pretty simple once you pointed out that the behind the scenes config changes at compile time make maildrop communicate directly with courier-authlib, whereas the version that comes with the courier package requires the calling process to set the environment variables for it with all of the information. Thanks again for pointing this out! (without belittling my interpretive skills too much :-)

x86_64 note: I had to change the spec file because CentOS 4.4 doesn't seem to set that _smp_mflags macro. It's defined in /usr/lib/rpm/x86_64/macros, but it doesn't show up in 'rpm --showrc'. I don't know why exactly. The compile fails (first command of %build). Putting the ? in front makes it compile successfully. I'm no rpm guru, but I'm guessing it makes it conditional and expand to '' if it's not defined, as opposed to leaving it in there verbatim. Witness the failure before the change:

Executing(%build): /bin/sh -e /home/www/RPM/tmp/rpm-tmp.92061 + umask 022 + cd /home/www/RPM/BUILD + cd maildrop-2.0.2 + /usr/bin/make '%{_smp_mflags}' make: *** No rule to make target `%{_smp_mflags}'. Stop. error: Bad exit status from /home/www/RPM/tmp/rpm-tmp.92061 (%build)

I hope all this is useful for someone :-)

Have a great day! - -- Regards... Todd when you shoot yourself in the foot, just because you are so neurally broken that the signal takes years to register in your brain, it does not mean that your foot does not have a hole in it. --Randy Bush Linux kernel 2.6.12-18mdksmp 8 users, load average: 0.27, 0.43, 0.33 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2.2 (GNU/Linux)

iD8DBQFFLoTNY2VBGxIDMLwRAvH7AJ42c2F+zyUHGSwE4ktYLSehU2cgWwCeM3St dlpcltfe1xLsBU4RH7mKzwU= =CgXQ -----END PGP SIGNATURE-----