On 2005-04-19 12:41:02 +0200, Peter J. Holzer wrote:
> On 2004-12-15 16:07:14 -0800, Robert Spier wrote:
> >     also, do we really need seperate plugin and config dir specifiers
> >     if we have QPSMTPD_ROOT?  What's the logic?
> 
> FHS conformance:
> 
> Plugins should go to /usr/share/qpsmtpd/plugins (or maybe
> /usr/lib/qpsmtpd/plugins)
> 
> Config files should go into /etc/qpsmtpd.

However, we don't necessarily need command line options for that. 
We already have a spool_dir configuration option, so adding a
plugins_dir configuration option would be consistent. 

So I'd just extend the searchpath for the config files from

$QPSMTPD_ROOT/config:$QMAIL/control

to 

$QPSMTPD_CONFIG:$QPSMTPD_ROOT/config:$QMAIL/control

and then read the plugin_dir from $config_dir/plugin_dir.
(similarly for pid_file, etc.)

$QPSMTPD_CONFIG, $QPSMTPD_ROOT, $QMAIL should be read from the
environment and default to sane values.

        hp

-- 
   _  | Peter J. Holzer    | Weil wir die materielle Welt nicht so
|_|_) | Sysadmin WSR       | wahrnehmen, wie sie ist, sind Sachen wie
| |   | [EMAIL PROTECTED]         | JPEG, MP3 usw. m�glich.
__/   | http://www.hjp.at/ |   -- Heiko Schlenker in drsm.

Attachment: pgp2H8XWbFNEy.pgp
Description: PGP signature

Reply via email to