On Dec 8, 2009, at 6:27, Peter Eisch wrote: >> SetEnv QPSMTPD_CONFIG "/home/smtpd/qpsmtpd.2/config" >> </VirtualHost> >> > > That doesn't appear to set the value where it can be picked up: > > ... $ENV{QPSMTPD_CONFIG} must be given at > /home/smtpd/qpsmtpd.vsi/lib/Apache/Qpsmtpd.pm line 26.\n > > The PerlSetVar's work between the instances. This fix could be to override > Qpsmtpd::config_dir in Qpsmtpd::Apache and have it use a PerlSetVar value. > I'm not sure how Qpsmtpd::Apache->config() gets called or this would be > somewhat trivial.
I think you could make config_dir method in Apache::Qpsmtpd that'll return a directory name if the appropriate PerlSetVar is specified (and fall back to $self->SUPER::config_dir(@_) if not). - ask