On 12/8/09 5:54 AM, "Robin Bowes" <robin-li...@robinbowes.com> wrote:
> Not tested, but how about this: > > Listen 10.1.200.29:25 smtp > AcceptFilter smtp none > > LoadModule perl_module lib/httpd/mod_perl.so > > <Perl> > use lib qw( /home/smtpd/qpsmtpd.2/lib ); > use Apache::Qpsmtpd; > </Perl> > > <VirtualHost 10.1.200.29:25> > PerlModule Apache::Qpsmtpd > PerlProcessConnectionHandler Apache::Qpsmtpd > 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. peter