Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 52291 - Amavisd-new patch for Courier interface isn't applied even courier is installed !
Summary: Amavisd-new patch for Courier interface isn't applied even courier is install...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Net-Mail Packages
URL:
Whiteboard:
Keywords: EBUILD
Depends on:
Blocks: 64462
  Show dependency tree
 
Reported: 2004-05-28 13:17 UTC by Daniel Heule
Modified: 2004-12-23 01:25 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
amavisd-new-20030616_p9.ebuild modified for patching. (amavisd-new-20030616_p9.ebuild,2.91 KB, text/plain)
2004-05-28 13:40 UTC, Daniel Heule
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Daniel Heule 2004-05-28 13:17:32 UTC
There is a amavisd-new-courier.patch file in the source package included.
If you want to use amavisd-new as courier-filter, you need to apply this patch before installing. This won't hurt even if you doen't use amavisd-new with courier. It will only add some additional features.
Eventually, this is something for a local useflag or a test if courier is installed will probably a usable solution.

Reproducible: Always
Steps to Reproduce:
1. The emerge doesn't apply the patch anytime.
2.
3.

Actual Results:  
Feature is missing.

Expected Results:  
It should include the additional features for the courier-filter.
Comment 1 Daniel Heule 2004-05-28 13:40:21 UTC
Created attachment 32214 [details]
amavisd-new-20030616_p9.ebuild modified for patching.

This is my proposal to solve this problem.
Comment 2 Asbjorn Sannes 2004-06-08 13:40:51 UTC
maybe there should be USE flags to turn on and off patches.. ?
Comment 3 Daniel Heule 2004-08-03 02:12:58 UTC
Please correct the ebuild of amavisd-new to aply the courier patch if courier is installed !
Comment 4 Martin Allchin 2004-08-04 04:54:13 UTC
amavisd-new-20040701 is missing a courier patch :/

I can see some at sourceforge for 20040701-rc*; I'll see if I can nobble one together that patches cleanly against amavisd-new-20040701.
Comment 5 Martin Allchin 2004-08-04 05:41:21 UTC
Ignore my previous comment ;)

I forgot to check /var/tmp/portage/amavisd-new-20040701/work/amavisd-new-20040701 -- patch present and working!
Comment 6 Cory Visi (RETIRED) gentoo-dev 2004-08-04 09:31:56 UTC
How do you guys use this patch? Do you use the automatic or the manual start/stop method? What have you found the pros and cons to be?

Also, does this patch change the behavior of non-courier mail systems?
Comment 7 Martin Allchin 2004-08-05 08:12:28 UTC
To apply the patch do the following:

** Note I am using ~x86 version (amavisd-new-20040707) **

1. emerge amavisd-new, let it finish completely
1. emerge amavisd-new, ctrl+c after it has finished unpacking the source
2. cd /var/tmp/portage/amavisd-new-20040701/work/amavisd-new-20040701
3. patch < amavisd-new-courier.patch
4. cp amavisd /usr/sbin/
5. cp amavisd.conf /etc/

Job done.
Comment 8 Martin Allchin 2004-08-05 08:14:40 UTC
Also, no, it doesn't affect non-courier systems, it just adds extra options for courier. It may use different defaults then the normal conf though.
Comment 9 Martin Allchin 2004-08-05 08:16:25 UTC
Sorry for all these comments. Isn't it possible to edit a bug?

Please note it should be steps 1 to 6 above (not two 1's).
Comment 10 Cory Visi (RETIRED) gentoo-dev 2004-08-05 15:39:22 UTC
I think I will just apply this patch universally in the ebuild then. Can anyone think of why not?
Comment 11 Martin Allchin 2004-08-08 09:14:11 UTC
I can't think of any reasons not too.

I seriously wonder why amavis didn't do this anyway. Making Courier users patch for extra support seems so very strange, and the usual rigmoral of editing the conf to choose your chosen mta/scanners has to be done anyway.

I would patch as default, or add a courier USE flag.
Comment 12 Timo Maier 2004-08-24 00:05:24 UTC
Will the ebuild with applying the patch make it into portage?
Comment 13 Timo Maier 2004-08-26 01:30:59 UTC
I have applied the patch maually, and had to change the home dir of amavis to /var/amavis instead of /var/lib/amavis. Also I changed the /var/amavis to group mail and make ich writeable by group so courier can write to this dir when amavis is called by courier.

I f amavis is called by courier I cannot use /etc/init.d/courier restart, because amavis needs a few secs to terminate an clean up things. Maybe a check coud be don in the courier start script if amavis is terminated (pid file?)
 
I vote for a courier use flag for the amavisd-new ebuild.
Comment 14 Cory Visi (RETIRED) gentoo-dev 2004-08-26 05:23:39 UTC
Where did you have to change the the amavisd-new homedir?

The group-writeable issue is significant. Thank you for reporting this. I'll try to come up with a universal solution, otherwise, I'll implement a USE flag.
Comment 15 Timo Maier 2004-08-30 00:06:48 UTC
I'm not 100% sure anymore, but IIRC the home dir of user amavis pointed to /var/lib/amavis, so I had to edit /etc/passwd

I just have checked the amavisd-new ebuild which creates the user, this seems to be ok. Hmmm.
Comment 16 Sune Kloppenborg Jeppesen (RETIRED) gentoo-dev 2004-12-08 13:09:38 UTC
Is this still an issue with amavisd-new 2.2.0 from bug #64462?
Comment 17 Daniel Heule 2004-12-14 08:37:05 UTC
The Problem is also with amavisd-new 2.2.0 the same,
only the Patch has a new name.
Comment 18 Sune Kloppenborg Jeppesen (RETIRED) gentoo-dev 2004-12-14 09:38:44 UTC
Daniel updated bug #64462 with initial courier support. Please test and report back on the bug.
Comment 19 Sune Kloppenborg Jeppesen (RETIRED) gentoo-dev 2004-12-23 01:25:42 UTC
Closing, please reopen if needed.