Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 55705 - Postfix 2.1.x supports a policy server. The rc for postfix doesn't support starting a policy server.
Summary: Postfix 2.1.x supports a policy server. The rc for postfix doesn't support s...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: High enhancement
Assignee: Net-Mail Packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-06-30 11:50 UTC by Duncan Hill
Modified: 2005-06-18 16:20 UTC (History)
2 users (show)

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


Attachments
/etc/conf.d/postfix file (postfix.confd,216 bytes, text/plain)
2004-06-30 11:51 UTC, Duncan Hill
Details
Patch to support conf.d/postfix (postfix_with_postgrey_or_amavisd.diff,401 bytes, patch)
2004-06-30 11:52 UTC, Duncan Hill
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Duncan Hill 2004-06-30 11:50:14 UTC
If Postfix is configured to use a policy server and the policy server is not running, 450 Server misconfigured will be used to reject every e-mail.  Similar problems exist when a content_filter is used.

Reproducible: Always
Steps to Reproduce:
1. Install postfix
2. Install postgrey/amavisd
3. Forget to hack the postfix rc script to ensure postgrey/amavisd are booted.

Actual Results:
Comment 1 Duncan Hill 2004-06-30 11:51:09 UTC
Created attachment 34508 [details]
/etc/conf.d/postfix file

Contains the configuration variables used by the patched rc script.
Comment 2 Duncan Hill 2004-06-30 11:52:24 UTC
Created attachment 34509 [details, diff]
Patch to support conf.d/postfix

Patches the rc script to support the /etc/conf.d/postfix file, and modify the
need line on the fly.
Comment 3 Duncan Hill 2004-06-30 11:54:06 UTC
Rationale for this bug:
I'd like to introduce a new package for postgrey - a greylist policy server for postfix 2.1.x.  However, without these patches, if postfix is configured to use the policy server and the server isn't running, mail will be rejected (temp fail, but still rejected).
Comment 4 Duncan Hill 2004-07-25 03:06:18 UTC
*ping* ?

No response for close on 4 weeks now - shall I just close this request?
Comment 5 Tuan Van (RETIRED) gentoo-dev 2004-08-08 21:32:01 UTC
`rc-update add postgrey/amavisd default` should work. If someone using mysql as their database backend forgot to add mysql to default run level, same thing will happen. IMO, it's up to the user to add the needed services to default run level. Although, We could add these services to /etc/init.d/postfix

depend() {
        need net
        use mysql postgrey amavisd clamd foo bar
}
Comment 6 Duncan Hill 2004-08-18 12:19:03 UTC
Well, I'm aiming for a belt/suspenders method here.  If not in its current form, perhaps a simple conf.d of 
POSTFIX_NEED_OPTS="amavisd mysql foo bar"

and mod the rc appropriately to use that as a safety check?  Admins forget things, users forget things.  Belt & suspenders doesn't hurt.
Comment 7 Andrej Kacian (RETIRED) gentoo-dev 2005-06-18 16:20:22 UTC
As there are two graylisting engines in portage now (gld and postgrey), and
another one (sqlgrey) waiting in pipe, I've added a more general
"postfix_graylist" facility to 'use' in postfix initscript depend(). Both
engines' initscripts provide this facility.

NOTE: I've added this to postfix-2.2.3, which is masked for now, to prevent
adding new features to existing versions. Just a safety precaution.

As for amavisd, that has been in postfix' initscript for quite some time already
now.

Thanks for reporting!