Bug 241596 - Review Request: maildrop - Mail delivery agent with filtering abilities
Summary: Review Request: maildrop - Mail delivery agent with filtering abilities
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: Package Review
Version: rawhide
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Mamoru TASAKA
QA Contact: Fedora Package Reviews List
URL:
Whiteboard:
: 188477 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2007-05-28 17:26 UTC by Axel Thimm
Modified: 2009-07-17 16:00 UTC (History)
10 users (show)

Fixed In Version: 2.0.4-6.fc7
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2008-04-01 21:31:34 UTC
Type: ---
Embargoed:
mtasaka: fedora-review+
j: fedora-cvs+


Attachments (Terms of Use)

Description Axel Thimm 2007-05-28 17:26:15 UTC
Spec URL: http://dl.atrpms.net/all/maildrop.spec
SRPM URL: http://dl.atrpms.net/all/maildrop-2.0.3-2.src.rpm
Description: 
maildrop is the mail filter/mail delivery agent that's used by the
Courier Mail Server. This is a standalone build of the maildrop mail
filter that can be used with other mail servers.

maildrop is a replacement for your local mail delivery agent. maildrop
reads a mail message from standard input, then delivers the message to
your mailbox. maildrop knows how to deliver mail to mbox-style
mailboxes, and maildirs.

Comment 1 Axel Thimm 2007-05-28 17:26:48 UTC
*** Bug 188477 has been marked as a duplicate of this bug. ***

Comment 2 Johan Kok 2007-08-04 17:58:26 UTC
Maildrop version 2.0.4 was released last April. Can you update to the latest version?

When trying to rebuild this srpm with mock I end up with a error:

. maildrop/uidgid ; test -z "$gid" && exit 0; test -w /etc || exit 0; cd /var/tmp/maildrop-2.0.3-2.fc7-
root/usr/bin && chgrp $gid maildrop lockmail
chgrp: changing group of `maildrop': Operation not permitted
chgrp: changing group of `lockmail': Operation not permitted
make[2]: *** [install-maildrop] Error 1
make[2]: Leaving directory `/builddir/build/BUILD/maildrop-2.0.3'
make[1]: *** [install-am] Error 2
make[1]: Leaving directory `/builddir/build/BUILD/maildrop-2.0.3'
make: *** [install-recursive] Error 1
error: Bad exit status from /var/tmp/rpm-tmp.39432 (%install)


RPM build errors:
    Bad exit status from /var/tmp/rpm-tmp.39432 (%install)

Error building package from maildrop-2.0.3-2.fc7.src.rpm, See build log


Comment 3 Axel Thimm 2007-08-04 18:27:40 UTC
(In reply to comment #2)
> Maildrop version 2.0.4 was released last April. Can you update to the latest
version?

OK, will do so.

> When trying to rebuild this srpm with mock I end up with a error:
> 
> . maildrop/uidgid ; test -z "$gid" && exit 0; test -w /etc || exit 0; cd
/var/tmp/maildrop-2.0.3-2.fc7-root/usr/bin && chgrp $gid maildrop lockmail
> chgrp: changing group of `maildrop': Operation not permitted
> chgrp: changing group of `lockmail': Operation not permitted

I don't see that here, and according to the above:

o you don't have root privileges (that's perfectly OK), but
o you are allowed to write in /etc nonetheless

So something looks wrong in the chroot setup. Is /etc in there really writable
by the mock user? If so, fix this and the build should succeed.

Comment 4 Axel Thimm 2007-08-05 16:32:03 UTC
Spec URL: http://dl.atrpms.net/all/maildrop.spec
SRPM URL: http://dl.atrpms.net/all/maildrop-2.0.4-3.src.rpm

* Sat Aug  4 2007 Axel Thimm <Axel.Thimm> - 2.0.4-3
- Update to 2.0.4.


Comment 5 Mamoru TASAKA 2007-08-05 17:43:11 UTC
I just only tried to rebuild 2.0.4-3 and it seems okay.
http://koji.fedoraproject.org/koji/taskinfo?taskID=89925

Comment 6 Mamoru TASAKA 2007-08-23 04:38:52 UTC
Well, I retried and this time the rebuild failed...

http://koji.fedoraproject.org/koji/taskinfo?taskID=121364

Comment 7 Mamoru TASAKA 2007-08-31 11:56:18 UTC
Axel, would you recheck the build log on my comment 6
and upload a new srpm?

Comment 8 Axel Thimm 2007-08-31 21:55:50 UTC
So the difference in the two builds on rawhide was just the age of rawhide? E.g.
something that entered rawhide from the 5th to the 23rd broke maildrop?

I'm currently officially afk with Ville looking over my packages - don't know if
that includes my review requests. I think this is important to find out why it
fails, as it may be a rawhide regression, but I won't be able to look into it
during the next 10 days or even more. Could you dig into this? Thanks!

Comment 9 Mamoru TASAKA 2007-09-01 04:48:48 UTC
After checking maildrop/buffer.C (where compilation failed) and
configure, it turned out that this was due to
"BuildRequies: gawk" :(

I think the compilation log should be more verbose, not just showing
the message "Compiling maildirmake.c" or so so that we can check
if compilation flags are honored correctly. The following should work
(see http://koji.fedoraproject.org/koji/taskinfo?taskID=144270 )

-------------------------------------------------
for f in `find . -name Makefile.in` ; do
   sed -i.silent -e 's|@echo |echo |' -e 's|@rm |rm |' $f
done
-------------------------------------------------

I will check later if there are any issues else to be fixed later

Comment 10 Mamoru TASAKA 2007-09-01 16:23:37 UTC
For 2.0.4-3:

* Missing BR:
  - Add "gawk" for BuildRequires.

* Compilation log
  - Make compilation log verbose so that we can check if
    Fedora specific compilation flags are honored correctly.

* rpmlint:
  From rpmlint:
  A.
--------------------------------------------------------
E: maildrop setuid-binary /usr/bin/maildrop root 06755
   (and similar lines)
--------------------------------------------------------
  ? Just to confirm, would you explain why these binaries
    should have setuid/setgid?

  B.
---------------------------------------------------------
W: maildrop invalid-license GPL
---------------------------------------------------------
   - Please update license tag.

  C.
---------------------------------------------------------
W: maildrop undefined-non-weak-symbol /usr/lib/librfc2045.so.0.0.0
rfc2047_qp_allow_any
W: maildrop undefined-non-weak-symbol /usr/lib/librfc822.so.0.0.0 unicode_ISO8859_1
   ( and similar lines omittted)
---------------------------------------------------------
   - libraries in -devel subpackage contains undefined non-weak
     symbols (also can be checked by "ldd -r").
     This is unpleasant because this causes linkage failure.

Comment 11 Mamoru TASAKA 2007-09-27 11:40:53 UTC
ping?

Comment 12 Mamoru TASAKA 2007-10-09 15:18:43 UTC
ping again?

Comment 13 Axel Thimm 2007-10-24 12:49:32 UTC
(In reply to comment #10)
> E: maildrop setuid-binary /usr/bin/maildrop root 06755
>    (and similar lines)
> --------------------------------------------------------
>   ? Just to confirm, would you explain why these binaries
>     should have setuid/setgid?

See http://www.courier-mta.org/maildrop/maildrop.html for details, but in short:
Every MTA that runs as a non-root user need an MDA that is suid root, otherwise
you would never be able to put mails into users' mboxes/maildirs etc.

Comment 14 Mamoru TASAKA 2007-10-25 13:19:29 UTC
So would you fix the rest issues?

Comment 15 Axel Thimm 2007-10-26 06:12:43 UTC
http://dl.atrpms.net/all/maildrop-2.0.4-4.src.rpm
http://dl.atrpms.net/all/maildrop.spec

I forgot to fix the license tag, consider this part of "-5". :)

Comment 16 Mamoru TASAKA 2007-10-27 14:47:17 UTC
Still the following issues are not fixed.

(In reply to comment #10)

> * Compilation log
>   - Make compilation log verbose so that we can check if
>     Fedora specific compilation flags are honored correctly.
> 
> * rpmlint:
>   B.
> ---------------------------------------------------------
> W: maildrop invalid-license GPL
> ---------------------------------------------------------
>    - Please update license tag.
> 
>   C.
> ---------------------------------------------------------
> W: maildrop undefined-non-weak-symbol /usr/lib/librfc2045.so.0.0.0
> rfc2047_qp_allow_any
> W: maildrop undefined-non-weak-symbol /usr/lib/librfc822.so.0.0.0
unicode_ISO8859_1
>    ( and similar lines omittted)
> ---------------------------------------------------------
>    - libraries in -devel subpackage contains undefined non-weak
>      symbols (also can be checked by "ldd -r").
>      This is unpleasant because this causes linkage failure.



Comment 17 Axel Thimm 2007-10-28 21:14:49 UTC
As said in comment #15 please consider the license tag fixed in the next
iteration (befor e the import). I don't think it will be better to increase
verbosity - in general the more verbose the logs the worse SNR you get and the
more errors can slip.

As to the non-weak symbols - what do you suggest to do to fix it? maildrop seems
to work well. Perhaps these symbols are even undefined on purpose in case there
are multiple possible variants for them. At least that is a valid use of
undefined symbols.

Comment 18 Mamoru TASAKA 2007-10-29 14:39:02 UTC
(In reply to comment #17)

> As to the non-weak symbols - what do you suggest to do to fix it? maildrop seems
> to work well. 

Perhaps maildrop itself can be used with these undefined non-weak
symbols are left.
The problem is that these undefined non-weak symbols make it impossible
that the libraries in maildrop are linked from other libraries/applications.

So if you want to provide -devel package, this must be fixed.

> Perhaps these symbols are even undefined on purpose in case there
> are multiple possible variants for them. 
This is not because unicode_ symbols are provided by the codes
under unicode/ subdirectory in maildrop, and the others are
also provided by the codes in maildrop. So simply linking is not correct
for these libraries.

I found the related discussion here:
http://www.nabble.com/Problems-using-rfc822-and-rfc2045-libraries-tf3292776.html#a9158612


Comment 19 Axel Thimm 2007-10-29 18:22:11 UTC
> I found the related discussion here:
>
http://www.nabble.com/Problems-using-rfc822-and-rfc2045-libraries-tf3292776.html#a9158612

This discussion revolves around building it all static, which is not a favoured
Fedora model. :/

From the surface it looks like the bug is in not installing libunicode when
asking for shared libs, do you agree? I'll try to get upstream's POV on that.

Comment 20 Mamoru TASAKA 2007-10-30 15:28:05 UTC
(In reply to comment #19)
> From the surface it looks like the bug is in not installing libunicode when
> asking for shared libs, do you agree? I'll try to get upstream's POV on that.
Yes, this is one of the problem.
When libunicode is installed properly as a shared library, linkage
must be fixed according to that.


Comment 21 Mamoru TASAKA 2007-12-01 10:44:05 UTC
Any response from upstream?

Comment 22 Mamoru TASAKA 2007-12-16 05:08:04 UTC
ping again?

Comment 23 Axel Thimm 2007-12-30 09:54:54 UTC
I recontacted upstream on the list this time.

Comment 24 Axel Thimm 2008-01-13 09:48:47 UTC
The resolve is that these (small) libs were never intended to be shared (and
used by anything else but myildrop itself) - autotooling the project just popped
out the --enable-shared option.

There are two ways to fix it:

o patch up the sources to really allow shared libs - but upstream is not
  interested in doing so - they might actually even shut down shared libs in
  general.

o go static

I think I prefer the latter, would you agree?


Comment 25 Mamoru TASAKA 2008-01-13 09:52:02 UTC
I prefer to go static.

Comment 26 Neal Becker 2008-01-18 14:19:00 UTC
I have a maildrop-2.0.4 srpm.  It builds on f8, only has a couple of (easily 
fixed) rpmlint warnings (nothing about weak symbols).  I put it here:

https://nbecker.dyndns.org/RPM/maildrop-2.0.4-1.fc8.src.rpm

I also have courier-authlib.  It has a number of rpmlint errors.  Feel free to 
fix them.  I don't really use this lib myself, so have little incentive.

Comment 27 Ray Van Dolson 2008-02-29 07:26:38 UTC
Just a note here as I am using Axel's 2.0.4-5 SRPM on my EL5 system.  I wanted
to use maildrop with virtual users which you can either hand-code logic for in
your maildroprc file or make use of courier-authlib.  I wanted to use
courier-authlib.

Issues I ran in to:

  * courier-authlib isn't yet packaged for Fedora/EL (easy enough to fix this)
  * maildrop appears to only build in support for courier-authlib if
courier-authlib is already on the system.

I built the courier-authlib RPM from the included .spec file and installed the
courier-authlib-devel package and _then_ built Axel's maildrop RPM and was able
to end up with a maildrop that supports courier-authlib.

Anyways, just something to keep in mind -- especially for a future packager of
courier-authlib.

Comment 28 Neal Becker 2008-02-29 11:35:49 UTC
There is no progress on this package.  Please, would someone else like to take 
over this?

Comment 29 Mamoru TASAKA 2008-02-29 12:29:45 UTC
Once setting NEEDINFO to Axel. Would you package static archive
(if shared library is impossible for now) and reupload the new srpm?

Comment 30 Axel Thimm 2008-03-04 23:11:26 UTC
The package was fixed shortly after comment #25

http://dl.atrpms.net/all/maildrop.spec
http://dl.atrpms.net/all/maildrop-2.0.4-5.src.rpm

* Sun Jan 13 2008 Axel Thimm <Axel.Thimm> - 2.0.4-5
- Go static.


Comment 31 Mamoru TASAKA 2008-03-06 15:39:32 UTC
For 2.0.4-5:

* License tag
  - License tag "GPL" is no longer valid for Fedora.
    http://fedoraproject.org/wiki/Packaging/LicensingGuidelines
    http://fedoraproject.org/wiki/Licensing

* Static archive only -devel subpackage packaging
  - For static archive only -devel subpackage, please follow
    "Packaging Static Libraries" subsection of
    http://fedoraproject.org/wiki/Packaging/Guidelines

* /sbin/ldconfig
  - Why is calling of /sbin/ldconfig on %post/%postun needed?

* Header file include:
  - For example, /usr/include/rfc2045.h contains:
---------------------------------------------------------------
    12  #include        "../rfc2045/rfc2045_config.h" /* VPATH build */
---------------------------------------------------------------
    but rfc2045_config.h does not exist. 

! fedora specific compilation flags
  - Well, now from build.log, I cannot check if Fedora specific
    compilation flags are correctly honored (from the output like
    below:)
---------------------------------------------------------------
  1932  make[2]: Entering directory `/builddir/build/BUILD/maildrop-2.0.4/numlib'
  1933  Compiling atotimet.c
  1934  Compiling atouidt.c
  1935  Compiling changeuidgid.c
  1936  Compiling strdevt.c
  1937  Compiling strgidt.c
---------------------------------------------------------------
    Please make the build.log more verbose so that we can check
    how compiler flags are used from build.log.

! /usr/bin/sendmail
  - Well, perhaps no one except for me may complain about this,
    however currencly sendmail license is in question
    (ref: bug 409361). Is it possible to make this package avoid
    sendmail?


Comment 32 Axel Thimm 2008-03-06 16:33:56 UTC
Thanks for the review, all points are valid, and are connected to the static vs
shared setup, but the sendmail issue: Even if sendmail is not part of the distro
/usr/bin/sendmail has become a canonical call to the MTA. exim, postfix etc.
replace that symlink with alternatives to pointing to themselves.

E.g. any MTA will offer /usr/bin/sendmail and any package needing a local MTA
uses it be that maildrop or mutt etc.

Comment 33 Mamoru TASAKA 2008-03-06 16:41:58 UTC
(In reply to comment #32)
> Even if sendmail is not part of the distro
> /usr/bin/sendmail has become a canonical call to the MTA. exim, postfix etc.
> replace that symlink with alternatives to pointing to themselves.
> 
> E.g. any MTA will offer /usr/bin/sendmail and any package needing a local MTA
> uses it be that maildrop or mutt etc.

Ah, exactly. Thanks!



Comment 34 Axel Thimm 2008-03-16 09:54:37 UTC
http://dl.atrpms.net/all/maildrop.spec
http://dl.atrpms.net/all/maildrop-2.0.4-6.src.rpm

* Sat Mar  8 2008 Axel Thimm <Axel.Thimm> - 2.0.4-6
- Try a better license tag.
- Remove all devel parts - this is not upstream-ready yet.
- Make the build verbose.


Comment 35 Mamoru TASAKA 2008-03-17 17:54:02 UTC
Well
- Please don't use http://prdownloads. URL so that we can download source
  directly by wget -N, for example. The following is fine.
  http://downloads.sourceforge.net/courier/maildrop-2.0.4.tar.bz2

- The license tag is okay with "GPLv2 with exceptions".
  (Current accepted license tags are listed in
   /usr/share/rpmlint/config).

Other things are okay.

------------------------------------------------------------------------
     This package (maildrop) is APPROVED by me
------------------------------------------------------------------------

Comment 36 Axel Thimm 2008-03-18 20:08:57 UTC
Thanks Mamoru!

New Package CVS Request
=======================
Package Name: maildrop
Short Description: Mail delivery agent with filtering abilities
Owners: athimm
Branches: F-7 F-8
InitialCC:
Cvsextras Commits: no (too many people in this group)


Comment 37 Kevin Fenzi 2008-03-18 21:22:04 UTC
cvs done.

Comment 38 Todd Zullinger 2008-03-30 19:21:28 UTC
The license tag used[1] in the checked in spec file is invalid.  I think simply
using GPLv2 with exceptions would be sufficient, though there isn't an entry on
the Licensing guidelines page specifically covering the openssl exception. 
Perhaps there ought to be such an entry.  Spot?

[1] GPLv2 with OpenSSL exception

Comment 39 Fedora Update System 2008-03-30 19:23:06 UTC
maildrop-2.0.4-6.fc7 has been submitted as an update for Fedora 7

Comment 40 Fedora Update System 2008-03-30 19:23:09 UTC
maildrop-2.0.4-6.fc8 has been submitted as an update for Fedora 8

Comment 41 Tom "spot" Callaway 2008-03-31 19:10:34 UTC
(In reply to comment #38)
> The license tag used[1] in the checked in spec file is invalid.  I think simply
> using GPLv2 with exceptions would be sufficient, though there isn't an entry on
> the Licensing guidelines page specifically covering the openssl exception. 
> Perhaps there ought to be such an entry.  Spot?
> 
> [1] GPLv2 with OpenSSL exception

This doesn't merit a specific entry in the guideline, just change the License
tag to be:

License: GPLv2 with exceptions

Comment 42 Fedora Update System 2008-04-01 21:31:32 UTC
maildrop-2.0.4-6.fc7 has been pushed to the Fedora 7 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 43 Fedora Update System 2008-04-01 21:37:59 UTC
maildrop-2.0.4-6.fc8 has been pushed to the Fedora 8 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 44 MePal 2008-06-24 14:15:44 UTC
I'm still seeing maildrop lacks of courier-authlib support - seems you didn't
have courier-authlib-devel installed while building maildrop, as mentioned in
Comment #27.

And maildrop built here is using different versioning compare with what Courier
recommended, I have to bump up version by changing spec file in bz2 download
from courier to make sure it won't be "upgraded" by yum.

Comment 45 Mamoru TASAKA 2008-06-24 17:33:07 UTC
(In reply to comment #44)
> I'm still seeing maildrop lacks of courier-authlib support -
> ........ (all snip)

Please file a RFE against maildrop and don't use this review.


Comment 46 Nick Bebout 2009-07-16 17:52:34 UTC
Package Change Request
======================
Package Name: maildrop
New Branches: EL-4 EL-5
Owners: nb

Comment 47 Jason Tibbitts 2009-07-17 16:00:33 UTC
Axel has indicated that he does not wish to participate in EPEL, so I've branched this without awiting for an ack from him.

CVS done.


Note You need to log in before you can comment on or make changes to this bug.